<?xml version="1.0" encoding="UTF-8"?><database name="ActiveHub" schema="dbo" type="Microsoft SQL Server - 16.00.4245">
   <tables>
      <table catalog="ActiveHub" name="ACCOUNT_CREDIT_HISTORY" numRows="0" remarks="Account credit transaction history for customers and companies" schema="dbo" type="VIEW" viewSql="&#13;&#10;&#13;&#10;CREATE VIEW dbo.ACCOUNT_CREDIT_HISTORY&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME) AS CUSTOMER_NAME,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME AS SITE_NAME,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    src.TRANSACTION_TYPE,&#13;&#10;    src.CREDIT_AMOUNT,&#13;&#10;    src.CREATION_DATE_TIME,&#13;&#10;    src.DESCRIPTION,&#13;&#10;    src.RECEIPT_HEADER_ID,&#13;&#10;    FORMAT(rh1.RECEIPT_NUMBER, '#.0000') AS RECEIPT_NUMBER,&#13;&#10;    src.RECEIPT_PAYMENT_ID,&#13;&#10;    src.RECEIPT_DETAIL_ID,&#13;&#10;    src.ACCOUNT_CREDIT_ID,&#13;&#10;    src.LINKED_CREDIT_ID,&#13;&#10;    src.LINKED_ACCOUNT_CREDIT_ID,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.ACCOUNT_CREDIT_HISTORY src&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.ORG_ID = src.ORG_ID AND co1.COMPANY_ID = src.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON (rh1.ORG_ID = src.ORG_ID AND src.RECEIPT_HEADER_ID = rh1.RECEIPT_HEADER_ID);&#13;&#10;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOMER_ID" nullable="true" remarks="The ID of the customer that the account credit entry belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_NAME" nullable="false" remarks="The name of the customer that the account credit entry belongs to" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="COMPANY_ID" nullable="true" remarks="The ID of the company that the account credit entry belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="COMPANY_NAME" nullable="true" remarks="The name of the company that the account credit entry belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SITE_ID" nullable="true" remarks="The ID of the site that the transaction resulting in the account credit entry occurred at" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SITE_NAME" nullable="true" remarks="The name of the site that the transaction resulting in the account credit entry occurred at" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="WORKSTATION_ID" nullable="true" remarks="The ID of the workstation that the transaction resulting in the account credit entry occurred at" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="WORKSTATION_NAME" nullable="true" remarks="The name of the workstation that the transaction resulting in the account credit entry occurred at" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SYSTEMUSER_ID" nullable="true" remarks="The ID of the user who performed the transaction resulting in the account credit entry" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="SYSTEM_USER_NAME" nullable="false" remarks="The name of the user who performed the transaction resulting in the account credit entry" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="TRANSACTION_TYPE" nullable="true" remarks="The type of account credit transaction (Credit / Refund Credit / Debit / Adjustment / Link / Unlink)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="11" name="CREDIT_AMOUNT" nullable="true" remarks="The amount of the transaction that affected the account credit balance" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="12" name="CREATION_DATE_TIME" nullable="true" remarks="The date and time that the account credit transaction occurred" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DESCRIPTION" nullable="true" remarks="The description of the account credit transaction" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="RECEIPT_HEADER_ID" nullable="true" remarks="The ID of the receipt that generated the account credit entry" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="RECEIPT_NUMBER" nullable="true" remarks="The receipt number that generated the account credit entry" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="RECEIPT_PAYMENT_ID" nullable="true" remarks="The ID of the receipt payment that generated the account credit entry" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_PAYMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="RECEIPT_DETAIL_ID" nullable="true" remarks="The ID of the receipt detail related to the linked payment plan that generated the account credit entry" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ACCOUNT_CREDIT_ID" nullable="true" remarks="The ID of the account credit entry" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="LINKED_ACCOUNT_CREDIT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACCOUNT_CREDIT_HISTORY"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="LINKED_CREDIT_ID" nullable="true" remarks="The ID of the linked payment plan credit entry" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="LINKED_ACCOUNT_CREDIT_ID" nullable="true" remarks="The ID of the linked account credit entry" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACCOUNT_CREDIT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACCOUNT_CREDIT_HISTORY"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="22" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACCOUNT_CREDIT_ID" sequenceNumberInPK="1"/>
         <primaryKey column="LINKED_CREDIT_ID" sequenceNumberInPK="2"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVE_HUB_DATES" numRows="73049" remarks="Utility table useful when report needs to be built on year, month, quarter etc. Usually joins by dt_dt" schema="dbo" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="dt_key" nullable="false" remarks="Date key, which is a number representing the date in format YYYYMMDD" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="1" name="dt_dt" nullable="true" remarks="Date as a DATETIME data type" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="yr_nb" nullable="true" remarks="Year number of the date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="yr_qtr_nb" nullable="true" remarks="Quarter number of the date within the year (1 to 4)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="yr_mo_nb" nullable="true" remarks="Month number of the date within the year (1 to 12)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="yr_wk_nb" nullable="true" remarks="Week number of the date within the year (1 to 53)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="yr_dy_nb" nullable="true" remarks="Day number of the date within the year (1 to 366)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="yr_dy_cnt" nullable="true" remarks="Number of days in the year (365 or 366)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="yr_strt_dt" nullable="true" remarks="The start date of the year" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="yr_end_dt" nullable="true" remarks="The end date of the year" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="yr_end_flg" nullable="false" remarks="Whether this date is the last day of the year (T or F)" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="yr_end_txt" nullable="true" remarks="Whether this date is the last day of the year ('YEAR END' or NULL)" size="8" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="leap_yr_flg" nullable="false" remarks="Whether this year is a leap year (T or F)" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="leap_year_txt" nullable="true" remarks="Whether this year is a leap year ('LEAP YEAR' or NULL)" size="9" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="qtr_mo_nb" nullable="true" remarks="The number of the month within the quarter (1 to 3)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="qtr_wk_nb" nullable="true" remarks="The number of the week within the quarter (1 to 14)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="qtr_dy_nb" nullable="true" remarks="The number of the day within the quarter (1 to 92)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="17" name="qtr_strt_dt" nullable="true" remarks="The start date of the quarter" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="qtr_end_dt" nullable="true" remarks="The end date of the quarter" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="qtr_end_flg" nullable="false" remarks="Whether this date is the last day of the quarter (T or F)" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="qtr_end_txt" nullable="true" remarks="Whether this date is the last day of the quarter ('QUARTER END' or NULL)" size="11" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="mo_wk_nb" nullable="true" remarks="The number of the week within the month (1 to 5)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="mo_dy_nb" nullable="true" remarks="The number of the day within the month (1 to 31)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="23" name="mo_strt_dt" nullable="true" remarks="The start date of the month" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="24" name="mo_end_dt" nullable="true" remarks="The end date of the month" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="mo_end_flg" nullable="false" remarks="Whether this date is the last day of the month (T or F)" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="mo_end_txt" nullable="true" remarks="Whether this date is the last day of the month ('MONTH END' or NULL)" size="9" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="mo_nm" nullable="true" remarks="Full name of the month (January, February, March, April, May, June, July, August, September, October, November, December)" size="60" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="mo_abrv_nm" nullable="true" remarks="Abbreviated name of the month (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec)" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="wk_dy_nb" nullable="true" remarks="Week day number, with Sunday as the start of the week (1 to 7)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="30" name="wk_strt_dt" nullable="true" remarks="The start date of the week, with Sunday as the start of the week" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="31" name="wk_end_dt" nullable="true" remarks="The end date of the week, with Sunday as the start of the week" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="wk_end_flg" nullable="false" remarks="Whether this date is on the weekend (T or F)" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="dy_nm" nullable="true" remarks="Full name of the day (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday)" size="60" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="dy_abrv_nm" nullable="true" remarks="Abbreviated name of the day (Sun, Mon, Tues, Wed, Thu, Fri, Sat)" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="35" name="prev_yr_dt" nullable="true" remarks="Same date from the prior year" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="36" name="prev_90_days_dt" nullable="true" remarks="The date 90 days prior" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="37" name="prev_60_days_dt" nullable="true" remarks="The date 60 days prior" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="38" name="prev_30_days_dt" nullable="true" remarks="The date 30 days prior" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="weekday_flg" nullable="false" remarks="Whether this date is a weekday (T or F)" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="weekday_txt" nullable="false" remarks="Whether this date is a weekday ('WEEKDAY' or 'WEEKEND')" size="8" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="dt_yyyymm_txt" nullable="true" remarks="The date formatted as YYYYMM" size="8" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="dt_yyyymmdd_txt" nullable="true" remarks="The date formatted as YYYYMMDD" size="8" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="dt_ddmonyy_txt" nullable="true" remarks="The date formatted as DDMONYY" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="dt_ddmonyyyy_txt" nullable="true" remarks="The date formatted as DDMONYYYY" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="mo_nm_fr" nullable="false" remarks="Nom complet du mois" size="9" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="mo_abrv_nm_fr" nullable="false" remarks="Nom abrégé du mois" size="7" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="dy_nm_fr" nullable="false" remarks="Nom complet du jour" size="8" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="dy_abrv_nm_fr" nullable="false" remarks="Nom abrégé du jour" size="7" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="dt_dmy_fr" nullable="false" remarks="" size="38" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="dt_dmy_txt_fr" nullable="false" remarks="" size="35" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="yr_wk_cal" nullable="true" remarks="North American: week 1 begins on the Sunday of the week of the first day of the year." size="4" type="int" typeCode="4"/>
         <primaryKey column="dt_key" sequenceNumberInPK="1"/>
         <index name="PK__ACTIVE_H__952F07BEB9031C70" unique="true">
            <column ascending="true" name="dt_key"/>
         </index>
         <index name="ACTIVE_HUB_DATES_dt_dt_IX" unique="false">
            <column ascending="true" name="dt_dt"/>
         </index>
         <index name="ACTIVE_HUB_DATES_yr_nb_dt_dt_IX" unique="false">
            <column ascending="true" name="yr_nb"/>
            <column ascending="true" name="dt_dt"/>
         </index>
         <index name="ACTIVE_HUB_DATES_yr_nb_dt_key_mo_nm_IX" unique="false">
            <column ascending="true" name="yr_nb"/>
            <column ascending="true" name="dt_key"/>
            <column ascending="true" name="mo_nm"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITIES" numRows="0" remarks="A high level of the activity totals. This table shows one row per activity and can be used as a master table. Joins usually by ACTIVITY_ID" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.ACTIVITIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    src.SITE_ID,&#13;&#10;    src.ACTIVITYNUMBER,&#13;&#10;    src.ACTIVITYNAME,&#13;&#10;    src.ACTIVITY_SUBACTIVITY,&#13;&#10;    src.ACTIVITYSTATUS_ID,&#13;&#10;    src.ACTIVITY_STATUS_DESC,&#13;&#10;    src.ACTIVITY_TYPE_ID,&#13;&#10;    atyp.ACTIVITY_TYPE_NAME AS ACTIVITY_TYPE,&#13;&#10;    src.ACTIVITY_CATEGORY_ID,&#13;&#10;    acat.ACTIVITY_CATEGORY_NAME AS ACTIVITY_CATEGORY,&#13;&#10;    src.ACTIVITY_OTHER_CATEGORY_ID,&#13;&#10;    ascat.ACTIVITY_SUB_CATEGORY_NAME AS ACTIVITY_OTHER_CATEGORY,&#13;&#10;    src.ACTIVITY_DEPARTMENT_ID,&#13;&#10;    adep.ACTIVITY_DEPARTMENT_NAME AS ACTIVITY_DEPARTMENT,&#13;&#10;    si1.SITE_NAME AS SITENAME,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME AS FACILITYNAME,&#13;&#10;    fa1.CENTER_ID,&#13;&#10;    ce1.CENTER_NAME AS CENTERNAME,&#13;&#10;    src.INSTRUCTOR_ID,&#13;&#10;    CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME) AS INSTRUCTOR_NAME,&#13;&#10;    src.SUPERVISOR_ID,&#13;&#10;    CONCAT(cu2.CUSTOMER_FIRST_NAME, IIF(cu2.CUSTOMER_FIRST_NAME IS NOT NULL AND cu2.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu2.CUSTOMER_LAST_NAME) AS SUPERVISOR_NAME,&#13;&#10;    src.SEASON_ID,&#13;&#10;    se1.SEASON_NAME AS SEASON,&#13;&#10;    src.CHILD_SEASON_ID,&#13;&#10;    cs1.CHILD_SEASON_NAME AS TERM,&#13;&#10;    src.BEGINNINGDATE,&#13;&#10;    src.ENDINGDATE,&#13;&#10;    src.AGESMIN,&#13;&#10;    src.AGESMAX,&#13;&#10;    src.NUMBEROFSESSIONS,&#13;&#10;    src.NUMBEROFHOURS,&#13;&#10;    src.NUMBER_OF_HOLDS,&#13;&#10;    src.NUMBER_WAITLISTS,&#13;&#10;    src.NUMBER_OPEN,&#13;&#10;    src.ENROLLMIN,&#13;&#10;    src.ENROLLMAX,&#13;&#10;    src.ENROLLED,&#13;&#10;    src.ENROLLSTATUS,&#13;&#10;    src.FILLRATE,&#13;&#10;    src.REVENUE,&#13;&#10;    src.REVENUE_PLUS_TAX,&#13;&#10;    (src.REVENUE_PLUS_TAX -  src.REVENUE) AS TAX,&#13;&#10;    src.ALLOW_DROPIN,&#13;&#10;    src.DROPIN_FEE_CHARGE_AMOUNT,&#13;&#10;    src.CREATE_MEETING_DATES,&#13;&#10;    src.RESERVE_FACILITIES,&#13;&#10;    src.GENDER_INDEX,&#13;&#10;    ge1.GENDER_NAME AS GENDER,&#13;&#10;    src.AGE_CALC_DATE,&#13;&#10;    src.AGE_MIN_WEEKS,&#13;&#10;    src.AGE_MAX_WEEKS,&#13;&#10;    src.AGE_MIN_MONTHS,&#13;&#10;    src.AGE_MAX_MONTHS,&#13;&#10;    src.ACTIVITY_GROUP_ID,&#13;&#10;    ag1.GROUP_CAPACITY AS ACTIVITY_GROUP_CAPACITY,&#13;&#10;    src.ALLOW_ADD_GROUP_MEMBER,&#13;&#10;    src.ALLOW_ADD_TEAM_MEMBER,&#13;&#10;    src.ALLOW_AMEND_GROUP_MEMBERS,&#13;&#10;    src.ALLOW_AMEND_TEAM_MEMBERS,&#13;&#10;    src.ALLOW_ATTENDANCE_ENTRY,&#13;&#10;    src.ALLOW_PRIVATE_LESSON_BOOKINGS_ONLINE,&#13;&#10;    src.ALLOW_CHANGE_MAX_BOOKING,&#13;&#10;    src.ALLOW_CHANGE_MAX_BOOKING_ONLINE,&#13;&#10;    src.ALLOW_EDIT_GROUP_MEMBER_SKILLS,&#13;&#10;    src.ALLOW_EDIT_GROUP_INFO,&#13;&#10;    src.ALLOW_EDIT_GROUP_MEMBER_INFO,&#13;&#10;    src.ALLOW_EDIT_PARTICIPANT_SKILL_ONLINE,&#13;&#10;    src.ALLOW_EDIT_TEAM_INFO,&#13;&#10;    src.ALLOW_EDIT_TEAM_MEMBER_INFO,&#13;&#10;    src.ALLOW_EDIT_TEAM_MEMBER_SKILLS,&#13;&#10;    src.ALLOW_ENROLL_WITH_DEPOSIT,&#13;&#10;    src.ALLOW_GROUP_ADD,&#13;&#10;    src.ALLOW_GROUP_ADD_ONLINE,&#13;&#10;    src.ALLOW_IGNORE_CATEGORY_SCHEDULE_CONFLICT,&#13;&#10;    src.ALLOW_IGNORE_SCHEDULE_CONFLICT,&#13;&#10;    src.ALLOW_PRE_BOOK_PRIVATE_LESSON_ONLY_ONLINE,&#13;&#10;    src.ALLOW_PRE_BOOK_PRIVATE_LESSON_ONLY_STAFF,&#13;&#10;    src.ALLOW_PRIORITY_REGISTRATION,&#13;&#10;    src.ALLOW_PRIVATE_LESSON_BOOKINGS,&#13;&#10;    src.ALLOW_REMOVE_GROUP_MEMBERS,&#13;&#10;    src.ALLOW_REMOVE_TEAM_MEMBERS,&#13;&#10;    src.ALLOW_ROLLOVER_HOLD_SEAT,&#13;&#10;    src.ALLOW_SELLING_PREREQUISITE_MEMBERSHIP_WHEN_WAITLISTING,&#13;&#10;    src.ALLOW_SUB_ACTIVITY_TEAM_MANAGEMENT,&#13;&#10;    src.ALLOW_TEAM_ADD,&#13;&#10;    src.ALLOW_TEAM_ADD_ONLINE,&#13;&#10;    src.ALLOW_TEAM_CONTACT_TO_DISABLE_PAYPLAN_USE,&#13;&#10;    src.ALLOW_TEAM_ROLLOVER_ONLINE,&#13;&#10;    src.ALLOW_THIRD_PARTY_BILLING,&#13;&#10;    src.ALLOW_TRANSFER,&#13;&#10;    src.ALLOW_TRANSFER_GROUP_MEMBERS,&#13;&#10;    src.ALLOW_TRANSFER_TEAM_MEMBERS,&#13;&#10;    src.ALLOW_TRIAL_CLASS,&#13;&#10;    src.ALLOW_VIEW_AND_PAY_GROUP_OUTSTANDING_BALANCES,&#13;&#10;    src.ALLOW_VIEW_AND_PAY_TEAM_OUTSTANDING_BALANCES,&#13;&#10;    src.ALLOW_VIEW_GROUP_CUSTOM_QUESTIONS_AND_ANSWERS,&#13;&#10;    src.ALLOW_VIEW_GROUP_MEMBERS,&#13;&#10;    src.ALLOW_VIEW_TEAM_MEMBERS,&#13;&#10;    src.ALLOW_VIEW_TEAM_CUSTOM_QUESTIONS_AND_ANSWERS,&#13;&#10;    src.ALLOW_WAITLISTING,&#13;&#10;    src.ALLOW_WITHDRAWAL,&#13;&#10;    src.BOOKING_PATTERN_FREQUENCY,&#13;&#10;    src.BOOKING_PATTERN_SAME_DAY_OF_WEEK,&#13;&#10;    src.BOOKING_PATTERN_SAME_TIME,&#13;&#10;    src.COPIED_FROM_ACTIVITY_ID,&#13;&#10;    src.CATALOG_DESCRIPTION,&#13;&#10;    src.TAX_RECEIPT_ELIGIBLE,&#13;&#10;    src.ENABLE_DEFERRED_REVENUE,&#13;&#10;    src.ENABLE_PRIVATE_LESSON_DATES,&#13;&#10;    src.ENABLE_RESERVABLE_ON_MEMBER_APP,&#13;&#10;    src.ENDING_TIME,&#13;&#10;    src.ENFORCE_BOOKING_PATTERN,&#13;&#10;    src.EXCLUDE_IN_CATALOG,&#13;&#10;    src.MIN_GRADE_ID,&#13;&#10;    gr1.GRADE_NAME AS MIN_GRADE,&#13;&#10;    src.MAX_GRADE_ID,&#13;&#10;    gr2.GRADE_NAME AS MAX_GRADE,&#13;&#10;    src.HIDE_ON_INTERNET,&#13;&#10;    src.IN_PERSON_REGISTRATION_DATE_TIME,&#13;&#10;    CAST(src.IN_PERSON_REGISTRATION_DATE_TIME AS DATE) AS IN_PERSON_REGISTRATION_DATE_ONLY,&#13;&#10;    src.NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_TIME,&#13;&#10;    CAST(src.NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_TIME AS DATE) AS NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_ONLY,&#13;&#10;    src.MEMBER_IN_PERSON_REGISTRATION_DATE_TIME,&#13;&#10;    CAST(src.MEMBER_IN_PERSON_REGISTRATION_DATE_TIME AS DATE) AS MEMBER_IN_PERSON_REGISTRATION_DATE_ONLY,&#13;&#10;    (CASE&#13;&#10;        WHEN src.IN_PERSON_REGISTRATION_END_DATE_TIME IS NULL THEN NULL&#13;&#10;        WHEN src.IN_PERSON_REGISTRATION_END_DATE_TIME = CAST(src.IN_PERSON_REGISTRATION_END_DATE_TIME AS DATE) THEN DATEADD(SECOND, 86399, src.IN_PERSON_REGISTRATION_END_DATE_TIME)&#13;&#10;        ELSE src.IN_PERSON_REGISTRATION_END_DATE_TIME&#13;&#10;        END) AS IN_PERSON_REGISTRATION_END_DATE_TIME,&#13;&#10;    CAST(src.IN_PERSON_REGISTRATION_END_DATE_TIME AS DATE) AS IN_PERSON_REGISTRATION_END_DATE_ONLY,&#13;&#10;    src.INTERNET_REGISTRATION_DATE_TIME,&#13;&#10;    CAST(src.INTERNET_REGISTRATION_DATE_TIME AS DATE) AS INTERNET_REGISTRATION_DATE_ONLY,&#13;&#10;    src.NON_RESIDENT_INTERNET_REGISTRATION_DATE_TIME,&#13;&#10;    CAST(src.NON_RESIDENT_INTERNET_REGISTRATION_DATE_TIME AS DATE) AS NON_RESIDENT_INTERNET_REGISTRATION_DATE_ONLY,&#13;&#10;    src.MEMBER_INTERNET_REGISTRATION_DATE_TIME,&#13;&#10;    CAST(src.MEMBER_INTERNET_REGISTRATION_DATE_TIME AS DATE) AS MEMBER_INTERNET_REGISTRATION_DATE_ONLY,&#13;&#10;    (CASE&#13;&#10;        WHEN src.INTERNET_REGISTRATION_END_DATE_TIME IS NULL THEN NULL&#13;&#10;        WHEN src.INTERNET_REGISTRATION_END_DATE_TIME = CAST(src.INTERNET_REGISTRATION_END_DATE_TIME AS DATE) THEN DATEADD(SECOND, 86399, src.INTERNET_REGISTRATION_END_DATE_TIME)&#13;&#10;        ELSE src.INTERNET_REGISTRATION_END_DATE_TIME&#13;&#10;        END) AS INTERNET_REGISTRATION_END_DATE_TIME,&#13;&#10;    CAST(src.INTERNET_REGISTRATION_END_DATE_TIME AS DATE) AS INTERNET_REGISTRATION_END_DATE_ONLY,&#13;&#10;    src.IS_SEARCHABLE,&#13;&#10;    src.ROSTER_LAST_PRINTED_DATE_TIME,&#13;&#10;    CAST(src.ROSTER_LAST_PRINTED_DATE_TIME AS DATE) AS ROSTER_LAST_PRINTED_DATE_ONLY,&#13;&#10;    src.MAX_ENROLLED_ONLINE_UNTIL_DAY,&#13;&#10;    src.MAX_LESSONS_PER_ENROLLEE,&#13;&#10;    src.MAX_NUM_ENROLLEE_PER_LESSON,&#13;&#10;    src.MAX_QUANTITY_BASED_ENROLLMENT,&#13;&#10;    src.MAX_ENROLLED_ONLINE,&#13;&#10;    src.MAX_TEAMS,&#13;&#10;    src.MIN_LESSONS_PER_ENROLLEE,&#13;&#10;    src.MIN_PRIVATE_LESSON_DURATION,&#13;&#10;    src.MAX_PRIVATE_LESSON_DURATION,&#13;&#10;    src.LAST_MODIFIED_DATE_TIME,&#13;&#10;    CAST(src.LAST_MODIFIED_DATE_TIME AS DATE) AS LAST_MODIFIED_DATE_ONLY,&#13;&#10;    src.ALLOW_INTERNET_REGISTRATION,&#13;&#10;    src.NUMBER_OF_MEETING_DATES,&#13;&#10;    src.ONLINE_ACTIVITY_LOCATION_DESCRIPTION,&#13;&#10;    src.PARENT_ACTIVITY_ID,&#13;&#10;    src.PRIVATE_LESSON_BEGINNING_DATE,&#13;&#10;    src.PRIVATE_LESSON_BOOKING_INTERVAL,&#13;&#10;    src.PRIVATE_LESSON_ENDING_TIME,&#13;&#10;    src.PRIVATE_LESSON_ENDING_DATE,&#13;&#10;    src.PRIVATE_LESSON_MAX_NUM_SEARCH_DAYS,&#13;&#10;    src.PRIVATE_LESSON_NUM_SEARCH_MONTHS,&#13;&#10;    src.PRIVATE_LESSON_STARTING_TIME,&#13;&#10;    (CASE WHEN SUBSTRING(src.PRIVATE_LESSON_WEEKDAYS, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS PRIVATE_LESSON_SUNDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.PRIVATE_LESSON_WEEKDAYS, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS PRIVATE_LESSON_MONDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.PRIVATE_LESSON_WEEKDAYS, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS PRIVATE_LESSON_TUESDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.PRIVATE_LESSON_WEEKDAYS, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS PRIVATE_LESSON_WEDNESDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.PRIVATE_LESSON_WEEKDAYS, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS PRIVATE_LESSON_THURSDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.PRIVATE_LESSON_WEEKDAYS, 6, 1) = 1 THEN 'Yes' ELSE 'No' END) AS PRIVATE_LESSON_FRIDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.PRIVATE_LESSON_WEEKDAYS, 7, 1) = 1 THEN 'Yes' ELSE 'No' END) AS PRIVATE_LESSON_SATURDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.PRIVATE_LESSON_WEEKS_OF_MONTH, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS PRIVATE_LESSON_WEEK_OF_MONTH_1,&#13;&#10;    (CASE WHEN SUBSTRING(src.PRIVATE_LESSON_WEEKS_OF_MONTH, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS PRIVATE_LESSON_WEEK_OF_MONTH_2,&#13;&#10;    (CASE WHEN SUBSTRING(src.PRIVATE_LESSON_WEEKS_OF_MONTH, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS PRIVATE_LESSON_WEEK_OF_MONTH_3,&#13;&#10;    (CASE WHEN SUBSTRING(src.PRIVATE_LESSON_WEEKS_OF_MONTH, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS PRIVATE_LESSON_WEEK_OF_MONTH_4,&#13;&#10;    (CASE WHEN SUBSTRING(src.PRIVATE_LESSON_WEEKS_OF_MONTH, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS PRIVATE_LESSON_WEEK_OF_MONTH_5,&#13;&#10;    src.RECEIPT_NOTES,&#13;&#10;    src.REQUIRE_AUTHORIZED_PICKUPS,&#13;&#10;    src.REQUIRE_USA_HOCKEY_NUMBER,&#13;&#10;    src.REQUIRE_WAIVER_INITIALS_ONLINE,&#13;&#10;    src.REQUIRE_WITHDRAW_REASON,&#13;&#10;    src.RESIDENCY_TYPE,&#13;&#10;    src.RETIRED,&#13;&#10;    src.ROLLED_OVER_TO_ACTIVITY_ID,&#13;&#10;    src.SHOW_PRICE_INFO_ONLINE,&#13;&#10;    src.SHOW_PRIMARY_FEE_ONLY,&#13;&#10;    src.SHOW_PRIVATE_LESSON_DATES_ON_RECEIPT,&#13;&#10;    src.SHOW_SCHOLARSHIP_ONLINE,&#13;&#10;    src.STARTING_TIME,&#13;&#10;    src.TEAM_ENROLLMENTS_ONLY,&#13;&#10;    src.MAX_PLAYERS_PER_TEAM,&#13;&#10;    src.MIN_PLAYERS_PER_TEAM,&#13;&#10;    src.WAIVER_TEXT,&#13;&#10;    src.WEEKDAYS AS DAYS_OF_WEEK,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKDAYS, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS SUNDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKDAYS, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKDAYS, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS TUESDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKDAYS, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEDNESDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKDAYS, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS THURSDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKDAYS, 6, 1) = 1 THEN 'Yes' ELSE 'No' END) AS FRIDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKDAYS, 7, 1) = 1 THEN 'Yes' ELSE 'No' END) AS SATURDAY,&#13;&#10;    src.WEEKS_OF_MONTH,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_1,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_2,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_3,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_4,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_5,&#13;&#10;    src.ENROLLMENT_EMAIL_NOTIFICATION_ID,&#13;&#10;    src.WITHDRAWAL_EMAIL_NOTIFICATION_ID,&#13;&#10;    src.SHOW_TEAM_GROUP_REGISTRATION_OPTIONS,&#13;&#10;    src.ONLINE_NOTES,&#13;&#10;&#9;src.ONLINE_URL,&#13;&#10;&#9;src.IGNOREMAXIMUM,&#13;&#10;&#9;src.IGNORE_PARENTS_MAXIMUM,&#13;&#10;&#9;src.IGNORE_AGE_RESTRICTION_FOR_CONTACT,&#13;&#10;&#9;src.IGNORE_AGE_RESTRICTION_FOR_GROUP_CONTACT,&#13;&#10;&#9;src.IGNOREMAXENROLLEDONLINE,&#13;&#10;&#9;src.ALLOW_SUBSIDY,&#13;&#10;&#9;src.DISPLAY_DATE,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.ACTIVITY_ID AS source_id,&#13;&#10;&#9;src.EXTERNAL_EVENT_NUMBER,&#13;&#10;&#9;src.LOCAL_PRIORITY_REGISTRATION AS ALLOW_LOCAL_PRIORITY_REGISTRATION_YES_NO,&#13;&#10;&#9;src.CANCELLATION_REASON_ID,&#13;&#10;&#9;src.CANCELLATION_REASON_TEXT,&#13;&#10;&#9;src.CANCELLATION_REASON_DATE&#13;&#10;FROM &#13;&#10;    hub.ACTIVITIES src&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON (fa1.ORG_ID = src.ORG_ID AND src.FACILITY_ID = fa1.FACILITY_ID)&#13;&#10;    LEFT JOIN hub.CENTERS ce1 ON (ce1.ORG_ID = src.ORG_ID AND fa1.CENTER_ID = ce1.CENTER_ID)&#13;&#10;    LEFT JOIN hub.INSTRUCTORS in1 ON (in1.ORG_ID = src.ORG_ID AND src.INSTRUCTOR_ID = in1.INSTRUCTOR_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND in1.CUSTOMER_ID = cu1.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND src.SITE_ID = si1.SITE_ID)&#13;&#10;    LEFT JOIN hub.SUPERVISORS su1 ON (su1.ORG_ID = src.ORG_ID AND src.SUPERVISOR_ID = su1.SUPERVISOR_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu2 ON (cu2.ORG_ID = src.ORG_ID AND su1.CUSTOMER_ID = cu2.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_GROUPS ag1 ON (ag1.ORG_ID = src.ORG_ID AND ag1.ACTIVITY_GROUP_ID = src.ACTIVITY_GROUP_ID)&#13;&#10;    LEFT JOIN hub.SEASONS se1 ON (se1.ORG_ID = src.ORG_ID AND se1.SEASON_ID = src.SEASON_ID)&#13;&#10;    LEFT JOIN hub.CHILD_SEASONS cs1 ON (cs1.ORG_ID = src.ORG_ID AND cs1.CHILD_SEASON_ID = src.CHILD_SEASON_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_TYPES atyp ON (atyp.ORG_ID = src.ORG_ID AND atyp.ACTIVITY_TYPE_ID = src.ACTIVITY_TYPE_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_CATEGORIES acat ON (acat.ORG_ID = src.ORG_ID AND acat.ACTIVITY_CATEGORY_ID = src.ACTIVITY_CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_SUB_CATEGORIES ascat ON (ascat.ORG_ID = src.ORG_ID AND ascat.ACTIVITY_SUB_CATEGORY_ID = src.ACTIVITY_OTHER_CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_DEPARTMENTS adep ON (adep.ORG_ID = src.ORG_ID AND adep.ACTIVITY_DEPARTMENT_ID = src.ACTIVITY_DEPARTMENT_ID)&#13;&#10;    LEFT JOIN hub.GENDERS ge1 ON (ge1.ORG_ID = src.ORG_ID AND ge1.GENDER_INDEX = src.GENDER_INDEX)&#13;&#10;    LEFT JOIN hub.GRADES gr1 ON (gr1.ORG_ID = src.ORG_ID AND gr1.GRADE_ID = src.MIN_GRADE_ID)&#13;&#10;    LEFT JOIN hub.GRADES gr2 ON (gr2.ORG_ID = src.ORG_ID AND gr2.GRADE_ID = src.MAX_GRADE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVITY_ID" nullable="true" remarks="The ID of this activity" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_DATES"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_DIVISIONS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_ENROLLMENTS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_FEES"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_PRIVATE_LESSONS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_RESERVATION_PATTERNS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_TEAM_CATEGORIES"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_RENTAL_BLOCKS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="INTEREST_LISTS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUES"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PREREQUISITES"/>
            <child catalog="ActiveHub" column="PREREQUISITE_ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PREREQUISITES"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAMS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WISHLISTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SITE_ID" nullable="true" remarks="The site ID of this activity" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ACTIVITYNUMBER" nullable="true" remarks="The activity number of this activity" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVITYNAME" nullable="true" remarks="The name of this activity" size="240" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_SUBACTIVITY" nullable="true" remarks="Whether this is a sub-activity (Activity / SubActivity)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVITYSTATUS_ID" nullable="true" remarks="The current status ID of this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVITY_STATUS_DESC" nullable="true" remarks="The current status description of this activity" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVITY_TYPE_ID" nullable="true" remarks="The activity type ID of this activity" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVITY_TYPE" nullable="true" remarks="The activity type name of this activity" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVITY_CATEGORY_ID" nullable="true" remarks="The activity category ID of this activity" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ACTIVITY_CATEGORY" nullable="true" remarks="The activity category name of this activity" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVITY_OTHER_CATEGORY_ID" nullable="true" remarks="The activity subcategory ID of this activity" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_SUB_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_SUB_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ACTIVITY_OTHER_CATEGORY" nullable="true" remarks="The activity subcategory name of this activity" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ACTIVITY_DEPARTMENT_ID" nullable="true" remarks="The activity department ID of this activity" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ACTIVITY_DEPARTMENT" nullable="true" remarks="The activity department name of this activity" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="SITENAME" nullable="true" remarks="The site name of this activity" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="FACILITY_ID" nullable="true" remarks="The facility ID of this activity" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="FACILITYNAME" nullable="true" remarks="The facility name of this activity" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="CENTER_ID" nullable="true" remarks="The center ID of this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="CENTERNAME" nullable="true" remarks="The center name of this activity" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="INSTRUCTOR_ID" nullable="true" remarks="The primary instructor ID of this activity" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="INSTRUCTOR_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="INSTRUCTORS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="INSTRUCTOR_NAME" nullable="false" remarks="The primary instructor name of this activity" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="SUPERVISOR_ID" nullable="true" remarks="The supervisor ID of this activity" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SUPERVISOR_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SUPERVISORS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="SUPERVISOR_NAME" nullable="false" remarks="The supervisor name of this activity" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="SEASON_ID" nullable="true" remarks="The parent season ID of the activity" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="SEASON" nullable="true" remarks="The parent season name of the activity" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="CHILD_SEASON_ID" nullable="true" remarks="The child season ID of the activity" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHILD_SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHILD_SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="TERM" nullable="true" remarks="The child season name of the activity" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="28" name="BEGINNINGDATE" nullable="true" remarks="The beginning date of this activity" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="29" name="ENDINGDATE" nullable="true" remarks="The ending date of this activity" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="AGESMIN" nullable="true" remarks="The minimum age (years) allowed for this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="AGESMAX" nullable="true" remarks="The maximum age (years) allowed for this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="NUMBEROFSESSIONS" nullable="true" remarks="The total number of sessions for this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="33" name="NUMBEROFHOURS" nullable="true" remarks="The total number of hours for this activity" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="NUMBER_OF_HOLDS" nullable="true" remarks="The current number of holds for this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="NUMBER_WAITLISTS" nullable="true" remarks="The current number of people waitlisted for this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="NUMBER_OPEN" nullable="true" remarks="The current number of openings for this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="ENROLLMIN" nullable="true" remarks="The minimum number of enrollees for this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="ENROLLMAX" nullable="true" remarks="The maximum number of enrollees for this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="ENROLLED" nullable="true" remarks="The current number of enrollees for this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="ENROLLSTATUS" nullable="true" remarks="The current enrollment status for the activity (Under Minimum, Under Maximum, Full, Full with Waiting List)" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="FILLRATE" nullable="true" remarks="The Fill Rate is calculated using the following formula:&#13;&#10;    % (# of Registrations / Max Registration). Pseudocode: If ACTIVITIES.IGNOREMAXIMUM &lt;&gt; 0 then null else if ACTIVITIES.ENROLLMAX = 0 and ACTIVITIES.IGNOREMAXIMUM = 0 and ACTIVITYSTATISTICS.NUMBER_ENROLLED = 0 &#13;&#10;    then 0&#13;&#10;    Else if ACTIVITIES.ENROLLMAX = 0 and ACTIVITIES.IGNOREMAXIMUM = 0 and ACTIVITYSTATISTICS.NUMBER_ENROLLED &lt;&gt; 0&#13;&#10;    then 1&#13;&#10;    else ACTIVITYSTATISTICS.NUMBER_ENROLLED/ (1.00 * ACTIVITIES.ENROLLMAX)" size="8" type="float" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="42" name="REVENUE" nullable="true" remarks="The revenue amount for the activity excluding tax" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="43" name="REVENUE_PLUS_TAX" nullable="true" remarks="The revenue amount for the activity including tax" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="44" name="TAX" nullable="true" remarks="The tax amount for the activity (REVENUE_PLUS_TAX - REVENUE)" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="ALLOW_DROPIN" nullable="true" remarks="Are drop-ins allowed for this activity?" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="46" name="DROPIN_FEE_CHARGE_AMOUNT" nullable="true" remarks="The drop-in charge amount for the activity if set" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="CREATE_MEETING_DATES" nullable="true" remarks="Whether meeting dates should be generated for the activity (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="RESERVE_FACILITIES" nullable="true" remarks="Whether facilities should be reserved for the generated activity meeting dates (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="GENDER_INDEX" nullable="true" remarks="The gender ID that the activity is restricted to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GENDERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="GENDER" nullable="true" remarks="The gender name that the activity is restricted to" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="AGE_CALC_DATE" nullable="true" remarks="The start date for calculating participant age" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="AGE_MIN_WEEKS" nullable="true" remarks="Minimum participant age (weeks) of the activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="AGE_MAX_WEEKS" nullable="true" remarks="Maximum participant age (weeks) of the activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="AGE_MIN_MONTHS" nullable="true" remarks="Minimum participant age (months) of the activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="AGE_MAX_MONTHS" nullable="true" remarks="Maximum participant age (months) of the activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="ACTIVITY_GROUP_ID" nullable="true" remarks="The activity group ID for shared capacity" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_GROUP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_GROUPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="ACTIVITY_GROUP_CAPACITY" nullable="true" remarks="The maximum registration capacity shared by the activities assigned to this group" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="ALLOW_ADD_GROUP_MEMBER" nullable="true" remarks="Whether individual group members can be added for this activity (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="ALLOW_ADD_TEAM_MEMBER" nullable="true" remarks="Whether individual team members can be added for this activity (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="ALLOW_AMEND_GROUP_MEMBERS" nullable="true" remarks="Whether group contacts are allowed to amend member registration information (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="61" name="ALLOW_AMEND_TEAM_MEMBERS" nullable="true" remarks="Whether team contacts are allowed to amend member registration information (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="ALLOW_ATTENDANCE_ENTRY" nullable="true" remarks="Whether attendance can be entered for this activity (Yes / No / Use Default)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="ALLOW_PRIVATE_LESSON_BOOKINGS_ONLINE" nullable="true" remarks="Whether this activity allows private lesson bookings online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="ALLOW_CHANGE_MAX_BOOKING" nullable="true" remarks="Whether selecting desired private lesson booking quantity per enrollee is allowed (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="65" name="ALLOW_CHANGE_MAX_BOOKING_ONLINE" nullable="true" remarks="Whether selecting desired private lesson booking quantity per enrollee is allowed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="66" name="ALLOW_EDIT_GROUP_MEMBER_SKILLS" nullable="true" remarks="Whether group contacts are allowed to edit member skills (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="67" name="ALLOW_EDIT_GROUP_INFO" nullable="true" remarks="Whether group contacts are allowed to edit group information (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="68" name="ALLOW_EDIT_GROUP_MEMBER_INFO" nullable="true" remarks="Whether group contacts are allowed to edit member information (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="69" name="ALLOW_EDIT_PARTICIPANT_SKILL_ONLINE" nullable="true" remarks="Whether instructors are allowed to edit participant skills online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="70" name="ALLOW_EDIT_TEAM_INFO" nullable="true" remarks="Whether team contacts are allowed to edit team information (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="71" name="ALLOW_EDIT_TEAM_MEMBER_INFO" nullable="true" remarks="Whether team contacts are allowed to edit member information (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="72" name="ALLOW_EDIT_TEAM_MEMBER_SKILLS" nullable="true" remarks="Whether team contacts are allowed to edit member skills (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="73" name="ALLOW_ENROLL_WITH_DEPOSIT" nullable="true" remarks="Whether this activity allows enrollment with deposit (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="74" name="ALLOW_GROUP_ADD" nullable="true" remarks="Whether group creation is allowed for this activity (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="75" name="ALLOW_GROUP_ADD_ONLINE" nullable="true" remarks="Whether group creation is allowed online for this activity (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="76" name="ALLOW_IGNORE_CATEGORY_SCHEDULE_CONFLICT" nullable="true" remarks="Whether users should be allowed to ignore schedule conflicts except for conflicts in the same activity category (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="77" name="ALLOW_IGNORE_SCHEDULE_CONFLICT" nullable="true" remarks="Whether users should be allowed to ignore schedule conflicts during enrollment (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="78" name="ALLOW_PRE_BOOK_PRIVATE_LESSON_ONLY_ONLINE" nullable="true" remarks="Whether pre-booked private lessons are allowed (Yes / No / Use Default)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="79" name="ALLOW_PRE_BOOK_PRIVATE_LESSON_ONLY_STAFF" nullable="true" remarks="Whether pre-booked private lessons are allowed online (Yes / No / Use Default)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="80" name="ALLOW_PRIORITY_REGISTRATION" nullable="true" remarks="Whether priority registration for returning participants is enabled for this activity (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="81" name="ALLOW_PRIVATE_LESSON_BOOKINGS" nullable="true" remarks="Whether this activity allows private lesson bookings (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="82" name="ALLOW_REMOVE_GROUP_MEMBERS" nullable="true" remarks="Whether group contacts are allowed to remove group members (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="83" name="ALLOW_REMOVE_TEAM_MEMBERS" nullable="true" remarks="Whether team contacts are allowed to remove team members (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="84" name="ALLOW_ROLLOVER_HOLD_SEAT" nullable="true" remarks="Whether a hold is placed on registration seats for enrollees of the activity during rollover (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="85" name="ALLOW_SELLING_PREREQUISITE_MEMBERSHIP_WHEN_WAITLISTING" nullable="true" remarks="Whether a prerequisite membership may be purchased when waitlisting online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="86" name="ALLOW_SUB_ACTIVITY_TEAM_MANAGEMENT" nullable="true" remarks="Whether team/group management for sub-activities is allowed (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="87" name="ALLOW_TEAM_ADD" nullable="true" remarks="Whether team creation is allowed for this activity (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="88" name="ALLOW_TEAM_ADD_ONLINE" nullable="true" remarks="Whether team creation is allowed online for this activity (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="89" name="ALLOW_TEAM_CONTACT_TO_DISABLE_PAYPLAN_USE" nullable="true" remarks="Whether team/group contacts are allowed to set whether new members can select payment plan (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="90" name="ALLOW_TEAM_ROLLOVER_ONLINE" nullable="true" remarks="Whether team rollover is allowed during online enrollment (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="91" name="ALLOW_THIRD_PARTY_BILLING" nullable="true" remarks="Whether third-party billing should be available for this activity (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="92" name="ALLOW_TRANSFER" nullable="true" remarks="Whether this activity allows transfer to a different activity (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="93" name="ALLOW_TRANSFER_GROUP_MEMBERS" nullable="true" remarks="Whether group contacts are allowed to transfer group members (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="94" name="ALLOW_TRANSFER_TEAM_MEMBERS" nullable="true" remarks="Whether team contacts are allowed to transfer team members (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="95" name="ALLOW_TRIAL_CLASS" nullable="true" remarks="Whether this activity allows trial enrollments (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="96" name="ALLOW_VIEW_AND_PAY_GROUP_OUTSTANDING_BALANCES" nullable="true" remarks="Whether group contacts are allowed to view and pay member outstanding balances (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="97" name="ALLOW_VIEW_AND_PAY_TEAM_OUTSTANDING_BALANCES" nullable="true" remarks="Whether team contacts are allowed to view and pay member outstanding balances (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="98" name="ALLOW_VIEW_GROUP_CUSTOM_QUESTIONS_AND_ANSWERS" nullable="true" remarks="Whether group contacts are allowed to view member custom questions and answers (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="99" name="ALLOW_VIEW_GROUP_MEMBERS" nullable="true" remarks="Whether group contacts are allowed to view member information (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="100" name="ALLOW_VIEW_TEAM_MEMBERS" nullable="true" remarks="Whether team contacts are allowed to view member information (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="101" name="ALLOW_VIEW_TEAM_CUSTOM_QUESTIONS_AND_ANSWERS" nullable="true" remarks="Whether team contacts are allowed to view member custom questions and answers (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="102" name="ALLOW_WAITLISTING" nullable="true" remarks="Whether this activity allows waitlisting (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="103" name="ALLOW_WITHDRAWAL" nullable="true" remarks="Whether this activity allows withdrawal (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="104" name="BOOKING_PATTERN_FREQUENCY" nullable="true" remarks="Private lesson booking pattern frequency (Weekly / Bi-Weekly / Monthly / None)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="105" name="BOOKING_PATTERN_SAME_DAY_OF_WEEK" nullable="true" remarks="Private lesson booking pattern keep same day of week (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="106" name="BOOKING_PATTERN_SAME_TIME" nullable="true" remarks="Private lesson booking pattern keep same start and end times (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="107" name="COPIED_FROM_ACTIVITY_ID" nullable="true" remarks="The ID of the activity that this activity was copied from" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="108" name="CATALOG_DESCRIPTION" nullable="true" remarks="The catalog description to be displayed for this activity" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="109" name="TAX_RECEIPT_ELIGIBLE" nullable="true" remarks="Whether this activity is eligible for tax receipts (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="110" name="ENABLE_DEFERRED_REVENUE" nullable="true" remarks="Whether deferred revenue is enabled for this activity (Yes / No / Use Default)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="111" name="ENABLE_PRIVATE_LESSON_DATES" nullable="true" remarks="Whether private lesson dates are enabled to override activity dates (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="112" name="ENABLE_RESERVABLE_ON_MEMBER_APP" nullable="true" remarks="Show on ACTIVE Net Captivate App (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="113" name="ENDING_TIME" nullable="true" remarks="The default ending time for activity classes" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="114" name="ENFORCE_BOOKING_PATTERN" nullable="true" remarks="Whether this private lesson activity enforces a booking pattern (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="115" name="EXCLUDE_IN_CATALOG" nullable="true" remarks="Whether this activity should be excluded from any generated catalog of activities (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="116" name="MIN_GRADE_ID" nullable="true" remarks="The minimum grade ID for participants of this activity" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GRADE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GRADES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="117" name="MIN_GRADE" nullable="true" remarks="The minimum grade for participants of this activity" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="118" name="MAX_GRADE_ID" nullable="true" remarks="The maximum grade ID for participants of this activity" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GRADE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GRADES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="119" name="MAX_GRADE" nullable="true" remarks="The maximum grade for participants of this activity" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="120" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether this activity should be excluded from display online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="121" name="IN_PERSON_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for in-person enrollments" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="122" name="IN_PERSON_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for in-person enrollments" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="123" name="NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for online enrollments for non-residents" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="124" name="NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for online enrollments for non-residents" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="125" name="MEMBER_IN_PERSON_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for in-person enrollments for members" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="126" name="MEMBER_IN_PERSON_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for in-person enrollments for members" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="127" name="IN_PERSON_REGISTRATION_END_DATE_TIME" nullable="true" remarks="The date and time that registration ends for in-person enrollments" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="128" name="IN_PERSON_REGISTRATION_END_DATE_ONLY" nullable="true" remarks="The date that registration ends for in-person enrollments" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="129" name="INTERNET_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for online enrollments" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="130" name="INTERNET_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for online enrollments" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="131" name="NON_RESIDENT_INTERNET_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for in-person enrollments for non-residents" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="132" name="NON_RESIDENT_INTERNET_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for in-person enrollments for non-residents" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="133" name="MEMBER_INTERNET_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for online enrollments for members" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="134" name="MEMBER_INTERNET_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for online enrollments for members" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="135" name="INTERNET_REGISTRATION_END_DATE_TIME" nullable="true" remarks="The date and time that registration ends for online enrollments" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="136" name="INTERNET_REGISTRATION_END_DATE_ONLY" nullable="true" remarks="The date that registration ends for online enrollments" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="137" name="IS_SEARCHABLE" nullable="true" remarks="Whether this activity is searchable in the online catalog (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="138" name="ROSTER_LAST_PRINTED_DATE_TIME" nullable="true" remarks="The date and time that a roster was last printed for this activity" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="139" name="ROSTER_LAST_PRINTED_DATE_ONLY" nullable="true" remarks="The date that a roster was last printed for this activity" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="140" name="MAX_ENROLLED_ONLINE_UNTIL_DAY" nullable="true" remarks="The number of days after in-person registration starts that the online quota override is enforced for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="141" name="MAX_LESSONS_PER_ENROLLEE" nullable="true" remarks="The maximum number of private lessons permitted per enrollee" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="142" name="MAX_NUM_ENROLLEE_PER_LESSON" nullable="true" remarks="The maximum number of enrollees per private lesson time slot" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="143" name="MAX_QUANTITY_BASED_ENROLLMENT" nullable="true" remarks="The maximum quantity that may be enrolled when quantity-based enrollment is enabled" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="144" name="MAX_ENROLLED_ONLINE" nullable="true" remarks="The maximum number of enrollments that may be done online for this activity overriding the online quota" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="145" name="MAX_TEAMS" nullable="true" remarks="The maximum number of teams that may be enrolled in this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="146" name="MIN_LESSONS_PER_ENROLLEE" nullable="true" remarks="The minimum number of private lessons required per enrollee" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="147" name="MIN_PRIVATE_LESSON_DURATION" nullable="true" remarks="The minimum duration of private lessons in minutes" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="148" name="MAX_PRIVATE_LESSON_DURATION" nullable="true" remarks="The maximum duration of private lessons in minutes" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="149" name="LAST_MODIFIED_DATE_TIME" nullable="true" remarks="The date and time the activity was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="150" name="LAST_MODIFIED_DATE_ONLY" nullable="true" remarks="The date the activity was last modified" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="151" name="ALLOW_INTERNET_REGISTRATION" nullable="true" remarks="Whether online registration is allowed for this activity (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="152" name="NUMBER_OF_MEETING_DATES" nullable="true" remarks="The number of meeting dates for this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="153" name="ONLINE_ACTIVITY_LOCATION_DESCRIPTION" nullable="true" remarks="The activity location description to be displayed online" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="154" name="PARENT_ACTIVITY_ID" nullable="true" remarks="The ID of the activity that is the parent of this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="155" name="PRIVATE_LESSON_BEGINNING_DATE" nullable="true" remarks="The private lesson beginning date (when overriding activity dates)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="156" name="PRIVATE_LESSON_BOOKING_INTERVAL" nullable="true" remarks="The private lesson booking grid interval in minutes" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="157" name="PRIVATE_LESSON_ENDING_TIME" nullable="true" remarks="The private lesson ending time (when overriding activity dates)" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="158" name="PRIVATE_LESSON_ENDING_DATE" nullable="true" remarks="The private lesson ending date (when overriding activity dates)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="159" name="PRIVATE_LESSON_MAX_NUM_SEARCH_DAYS" nullable="true" remarks="The private lesson maximum number of days of availability to be displayed in the search date range" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="160" name="PRIVATE_LESSON_NUM_SEARCH_MONTHS" nullable="true" remarks="The private lesson default number of months of availability to be displayed in the search date range" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="161" name="PRIVATE_LESSON_STARTING_TIME" nullable="true" remarks="The private lesson starting time (when overriding activity dates)" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="162" name="PRIVATE_LESSON_SUNDAY" nullable="false" remarks="Whether private lessons are configured for Sundays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="163" name="PRIVATE_LESSON_MONDAY" nullable="false" remarks="Whether private lessons are configured for Mondays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="164" name="PRIVATE_LESSON_TUESDAY" nullable="false" remarks="Whether private lessons are configured for Tuesdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="165" name="PRIVATE_LESSON_WEDNESDAY" nullable="false" remarks="Whether private lessons are configured for Wednesdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="166" name="PRIVATE_LESSON_THURSDAY" nullable="false" remarks="Whether private lessons are configured for Thursdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="167" name="PRIVATE_LESSON_FRIDAY" nullable="false" remarks="Whether private lessons are configured for Fridays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="168" name="PRIVATE_LESSON_SATURDAY" nullable="false" remarks="Whether private lessons are configured for Saturdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="169" name="PRIVATE_LESSON_WEEK_OF_MONTH_1" nullable="false" remarks="Whether private lessons are configured for days during the first week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="170" name="PRIVATE_LESSON_WEEK_OF_MONTH_2" nullable="false" remarks="Whether private lessons are configured for days during the second week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="171" name="PRIVATE_LESSON_WEEK_OF_MONTH_3" nullable="false" remarks="Whether private lessons are configured for days during the third week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="172" name="PRIVATE_LESSON_WEEK_OF_MONTH_4" nullable="false" remarks="Whether private lessons are configured for days during the fourth week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="173" name="PRIVATE_LESSON_WEEK_OF_MONTH_5" nullable="false" remarks="Whether private lessons are configured for days during the last week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="174" name="RECEIPT_NOTES" nullable="true" remarks="Notes for this activity that should be included on the receipt" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="175" name="REQUIRE_AUTHORIZED_PICKUPS" nullable="true" remarks="Whether this activity requires entry of authorized pickups during enrollment (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="176" name="REQUIRE_USA_HOCKEY_NUMBER" nullable="true" remarks="Whether this activity requires entry of USA Hockey number during enrollment (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="177" name="REQUIRE_WAIVER_INITIALS_ONLINE" nullable="true" remarks="Whether this activity requires entry of initials for the waiver online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="178" name="REQUIRE_WITHDRAW_REASON" nullable="true" remarks="Whether this activity requires entry of a reason during withdrawal (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="179" name="RESIDENCY_TYPE" nullable="true" remarks="The residency requirements for this activity (Resident Only / Non-Resident Only / Both)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="180" name="RETIRED" nullable="true" remarks="Deprecated, use ACTIVITY_STATUS_DESC = &quot;Retired&quot;" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="181" name="ROLLED_OVER_TO_ACTIVITY_ID" nullable="true" remarks="The ID of the activity that this activity has been rolled over to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="182" name="SHOW_PRICE_INFO_ONLINE" nullable="true" remarks="Whether price info for this activity should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="183" name="SHOW_PRIMARY_FEE_ONLY" nullable="true" remarks="Whether only the primary fee for this activity should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="184" name="SHOW_PRIVATE_LESSON_DATES_ON_RECEIPT" nullable="true" remarks="Whether private lesson dates should be included on the receipt (Yes / No / Use Default)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="185" name="SHOW_SCHOLARSHIP_ONLINE" nullable="true" remarks="Whether scholarship info for this activity should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="186" name="STARTING_TIME" nullable="true" remarks="The default starting time for activity classes" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="187" name="TEAM_ENROLLMENTS_ONLY" nullable="true" remarks="Whether this activity only allows team enrollment (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="188" name="MAX_PLAYERS_PER_TEAM" nullable="true" remarks="The maximum number of players per team for this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="189" name="MIN_PLAYERS_PER_TEAM" nullable="true" remarks="The minimum number of players per team for this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="190" name="WAIVER_TEXT" nullable="true" remarks="Waiver text to be displayed during enrollment for this activity" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="191" name="DAYS_OF_WEEK" nullable="true" remarks="Whether the activity is configured for specific days of the week" size="7" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="192" name="SUNDAY" nullable="false" remarks="Whether the activity is configured for Sundays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="193" name="MONDAY" nullable="false" remarks="Whether the activity is configured for Mondays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="194" name="TUESDAY" nullable="false" remarks="Whether the activity is configured for Tuesdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="195" name="WEDNESDAY" nullable="false" remarks="Whether the activity is configured for Wednesdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="196" name="THURSDAY" nullable="false" remarks="Whether the activity is configured for Thursdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="197" name="FRIDAY" nullable="false" remarks="Whether the activity is configured for Fridays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="198" name="SATURDAY" nullable="false" remarks="Whether the activity is configured for Saturdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="199" name="WEEKS_OF_MONTH" nullable="true" remarks="Whether the activity is configured for specific weeks of the month" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="200" name="WEEK_OF_MONTH_1" nullable="false" remarks="Whether the activity is configured for days during the first week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="201" name="WEEK_OF_MONTH_2" nullable="false" remarks="Whether the activity is configured for days during the second week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="202" name="WEEK_OF_MONTH_3" nullable="false" remarks="Whether the activity is configured for days during the third week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="203" name="WEEK_OF_MONTH_4" nullable="false" remarks="Whether the activity is configured for days during the fourth week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="204" name="WEEK_OF_MONTH_5" nullable="false" remarks="Whether the activity is configured for days during the last week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="205" name="ENROLLMENT_EMAIL_NOTIFICATION_ID" nullable="true" remarks="Enrollment email notification ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="206" name="WITHDRAWAL_EMAIL_NOTIFICATION_ID" nullable="true" remarks="Withdrawal email notification ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="207" name="SHOW_TEAM_GROUP_REGISTRATION_OPTIONS" nullable="true" remarks="Whether team/group registration options should be displayed during online enrollment (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="208" name="ONLINE_NOTES" nullable="true" remarks="The online notes to be displayed for this activity" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="209" name="ONLINE_URL" nullable="true" remarks="The online landing page for this activity" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="210" name="IGNOREMAXIMUM" nullable="true" remarks="" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="211" name="IGNORE_PARENTS_MAXIMUM" nullable="true" remarks="" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="212" name="IGNORE_AGE_RESTRICTION_FOR_CONTACT" nullable="true" remarks="" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="213" name="IGNORE_AGE_RESTRICTION_FOR_GROUP_CONTACT" nullable="true" remarks="" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="214" name="IGNOREMAXENROLLEDONLINE" nullable="true" remarks="" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="215" name="ALLOW_SUBSIDY" nullable="true" remarks="Allow subsidy for activity enrollmen" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="216" name="DISPLAY_DATE" nullable="true" remarks="DISPLAY DATE for activity" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="217" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="218" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="219" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="220" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="221" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="222" name="EXTERNAL_EVENT_NUMBER" nullable="true" remarks="The number of external event." size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="223" name="ALLOW_LOCAL_PRIORITY_REGISTRATION_YES_NO" nullable="true" remarks="Whether the activity allows for priority registration (Yes or No)" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="224" name="CANCELLATION_REASON_ID" nullable="true" remarks="Activty cancellation reason ID, from Reasons table." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="225" name="CANCELLATION_REASON_TEXT" nullable="true" remarks="Activty cancellation reason text, from Reasons table." size="4000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="226" name="CANCELLATION_REASON_DATE" nullable="true" remarks="Activty cancellation date." size="16" type="datetime" typeCode="93"/>
         <primaryKey column="ACTIVITY_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_ATTENDANCE" numRows="0" remarks="Attendance details of an Activity" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.ACTIVITY_ATTENDANCE &#13;&#10;AS &#13;&#10;select &#13;&#10;&#9;a.ACTIVITY_ID,&#13;&#10;&#9;a.ACTIVITYNAME,&#13;&#10;&#9;a.ACTIVITYNUMBER,&#13;&#10;&#9;ad.MEETING_DATE,&#13;&#10;&#9;t.TRANSACTION_ID,&#13;&#10;&#9;t.CUSTOMER_ID,&#13;&#10;&#9;c.CUSTOMER_FIRST_NAME,&#13;&#10;&#9;c.CUSTOMER_LAST_NAME,&#13;&#10;&#9;CASE aa.ABSENT WHEN -1 THEN 'Yes' ELSE 'No' END AS ABSENT,&#13;&#10;&#9;a.ORG_ID&#13;&#10;from hub.ACTIVITYATTENDANCE aa&#13;&#10;inner join hub.ACTIVITY_DATES ad on (ad.ORG_ID = aa.ORG_ID AND ad.ACTIVITY_DATE_ID = aa.ACTIVITY_DATE_ID)&#13;&#10;inner join hub.activities a on (a.ORG_ID = ad.ORG_ID AND a.activity_id = ad.activity_id) &#13;&#10;inner join dbo.transactions t on (t.ORG_ID = aa.ORG_ID AND t.transaction_id = aa.TRANSACTION_ID)&#13;&#10;inner join hub.customers c on (t.ORG_ID = c.ORG_ID AND t.customer_id = c.customer_id)&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVITY_ID" nullable="true" remarks="The ID of this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ACTIVITYNAME" nullable="true" remarks="The name of this activity" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ACTIVITYNUMBER" nullable="true" remarks="The activity number of this activity" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="MEETING_DATE" nullable="true" remarks="Date of the activity class" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="TRANSACTION_ID" nullable="true" remarks="Transaction ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMER_ID" nullable="true" remarks="ID of the customer who is the participant of the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOMER_FIRST_NAME" nullable="true" remarks="Customer's first name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CUSTOMER_LAST_NAME" nullable="true" remarks="Customer's last name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ABSENT" nullable="false" remarks="Absent status" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ORG_ID" nullable="true" remarks="our organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_ATTENDANCE_COUNTS" numRows="0" remarks="Attendance counts of an Activity" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.ACTIVITY_ATTENDANCE_COUNTS &#13;&#10;AS &#13;&#10;select &#13;&#10;&#9;a.ACTIVITY_ID,&#13;&#10;&#9;a.ACTIVITYNAME,&#13;&#10;&#9;a.ACTIVITYNUMBER,&#13;&#10;&#9;aa.ORG_ID,&#13;&#10;&#9;aa.ACTIVITY_ATTENDANCE_COUNT_ID,&#13;&#10;&#9;aa.ACTIVITY_DATE_ID,&#13;&#10;&#9;aa.ATTENDANCE_COUNT,&#13;&#10;&#9;aa.ROW_VERSION,&#13;&#10;&#9;aa.LAST_SYNC_TIME,&#13;&#10;&#9;aa.ACTIVE_HUB_PROCESS_ID&#9;&#13;&#10;from hub.ACTIVITY_ATTENDANCE_COUNTS aa&#13;&#10;inner join hub.ACTIVITY_DATES ad on (ad.ORG_ID = aa.ORG_ID AND ad.ACTIVITY_DATE_ID = aa.ACTIVITY_DATE_ID)&#13;&#10;inner join hub.activities a on (a.ORG_ID = ad.ORG_ID AND a.activity_id = ad.activity_id) &#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVITY_ID" nullable="true" remarks="The ID of this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ACTIVITYNAME" nullable="true" remarks="The name of this activity" size="240" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ACTIVITYNUMBER" nullable="true" remarks="The activity number of this activity" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_ATTENDANCE_COUNT_ID" nullable="false" remarks="Unique ID of the table" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVITY_DATE_ID" nullable="true" remarks="Activity date ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ATTENDANCE_COUNT" nullable="true" remarks="Attendance count number of an Activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time dbo record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The dbo sync process ID" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_CATEGORIES" numRows="0" remarks="Your organization's defined activity categories" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.ACTIVITY_CATEGORIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVITY_CATEGORY_ID,&#13;&#10;    src.ACTIVITY_CATEGORY_NAME,&#13;&#10;    src.DEFAULT_REVENUE_GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS DEFAULT_REVENUE_GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS DEFAULT_REVENUE_GL_ACCOUNT_NUMBER,&#13;&#10;    src.DEFAULT_EXPENSE_GLACCOUNT_ID,&#13;&#10;    gl2.ACCOUNTNAME AS DEFAULT_EXPENSE_GL_ACCOUNT_NAME,&#13;&#10;    gl2.ACCOUNTNUMBER AS DEFAULT_EXPENSE_GL_ACCOUNT_NUMBER,&#13;&#10;    src.DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID,&#13;&#10;    gl3.ACCOUNTNAME AS DEFAULT_EXPENSE_OFFSET_GL_ACCOUNT_NAME,&#13;&#10;    gl3.ACCOUNTNUMBER AS DEFAULT_EXPENSE_OFFSET_GL_ACCOUNT_NUMBER,&#13;&#10;    src.MAX_CLASSES_PER_DAY,&#13;&#10;    src.MAX_CLASSES_PER_WEEK,&#13;&#10;    src.HIDE_ON_INTERNET,&#13;&#10;    src.LINK_INTEREST_LIST,&#13;&#10;    src.SHOW_ON_CAPTIVATE_APP,&#13;&#10;    src.ALLOW_IGNORE_SCHEDULE_CONFLICT,&#13;&#10;    src.ALLOW_IGNORE_CATEGORY_SCHEDULE_CONFLICT,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.ACTIVITY_CATEGORIES src&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.GLACCOUNT_ID = src.DEFAULT_REVENUE_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl2 ON (gl2.GLACCOUNT_ID = src.DEFAULT_EXPENSE_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl3 ON (gl3.GLACCOUNT_ID = src.DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVITY_CATEGORY_ID" nullable="false" remarks="The activity category ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="ACTIVITY_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="ACTIVITY_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="ACTIVITY_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="INTEREST_LISTS"/>
            <child catalog="ActiveHub" column="ACTIVITY_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PREREQUISITES"/>
            <child catalog="ActiveHub" column="ACTIVITY_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ACTIVITY_CATEGORY_NAME" nullable="true" remarks="The activity category name" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="DEFAULT_REVENUE_GLACCOUNT_ID" nullable="true" remarks="The default revenue GL account ID for activities of this category" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="DEFAULT_REVENUE_GL_ACCOUNT_NAME" nullable="true" remarks="The default revenue GL account name for activities of this category" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="DEFAULT_REVENUE_GL_ACCOUNT_NUMBER" nullable="true" remarks="The default revenue GL account number for activities of this category" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="DEFAULT_EXPENSE_GLACCOUNT_ID" nullable="true" remarks="The default expense GL account ID for activities of this category" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="DEFAULT_EXPENSE_GL_ACCOUNT_NAME" nullable="true" remarks="The default expense GL account name for activities of this category" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="DEFAULT_EXPENSE_GL_ACCOUNT_NUMBER" nullable="true" remarks="The default expense GL account number for activities of this category" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID" nullable="true" remarks="The default expense offset GL account ID for activities of this category" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="DEFAULT_EXPENSE_OFFSET_GL_ACCOUNT_NAME" nullable="true" remarks="The default expense offset GL account name for activities of this category" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="DEFAULT_EXPENSE_OFFSET_GL_ACCOUNT_NUMBER" nullable="true" remarks="The default expense offset GL account number for activities of this category" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="MAX_CLASSES_PER_DAY" nullable="true" remarks="The maximum classes per day for activities of this category" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="MAX_CLASSES_PER_WEEK" nullable="true" remarks="The maximum classes per week for activities of this category" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether this activity category should be hidden from use online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="LINK_INTEREST_LIST" nullable="true" remarks="Whether this activity category should link to an interest list (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="SHOW_ON_CAPTIVATE_APP" nullable="true" remarks="Whether this activity category should be shown on the ACTIVE Net Captivate App (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ALLOW_IGNORE_SCHEDULE_CONFLICT" nullable="true" remarks="Whether users should be allowed to ignore schedule conflicts for this activity category (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ALLOW_IGNORE_CATEGORY_SCHEDULE_CONFLICT" nullable="true" remarks="Whether users should be allowed to ignore schedule conflicts except for conflicts in the same activity category (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVITY_CATEGORY_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_CUSTOM_QUESTION_AVAILABLE_ANSWERS" numRows="0" remarks="Predefined answers for activity custom questions." schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.ACTIVITY_CUSTOM_QUESTION_AVAILABLE_ANSWERS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    acqla.ACTIVITY_ID,&#13;&#10;    cqla.CUSTOM_QUESTION_ID,&#13;&#10;    cqla.ANSWER,&#13;&#10;    acqla.IS_DEFAULT_RESPONSE,&#13;&#10;    cqla.SUB_CUSTOM_QUESTION_ID,&#13;&#10;    cqla.DEMOGRAPHIC_ID,&#13;&#10;    de1.DEMOGRAPHIC_NAME,&#13;&#10;    cqla.MIN_AGE,&#13;&#10;    cqla.MAX_AGE,&#13;&#10;    ge1.GENDER_NAME,&#13;&#10;    cqla.GENDER_INDEX,&#13;&#10;    cqla.ANSWER_CODE,&#13;&#10;    acqla.MAX_NUMBER_OF_USES&#13;&#10;FROM&#13;&#10;    hub.CUSTOM_QUESTION_LINKED_ANSWERS acqla&#13;&#10;    JOIN hub.CUSTOM_QUESTION_LINKED_ANSWERS cqla ON cqla.CUSTOM_QUESTION_ID = acqla.CUSTOM_QUESTION_ID AND cqla.ANSWER = acqla.ANSWER AND cqla.ACTIVITY_ID IS NULL&#13;&#10;    LEFT JOIN hub.DEMOGRAPHICS de1 ON (de1.DEMOGRAPHIC_ID = cqla.DEMOGRAPHIC_ID)&#13;&#10;    LEFT JOIN hub.GENDERS ge1 ON (ge1.GENDER_INDEX = cqla.GENDER_INDEX)&#13;&#10;WHERE&#13;&#10;    acqla.ACTIVITY_ID IS NOT NULL;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVITY_ID" nullable="true" remarks="The activity ID that this record links to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOM_QUESTION_ID" nullable="true" remarks="Custom question ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ANSWER" nullable="true" remarks="The predefined answer for a custom question" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="IS_DEFAULT_RESPONSE" nullable="true" remarks="Whether this answer is the default answer for the custom question (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SUB_CUSTOM_QUESTION_ID" nullable="true" remarks="The ID of a custom question that this answer links to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="DEMOGRAPHIC_ID" nullable="true" remarks="The demographic ID related to this answer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="DEMOGRAPHIC_NAME" nullable="true" remarks="The demographic name related to this answer" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="MIN_AGE" nullable="true" remarks="The minimum age to be presented with this answer (0 = ALL)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="MAX_AGE" nullable="true" remarks="The maximum age to be presented with this answer (0 = ALL)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="GENDER_NAME" nullable="true" remarks="The name of the gender to be presented with this answer" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="GENDER_INDEX" nullable="true" remarks="The ID of the gender to be presented with this answer (0 = ALL)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ANSWER_CODE" nullable="true" remarks="The code that will be saved as the answer value when selecting this answer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="MAX_NUMBER_OF_USES" nullable="true" remarks="The maximum number of times that this answer can be used for an activity" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_CUSTOM_QUESTIONS" numRows="0" remarks="Custom questions for activity enrollment transactions." schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.ACTIVITY_CUSTOM_QUESTIONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    cql.ACTIVITY_ID,&#13;&#10;    cql.CUSTOM_QUESTION_GROUP_ID,&#13;&#10;    cql.GROUP_DESCRIPTION,&#13;&#10;    cql.GROUP_HEADER_TEXT,&#13;&#10;    cql.GROUP_ORDER,&#13;&#10;    cql.QUESTION_ORDER,&#13;&#10;    cq.CUSTOM_QUESTION_ID,&#13;&#10;    cq.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    cq.QUESTION,&#13;&#10;    cql.IS_REQUIRED,&#13;&#10;    cq.QUESTION_TYPE,&#13;&#10;    cq.NOTE,&#13;&#10;    cq.DEFAULT_ANSWER,&#13;&#10;    cq.TITLE,&#13;&#10;    cq.ANSWER_FORMAT,&#13;&#10;    cq.IS_RETIRED,&#13;&#10;    cq.HIDE_ON_INTERNET,&#13;&#10;    cq.ADD_TO_NEW_ACTIVITIES,&#13;&#10;    cq.QUESTION_SCOPE,&#13;&#10;    cq.HIDE_ON_ADMIN,&#13;&#10;    cql.DO_NOT_SHOW_AFTER,&#13;&#10;    cql.DO_NOT_EDIT_AFTER,&#13;&#10;    cq.USE_ANSWER_CODE,&#13;&#10;    cq.QUESTION_HINT,&#13;&#10;    cq.MESSAGE_FOR_USED_UP_ANSWERS,&#13;&#10;    cq.ANSWER_MAX_LENGTH,&#13;&#10;    cq.EXTRA_ANSWER_TEXT,&#13;&#10;    cq.CUSTOM_QUESTION_TYPE_ID,&#13;&#10;    cct.CUSTOM_QUESTION_TYPE_NAME AS CUSTOM_QUESTION_TYPE,&#13;&#10;    cq.APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS,&#13;&#10;    cq.IS_DEMOGRAPHIC_RELATED_QUESTION,&#13;&#10;&#9;cql.CREATE_TEAM_ONLY_QUESTION,&#13;&#10;&#9;cql.JOIN_TEAM_ONLY_QUESTION,&#13;&#10;&#9;cql.NO_TEAM_ONLY_QUESTION&#13;&#10;FROM&#13;&#10;    hub.CUSTOM_QUESTION_LINKS cql&#13;&#10;    JOIN hub.CUSTOM_QUESTIONS cq ON cq.CUSTOM_QUESTION_ID = cql.CUSTOM_QUESTION_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.SITE_ID = cq.SITE_ID&#13;&#10;    LEFT JOIN hub.CUSTOM_QUESTION_TYPES cct ON (cct.CUSTOM_QUESTION_TYPE_ID = cq.CUSTOM_QUESTION_TYPE_ID)&#13;&#10;WHERE&#13;&#10;    cql.ACTIVITYCUSTOMQUESTION_ID IS NOT NULL;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVITY_ID" nullable="true" remarks="Activity ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOM_QUESTION_GROUP_ID" nullable="true" remarks="Custom question group ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="GROUP_DESCRIPTION" nullable="true" remarks="Custom question group description" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="GROUP_HEADER_TEXT" nullable="true" remarks="Custom question group heading text" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GROUP_ORDER" nullable="true" remarks="Custom question group display order" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="QUESTION_ORDER" nullable="true" remarks="The order number that the question should be presented in" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOM_QUESTION_ID" nullable="true" remarks="Custom question ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SITE_ID" nullable="true" remarks="Site ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SITE_NAME" nullable="true" remarks="Site name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="QUESTION" nullable="true" remarks="The text of the question to be asked" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="IS_REQUIRED" nullable="true" remarks="Whether an answer is required for the custom question (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="QUESTION_TYPE" nullable="true" remarks="The type of control to be used to answer the question (User Entry / Single Selection - Dropdown / Single Selection - Radio / Multi Selection - Checkbox / Multi Selection - Listbox / Auto-fill Conditional)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="NOTE" nullable="true" remarks="A user note related to the custom question" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DEFAULT_ANSWER" nullable="true" remarks="The optional default answer for the user entry question" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="TITLE" nullable="true" remarks="The title of the custom question" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ANSWER_FORMAT" nullable="true" remarks="The answer format of the user entry question (Free Form / Phone Number / Date / Time / SSN / Postal Code / Upper-case Alpha / Lower-case Alpha / Numbers Only / Alpha Only / Duration)" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="IS_RETIRED" nullable="true" remarks="Whether the custom question has been retired (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether the custom question should be excluded from display on the internet site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ADD_TO_NEW_ACTIVITIES" nullable="true" remarks="Whether the custom question should be automatically added to new activities (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="QUESTION_SCOPE" nullable="true" remarks="The scope of the custom question (Ask for every transaction / Ask once per receipt)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="HIDE_ON_ADMIN" nullable="true" remarks="Whether the custom question should be excluded from display on the admin site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="DO_NOT_SHOW_AFTER" nullable="true" remarks="The last date that the custom question should be displayed" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="DO_NOT_EDIT_AFTER" nullable="true" remarks="The last date that the custom question should allow edits" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="USE_ANSWER_CODE" nullable="true" remarks="Whether the custom question uses answer codes (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="QUESTION_HINT" nullable="true" remarks="A hint to be displayed for the custom question" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="MESSAGE_FOR_USED_UP_ANSWERS" nullable="true" remarks="A message to be displayed for the custom question for answers that have reached their use count limit" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ANSWER_MAX_LENGTH" nullable="true" remarks="The maximum answer length for user entry questions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="EXTRA_ANSWER_TEXT" nullable="true" remarks="Additional instruction text to be displayed for a multiple-choice question" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="CUSTOM_QUESTION_TYPE_ID" nullable="true" remarks="Custom question type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="CUSTOM_QUESTION_TYPE" nullable="true" remarks="Custom question type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS" nullable="true" remarks="Whether the answer given should replace prior answers to the same question for the customer (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="IS_DEMOGRAPHIC_RELATED_QUESTION" nullable="true" remarks="Whether the custom question is related to demographics (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="CREATE_TEAM_ONLY_QUESTION" nullable="true" remarks="Whether the question should only be displayed when creating a new team (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="JOIN_TEAM_ONLY_QUESTION" nullable="true" remarks="Whether the question should only be displayed when joining an existing team (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="NO_TEAM_ONLY_QUESTION" nullable="true" remarks="Whether the question should only be displayed when not specifying a team (Yes/No)" size="5" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_DATES" numRows="0" remarks="Detailed class times and locations per activity" schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21443&#13;&#10;--FileName=dbo.ACTIVITY_DATES.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.ACTIVITY_DATES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.ACTIVITY_DATE_ID,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    src.FACILITY_SCHEDULE_ID,&#13;&#10;    src.MEETING_DATE,&#13;&#10;    src.START_TIME,&#13;&#10;    src.END_TIME,&#13;&#10;    src.SETUP_START_TIME,&#13;&#10;    src.CLEANUP_END_TIME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.ACTIVITY_DATES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ACTIVITY_DATE_ID" nullable="true" remarks="Activity date ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ACTIVITY_ID" nullable="true" remarks="Activity ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FACILITY_ID" nullable="true" remarks="Facility ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="FACILITY_SCHEDULE_ID" nullable="true" remarks="Facility schedule ID (if the facility is reserved)" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_RESERVATION"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="MEETING_DATE" nullable="true" remarks="Date of the activity class" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="START_TIME" nullable="true" remarks="Start time of the activity class" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="END_TIME" nullable="true" remarks="End time of the activity class" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SETUP_START_TIME" nullable="true" remarks="Start time of the scheduled time for the class including setup time" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CLEANUP_END_TIME" nullable="true" remarks="End time of the scheduled time for the class including cleanup time" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVITY_DATE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_DEPARTMENTS" numRows="0" remarks="Your organization's defined activity departments" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.ACTIVITY_DEPARTMENTS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVITY_DEPARTMENT_ID,&#13;&#10;    src.ACTIVITY_DEPARTMENT_NAME,&#13;&#10;    src.DEFAULT_REVENUE_GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS DEFAULT_REVENUE_GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS DEFAULT_REVENUE_GL_ACCOUNT_NUMBER,&#13;&#10;    src.DEFAULT_EXPENSE_GLACCOUNT_ID,&#13;&#10;    gl2.ACCOUNTNAME AS DEFAULT_EXPENSE_GL_ACCOUNT_NAME,&#13;&#10;    gl2.ACCOUNTNUMBER AS DEFAULT_EXPENSE_GL_ACCOUNT_NUMBER,&#13;&#10;    src.DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID,&#13;&#10;    gl3.ACCOUNTNAME AS DEFAULT_EXPENSE_OFFSET_GL_ACCOUNT_NAME,&#13;&#10;    gl3.ACCOUNTNUMBER AS DEFAULT_EXPENSE_OFFSET_GL_ACCOUNT_NUMBER,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.ACTIVITY_DEPARTMENTS src&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.GLACCOUNT_ID = src.DEFAULT_REVENUE_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl2 ON (gl2.GLACCOUNT_ID = src.DEFAULT_EXPENSE_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl3 ON (gl3.GLACCOUNT_ID = src.DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVITY_DEPARTMENT_ID" nullable="false" remarks="The activity department ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="ACTIVITY_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="ACTIVITY_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="ACTIVITY_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="ACTIVITY_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
            <child catalog="ActiveHub" column="DEFAULT_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SCHEDULE_TYPES"/>
            <child catalog="ActiveHub" column="ACTIVITY_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SKIP_DATES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ACTIVITY_DEPARTMENT_NAME" nullable="true" remarks="The activity department name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="DEFAULT_REVENUE_GLACCOUNT_ID" nullable="true" remarks="The default revenue GL account ID for activities in this department" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="DEFAULT_REVENUE_GL_ACCOUNT_NAME" nullable="true" remarks="The default revenue GL account name for activities in this department" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="DEFAULT_REVENUE_GL_ACCOUNT_NUMBER" nullable="true" remarks="The default revenue GL account number for activities in this department" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="DEFAULT_EXPENSE_GLACCOUNT_ID" nullable="true" remarks="The default expense GL account ID for activities in this department" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="DEFAULT_EXPENSE_GL_ACCOUNT_NAME" nullable="true" remarks="The default expense GL account name for activities in this department" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="DEFAULT_EXPENSE_GL_ACCOUNT_NUMBER" nullable="true" remarks="The default expense GL account number for activities in this department" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID" nullable="true" remarks="The default expense offset GL account ID for activities in this department" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="DEFAULT_EXPENSE_OFFSET_GL_ACCOUNT_NAME" nullable="true" remarks="The default expense offset GL account name for activities in this department" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="DEFAULT_EXPENSE_OFFSET_GL_ACCOUNT_NUMBER" nullable="true" remarks="The default expense offset GL account number for activities in this department" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="IS_RETIRED" nullable="true" remarks="Whether this activity department has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="12" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVITY_DEPARTMENT_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_DIVISIONS" numRows="0" remarks="Your organization's defined activity divisions" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.ACTIVITY_DIVISIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVITY_DIVISION_ID,&#13;&#10;    src.ACTIVITY_DIVISION_NAME,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    ac1.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    src.MIN_AGE,&#13;&#10;    src.MAX_AGE,&#13;&#10;    src.GENDER_INDEX,&#13;&#10;    ge1.GENDER_NAME,&#13;&#10;    src.USED_FOR,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.ACTIVITY_DIVISIONS src&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON (ac1.ACTIVITY_ID = src.ACTIVITY_ID)&#13;&#10;    LEFT JOIN hub.GENDERS ge1 ON (ge1.GENDER_INDEX = src.GENDER_INDEX);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVITY_DIVISION_ID" nullable="false" remarks="The activity division ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="ACTIVITY_DIVISION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ACTIVITY_DIVISION_NAME" nullable="true" remarks="The activity division name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ACTIVITY_ID" nullable="true" remarks="The ID of the activity that the division belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVITY_NAME" nullable="true" remarks="The name of the activity that the division belongs to" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_NUMBER" nullable="true" remarks="The number of the activity that the division belongs to" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="MIN_AGE" nullable="true" remarks="The minimum age to participate in this division" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="MAX_AGE" nullable="true" remarks="The maximum age to participate in this division" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="GENDER_INDEX" nullable="true" remarks="The ID of the gender that this division is open to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GENDERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="GENDER_NAME" nullable="true" remarks="The gender that this division is open to" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="USED_FOR" nullable="true" remarks="Whether this division is used for Teams or Groups" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVITY_DIVISION_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_ENROLLMENTS" numRows="0" remarks="Showing the activity enrollments by customer" schema="dbo" type="VIEW" viewSql="&#10;CREATE VIEW dbo.ACTIVITY_ENROLLMENTS &#10;AS &#10;SELECT &#10;    src.ACTIVITY_ID,&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#10;&#9;ac1.ACTIVITYNUMBER AS ACTIVITYNUMBER,&#10;    ac1.NUMBER_OPEN AS ACTIVITY_NUMBER_OPEN_SPOTS,&#10;    ac1.NUMBER_WAITLISTS AS ACTIVITY_NUMBER_WAITLISTED,&#10;    src.ENROLLMENT_STATUS,&#10;    src.REFUND_STATUS,&#10;    cu1.CUSTOMER_FIRST_NAME AS FIRST_NAME,&#10;    cu1.CUSTOMER_LAST_NAME AS LAST_NAME,&#10;    src.CUSTOMER_ID,&#10;    cu1.DATE_MODIFIED AS CUSTOMER_DATE_MODIFIED,&#10;    cu1.CUSTOMER_EMAIL,&#10;    src.RECEIPT_NUMBER,&#10;    src.HAS_ACTIVE_MEMBERSHIP,&#10;    src.TRIAL_CLASS_DATE,&#10;    src.LAST_TRANSACTION_DATE,&#10;    src.WITHDRAW_DATE,&#10;    src.TOTAL_FEE,&#10;    src.TOTAL_PAID,&#10;    src.TOTAL_DUE,&#10;    src.DATE_REGISTERED,&#10;    src.REQUESTED_SEATS,&#10;    CAST(cu1.DATE_MODIFIED AS DATE) AS CUSTOMER_MODIFIED_DATE_ONLY,&#10;    src.REGISTERED_DATE_ONLY,&#10;    src.LAST_TRANSACTION_DATE_ONLY,&#10;    src.TRIAL_CLASS_DATE_ONLY,&#10;    src.WITHDRAW_DATE_ONLY,&#10;    src.HAS_ACTIVE_MEMBERSHIP_YES_NO,&#10;    src.TRANSACTION_ID,&#10;    src.RECEIPT_HEADER_ID,&#10;    src.ROOT_TRANSACTION_ID,&#10;    src.ORIGINAL_RECEIPT_HEADER_ID,&#10;    rh1.IS_ONLINE_RECEIPT,&#10;    src.MAX_PRIVATE_LESSON_BOOKINGS,&#10;    src.BOOKED_PRIVATE_LESSON_BOOKINGS,&#10;    src.UNBOOKED_PRIVATE_LESSON_BOOKINGS,&#10;    src.TEAM_ID,&#10;    src.IS_TEAM_PLACEHOLDER,&#10;    src.ORIGINAL_PLACEHOLDER_SEATS,&#10;    src.WAITLISTED_DATE_TIME,&#10;    src.WAITLISTED_DATE_ONLY,&#10;    src.WAITLIST_POSITION,&#10;    src.WAITLIST_RESERVED_DATE_TIME,&#10;    CAST(src.WAITLIST_RESERVED_DATE_TIME AS DATE) AS WAITLIST_RESERVED_DATE_ONLY,&#10;    src.WAITLIST_REMOVED_DATE_TIME,&#10;    src.WAITLIST_REMOVED_DATE_ONLY,&#10;    src.REGISTRATION_TRANSACTION_ID,&#10;    src.HAS_MEMBER_FEE,&#10;    src.HAS_MEMBER_DISCOUNT,&#10;    src.ORG_ID,&#10;    src.LAST_SYNC_TIME,&#10;    src.ACTIVE_HUB_PROCESS_ID,&#10;    src.ACTIVE_HUB_KEY,&#10;    rh2.IS_ONLINE_RECEIPT AS INITIATED_ONLINE,&#10;    cu1.IS_DROP_IN,&#10;    cu1.DROP_IN_EMAIL,&#10;    IIF(&#10;        EXISTS(&#10;            SELECT *&#10;            FROM hub.TRANSACTIONS tr1&#10;            WHERE &#10;                tr1.ORG_ID = src.ORG_ID&#10;                AND tr1.CUSTOMER_ID = src.CUSTOMER_ID&#10;                AND tr1.TRANSACTION_ID &lt; src.REGISTRATION_TRANSACTION_ID&#10;                AND(tr1.ACTIVITY_ID IS NOT NULL OR tr1.PROGRAM_ID IS NOT NULL OR tr1.SESSION_ID IS NOT NULL)&#10;        ), 'Yes', 'No'&#10;    ) AS HAS_PRIOR_ENROLLMENT&#10;FROM &#10;    hub.ACTIVITY_ENROLLMENTS src&#10;    JOIN hub.ACTIVITIES ac1 ON (ac1.ORG_ID = src.ORG_ID AND ac1.ACTIVITY_ID = src.ACTIVITY_ID)&#10;    JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON (rh1.ORG_ID = src.ORG_ID AND rh1.RECEIPT_HEADER_ID = src.ORIGINAL_RECEIPT_HEADER_ID)&#10;    LEFT OUTER JOIN hub.TRANSACTIONS tr1 ON(src.ORG_ID = tr1.ORG_ID AND src.REGISTRATION_TRANSACTION_ID = tr1.TRANSACTION_ID)&#10;    LEFT OUTER JOIN hub.TRANSACTIONS tr2 ON(tr1.ORG_ID = tr2.ORG_ID AND tr1.ROOT_TRANSACTION_ID = tr2.TRANSACTION_ID)&#10;    LEFT OUTER JOIN hub.RECEIPT_HEADERS rh2 ON (rh2.ORG_ID = tr2.ORG_ID AND rh2.RECEIPT_HEADER_ID = tr2.RECEIPT_HEADER_ID);&#10;CREATE   VIEW org.ACTIVITY_ENROLLMENTS&#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;&#9;ac1.ACTIVITYNUMBER AS ACTIVITYNUMBER,&#13;&#10;    ac1.NUMBER_OPEN AS ACTIVITY_NUMBER_OPEN_SPOTS,&#13;&#10;    ac1.NUMBER_WAITLISTS AS ACTIVITY_NUMBER_WAITLISTED,&#13;&#10;    src.ENROLLMENT_STATUS,&#13;&#10;    src.REFUND_STATUS,&#13;&#10;    cu1.CUSTOMER_FIRST_NAME AS FIRST_NAME,&#13;&#10;    cu1.CUSTOMER_LAST_NAME AS LAST_NAME,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    cu1.DATE_MODIFIED AS CUSTOMER_DATE_MODIFIED,&#13;&#10;    cu1.CUSTOMER_EMAIL,&#13;&#10;    src.RECEIPT_NUMBER,&#13;&#10;    src.HAS_ACTIVE_MEMBERSHIP,&#13;&#10;    src.TRIAL_CLASS_DATE,&#13;&#10;    src.LAST_TRANSACTION_DATE,&#13;&#10;    src.WITHDRAW_DATE,&#13;&#10;    src.TOTAL_FEE,&#13;&#10;    src.TOTAL_PAID,&#13;&#10;    src.TOTAL_DUE,&#13;&#10;    src.DATE_REGISTERED,&#13;&#10;    src.REQUESTED_SEATS,&#13;&#10;    CAST(cu1.DATE_MODIFIED AS DATE) AS CUSTOMER_MODIFIED_DATE_ONLY,&#13;&#10;    src.REGISTERED_DATE_ONLY,&#13;&#10;    src.LAST_TRANSACTION_DATE_ONLY,&#13;&#10;    src.TRIAL_CLASS_DATE_ONLY,&#13;&#10;    src.WITHDRAW_DATE_ONLY,&#13;&#10;    src.HAS_ACTIVE_MEMBERSHIP_YES_NO,&#13;&#10;    src.TRANSACTION_ID,&#13;&#10;    src.RECEIPT_HEADER_ID,&#13;&#10;    src.ROOT_TRANSACTION_ID,&#13;&#10;    src.ORIGINAL_RECEIPT_HEADER_ID,&#13;&#10;    rh1.IS_ONLINE_RECEIPT,&#13;&#10;    src.MAX_PRIVATE_LESSON_BOOKINGS,&#13;&#10;    src.BOOKED_PRIVATE_LESSON_BOOKINGS,&#13;&#10;    src.UNBOOKED_PRIVATE_LESSON_BOOKINGS,&#13;&#10;    src.TEAM_ID,&#13;&#10;    src.IS_TEAM_PLACEHOLDER,&#13;&#10;    src.ORIGINAL_PLACEHOLDER_SEATS,&#13;&#10;    src.WAITLISTED_DATE_TIME,&#13;&#10;    src.WAITLISTED_DATE_ONLY,&#13;&#10;    src.WAITLIST_POSITION,&#13;&#10;    src.WAITLIST_RESERVED_DATE_TIME,&#13;&#10;    CAST(src.WAITLIST_RESERVED_DATE_TIME AS DATE) AS WAITLIST_RESERVED_DATE_ONLY,&#13;&#10;    src.WAITLIST_REMOVED_DATE_TIME,&#13;&#10;    src.WAITLIST_REMOVED_DATE_ONLY,&#13;&#10;    src.REGISTRATION_TRANSACTION_ID,&#13;&#10;    src.HAS_MEMBER_FEE,&#13;&#10;    src.HAS_MEMBER_DISCOUNT,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    rh2.IS_ONLINE_RECEIPT AS INITIATED_ONLINE,&#13;&#10;    cu1.IS_DROP_IN,&#13;&#10;    cu1.DROP_IN_EMAIL,&#13;&#10;    IIF(&#13;&#10;        EXISTS(&#13;&#10;            SELECT *&#13;&#10;            FROM hub.TRANSACTIONS tr1&#13;&#10;            WHERE &#13;&#10;                tr1.ORG_ID = src.ORG_ID&#13;&#10;                AND tr1.CUSTOMER_ID = src.CUSTOMER_ID&#13;&#10;                AND tr1.TRANSACTION_ID &lt; src.REGISTRATION_TRANSACTION_ID&#13;&#10;                AND(tr1.ACTIVITY_ID IS NOT NULL OR tr1.PROGRAM_ID IS NOT NULL OR tr1.SESSION_ID IS NOT NULL)&#13;&#10;        ), 'Yes', 'No'&#13;&#10;    ) AS HAS_PRIOR_ENROLLMENT,&#13;&#10;    org.AGE_GROUP_AT_DATE(cu1.DATE_OF_BIRTH, ac1.BEGINNINGDATE) AS Age_Group&#13;&#10;FROM &#13;&#10;    hub.ACTIVITY_ENROLLMENTS src&#13;&#10;    INNER JOIN hub.ACTIVITIES ac1 ON (ac1.ORG_ID = src.ORG_ID AND ac1.ACTIVITY_ID = src.ACTIVITY_ID)&#13;&#10;    INNER JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT OUTER JOIN hub.RECEIPT_HEADERS rh1 ON (rh1.ORG_ID = src.ORG_ID AND rh1.RECEIPT_HEADER_ID = src.ORIGINAL_RECEIPT_HEADER_ID)&#13;&#10;    LEFT OUTER JOIN hub.TRANSACTIONS tr1 ON(src.ORG_ID = tr1.ORG_ID AND src.REGISTRATION_TRANSACTION_ID = tr1.TRANSACTION_ID)&#13;&#10;    LEFT OUTER JOIN hub.TRANSACTIONS tr2 ON(tr1.ORG_ID = tr2.ORG_ID AND tr1.ROOT_TRANSACTION_ID = tr2.TRANSACTION_ID)&#13;&#10;    LEFT OUTER JOIN hub.RECEIPT_HEADERS rh2 ON (rh2.ORG_ID = tr2.ORG_ID AND rh2.RECEIPT_HEADER_ID = tr2.RECEIPT_HEADER_ID);&#13;&#10;(CONVERT([date],[DATE_REGISTERED]))(CONVERT([date],[LAST_TRANSACTION_DATE]))(CONVERT([date],[TRIAL_CLASS_DATE]))(CONVERT([date],[WITHDRAW_DATE]))(case when isnull([MAX_PRIVATE_LESSON_BOOKINGS],(0))&gt;isnull([BOOKED_PRIVATE_LESSON_BOOKINGS],(0)) then isnull([MAX_PRIVATE_LESSON_BOOKINGS],(0))-isnull([BOOKED_PRIVATE_LESSON_BOOKINGS],(0)) else (0) end)(CONVERT([date],[WAITLISTED_DATE_TIME]))(CONVERT([date],[WAITLIST_REMOVED_DATE_TIME]))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVITY_ID" nullable="true" remarks="ID of the activity." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ACTIVITY_NAME" nullable="true" remarks="Name of the activity." size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ACTIVITYNUMBER" nullable="true" remarks="The activity number of this activity" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVITY_NUMBER_OPEN_SPOTS" nullable="true" remarks="The current number of openings for this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_NUMBER_WAITLISTED" nullable="true" remarks="The current number of people waitlisted for this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ENROLLMENT_STATUS" nullable="true" remarks="The enrollment status of the customer at the time of enrollment (Enrolled / Withdrawn / Waitlisted / Waitlist Removed / Trial / Refunded). If the current membership status is needed, please join to either CUSTOMERS or MEMBERSHIPS on the customer ID in question" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="REFUND_STATUS" nullable="true" remarks="Indicates whether an enrolled enrollment has had a refund applied against it as its latest transaction without being withdrawn from the activity (None, Partially Refunded, Fully Refunded)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="FIRST_NAME" nullable="true" remarks="First name of the customer" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="LAST_NAME" nullable="true" remarks="Last name of the customer" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CUSTOMER_ID" nullable="true" remarks="ID of the Customer" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="CUSTOMER_DATE_MODIFIED" nullable="true" remarks="The most recent date and time when the customer's information was modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="CUSTOMER_EMAIL" nullable="true" remarks="Email address of the customer" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="RECEIPT_NUMBER" nullable="true" remarks="Receipt number of the last transaction" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="HAS_ACTIVE_MEMBERSHIP" nullable="false" remarks="The membership status at the time of enrollment, Note that If the current membership status is needed you may join to either CUSTOMERS or MEMBERSHIPS for the CUSTOMER_ID in question" size="1" type="bit" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="14" name="TRIAL_CLASS_DATE" nullable="true" remarks="The meeting date of the trial class enrollment" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="15" name="LAST_TRANSACTION_DATE" nullable="true" remarks="Date of the customers last transaction" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="WITHDRAW_DATE" nullable="true" remarks="The date and time when the customer withdrew from the activity" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="17" name="TOTAL_FEE" nullable="true" remarks="The total fee amount for the activity and customer" size="11" type="decimal" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="18" name="TOTAL_PAID" nullable="true" remarks="The total amount paid by the customer for the activity" size="11" type="decimal" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="19" name="TOTAL_DUE" nullable="true" remarks="The total due amount for the activity and customer" size="11" type="decimal" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="20" name="DATE_REGISTERED" nullable="true" remarks="The date and time the customer enrolled in the activity" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="REQUESTED_SEATS" nullable="true" remarks="The number of seats requested for registration" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="CUSTOMER_MODIFIED_DATE_ONLY" nullable="true" remarks="The most recent date that the customer's information was modified" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="REGISTERED_DATE_ONLY" nullable="true" remarks="The date that the customer enrolled in the activity" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="LAST_TRANSACTION_DATE_ONLY" nullable="true" remarks="Date of the customers last transaction" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="TRIAL_CLASS_DATE_ONLY" nullable="true" remarks="The meeting date of the trial class enrollment" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="WITHDRAW_DATE_ONLY" nullable="true" remarks="The date that the customer withdrew from the activity" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="HAS_ACTIVE_MEMBERSHIP_YES_NO" nullable="true" remarks="The membership status at the time of enrollment, Note that If the current membership status is needed you may join to either CUSTOMERS or MEMBERSHIPS for the CUSTOMER_ID in question" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="TRANSACTION_ID" nullable="true" remarks="The most recent transaction ID related to the enrollment." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="RECEIPT_HEADER_ID" nullable="true" remarks="The receipt header ID of the latest transaction for the enrollment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="ROOT_TRANSACTION_ID" nullable="true" remarks="Root transaction ID of the enrollment." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="ORIGINAL_RECEIPT_HEADER_ID" nullable="true" remarks="The receipt header ID of the original transaction" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="IS_ONLINE_RECEIPT" nullable="true" remarks="Whether the original registration was done online (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="MAX_PRIVATE_LESSON_BOOKINGS" nullable="true" remarks="The number of private lesson sessions purchased with this enrollment." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="BOOKED_PRIVATE_LESSON_BOOKINGS" nullable="true" remarks="The number of private lesson sessions that have been booked." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="UNBOOKED_PRIVATE_LESSON_BOOKINGS" nullable="true" remarks="The number of private lesson sessions that remain to be booked." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="TEAM_ID" nullable="true" remarks="The ID of the team that the enrollment is for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="IS_TEAM_PLACEHOLDER" nullable="true" remarks="Whether this is a team placeholder enrollment to reserve multiple seats for team members" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="ORIGINAL_PLACEHOLDER_SEATS" nullable="true" remarks="The original number of seats that the team placeholder enrollment had reserved" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="39" name="WAITLISTED_DATE_TIME" nullable="true" remarks="The date and time when the customer was waitlisted for the activity" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="WAITLISTED_DATE_ONLY" nullable="true" remarks="The date that the customer was waitlisted for the activity" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="WAITLIST_POSITION" nullable="true" remarks="The current waitlist position" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="42" name="WAITLIST_RESERVED_DATE_TIME" nullable="true" remarks="The date and time that an available spot was reserved for this waitlist request" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="WAITLIST_RESERVED_DATE_ONLY" nullable="true" remarks="The date that an available spot was reserved for this waitlist request (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="44" name="WAITLIST_REMOVED_DATE_TIME" nullable="true" remarks="The date and time when the customer was removed from the waitlist for the activity" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="WAITLIST_REMOVED_DATE_ONLY" nullable="true" remarks="The date that the customer was removed from the waitlist for the activity" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="REGISTRATION_TRANSACTION_ID" nullable="true" remarks="The original transaction ID of the enrollment" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="HAS_MEMBER_FEE" nullable="true" remarks="Whether a member-only fee was charged for this activity enrollment (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="HAS_MEMBER_DISCOUNT" nullable="true" remarks="Whether a member-only discount was applied to this activity enrollment (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="50" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="ACTIVE_HUB_KEY" nullable="false" remarks="System Generated key value.  No significance to Enrollment data" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="INITIATED_ONLINE" nullable="true" remarks="Whether the root registration was done online (Yes / No)." size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="IS_DROP_IN" nullable="true" remarks="Whether the customer is a drop-in customer (Yes/No)." size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="DROP_IN_EMAIL" nullable="true" remarks="The email address of the drop-in customer if entered." size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="HAS_PRIOR_ENROLLMENT" nullable="false" remarks="Indicates whether the participant has had a prior program enrollment for the same org, either in Activities or Flex Reg." size="3" type="varchar" typeCode="12"/>
         <primaryKey column="TRANSACTION_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_FEE_ACTIVITY_QUALIFICATIONS" numRows="0" remarks="Master table containing defined activity fee activity qualifications" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.ACTIVITY_FEE_ACTIVITY_QUALIFICATIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CHARGE_QUALIFICATION_LINK_ID,&#13;&#10;    src.QUALIFICATION_TYPE_ID,&#13;&#10;    src.QUALIFICATION_TYPE,&#13;&#10;    src.ACTIVITY_FEE_ID,&#13;&#10;    af1.CHARGE_NAME AS ACTIVITY_FEE_NAME,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    src.ACTIVITY_CATEGORY_ID,&#13;&#10;    acat.ACTIVITY_CATEGORY_NAME,&#13;&#10;    src.SEASON_ID,&#13;&#10;    se1.SEASON_NAME,&#13;&#10;    src.CHILD_SEASON_ID,&#13;&#10;    cs1.CHILD_SEASON_NAME,&#13;&#10;    src.ALTERNATE_KEY_TYPE_ID,&#13;&#10;    akt.ALTERNATE_KEY_TYPE AS ALTERNATE_KEY_TYPE_NAME,&#13;&#10;    src.ALTERNATE_KEY_STATUS_ID,&#13;&#10;    aks.ALTERNATE_KEY_STATUS AS ALTERNATE_KEY_STATUS_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM&#13;&#10;    hub.CHARGE_QUALIFICATION_LINKS src&#13;&#10;    LEFT JOIN hub.ACTIVITY_FEES af1 ON af1.ACTIVITY_FEE_ID = src.ACTIVITY_FEE_ID&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON ac1.ACTIVITY_ID = src.ACTIVITY_ID&#13;&#10;    LEFT JOIN hub.ALTERNATE_KEY_TYPES akt ON akt.ALTERNATE_KEY_TYPE_ID = src.ALTERNATE_KEY_TYPE_ID&#13;&#10;    LEFT JOIN hub.ALTERNATE_KEY_STATUSES aks ON aks.ALTERNATE_KEY_STATUS_ID = src.ALTERNATE_KEY_STATUS_ID&#13;&#10;    LEFT JOIN hub.SEASONS se1 ON (se1.SEASON_ID = src.SEASON_ID)&#13;&#10;    LEFT JOIN hub.CHILD_SEASONS cs1 ON (cs1.CHILD_SEASON_ID = src.CHILD_SEASON_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_CATEGORIES acat ON (acat.ACTIVITY_CATEGORY_ID = src.ACTIVITY_CATEGORY_ID)&#13;&#10;WHERE&#13;&#10;    src.QUALIFICATION_TYPE_ID = 2; -- KeyType.activity_fee_multi_activity = 2&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CHARGE_QUALIFICATION_LINK_ID" nullable="true" remarks="Charge qualification link ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="QUALIFICATION_TYPE_ID" nullable="true" remarks="Qualification type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="QUALIFICATION_TYPE" nullable="true" remarks="Qualification type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_FEE_ID" nullable="true" remarks="Activity fee ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVITY_FEE_NAME" nullable="true" remarks="Activity fee name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVITY_ID" nullable="true" remarks="Activity ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVITY_NAME" nullable="true" remarks="Activity name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVITY_CATEGORY_ID" nullable="true" remarks="Activity category ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVITY_CATEGORY_NAME" nullable="true" remarks="Activity category name" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="SEASON_ID" nullable="true" remarks="Season ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="SEASON_NAME" nullable="true" remarks="Season name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CHILD_SEASON_ID" nullable="true" remarks="Child season ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="CHILD_SEASON_NAME" nullable="true" remarks="Child season name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ALTERNATE_KEY_TYPE_ID" nullable="true" remarks="Alternate key type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ALTERNATE_KEY_TYPE_NAME" nullable="true" remarks="Alternate key type name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ALTERNATE_KEY_STATUS_ID" nullable="true" remarks="Alternate key status ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ALTERNATE_KEY_STATUS_NAME" nullable="true" remarks="Alternate key status name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_FEE_MULTI_PERSON_QUALIFICATIONS" numRows="0" remarks="Master table containing defined activity fee multi-person qualifications" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.ACTIVITY_FEE_MULTI_PERSON_QUALIFICATIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CHARGE_QUALIFICATION_LINK_ID,&#13;&#10;    src.QUALIFICATION_TYPE_ID,&#13;&#10;    src.QUALIFICATION_TYPE,&#13;&#10;    src.ACTIVITY_FEE_ID,&#13;&#10;    af1.CHARGE_NAME AS ACTIVITY_FEE_NAME,&#13;&#10;    src.SEASON_ID,&#13;&#10;    se1.SEASON_NAME,&#13;&#10;    src.CHILD_SEASON_ID,&#13;&#10;    cs1.CHILD_SEASON_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM hub.CHARGE_QUALIFICATION_LINKS src&#13;&#10;LEFT JOIN hub.ACTIVITY_FEES af1 ON af1.ACTIVITY_FEE_ID = src.ACTIVITY_FEE_ID&#13;&#10;LEFT JOIN hub.SEASONS se1 ON (se1.SEASON_ID = src.SEASON_ID)&#13;&#10;LEFT JOIN hub.CHILD_SEASONS cs1 ON (cs1.CHILD_SEASON_ID = src.CHILD_SEASON_ID)&#13;&#10;WHERE src.QUALIFICATION_TYPE_ID = 4; -- KeyType.activity_fee_multi_person = 4&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CHARGE_QUALIFICATION_LINK_ID" nullable="true" remarks="Charge qualification link ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="QUALIFICATION_TYPE_ID" nullable="true" remarks="Qualification type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="QUALIFICATION_TYPE" nullable="true" remarks="Qualification type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_FEE_ID" nullable="true" remarks="Activity fee ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVITY_FEE_NAME" nullable="true" remarks="Activity fee name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SEASON_ID" nullable="true" remarks="Season ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SEASON_NAME" nullable="true" remarks="Season name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CHILD_SEASON_ID" nullable="true" remarks="Child season ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CHILD_SEASON_NAME" nullable="true" remarks="Child season name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_FEE_PACKAGE_QUALIFICATIONS" numRows="0" remarks="Master table containing defined activity fee package qualifications" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.ACTIVITY_FEE_PACKAGE_QUALIFICATIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.ACTIVITY_FEE_PACKAGE_ID,&#13;&#10;    src.QUALIFICATION_TYPE_ID,&#13;&#10;    src.QUALIFICATION_TYPE,&#13;&#10;    src.ACTIVITY_FEE_ID,&#13;&#10;    af1.CHARGE_NAME AS ACTIVITY_FEE_NAME,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    src.PACKAGE_CATEGORY_ID,&#13;&#10;    pc1.CATEGORY_NAME AS PACKAGE_CATEGORY_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM hub.CHARGE_QUALIFICATION_LINKS src&#13;&#10;LEFT JOIN hub.ACTIVITY_FEES af1 ON af1.ACTIVITY_FEE_ID = src.ACTIVITY_FEE_ID&#13;&#10;LEFT JOIN hub.PACKAGES pa1 ON pa1.PACKAGE_ID = src.PACKAGE_ID&#13;&#10;LEFT JOIN hub.PACKAGE_CATEGORIES pc1 ON pc1.PACKAGE_CATEGORY_ID = src.PACKAGE_CATEGORY_ID&#13;&#10;WHERE src.QUALIFICATION_TYPE_ID = -1;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ACTIVITY_FEE_PACKAGE_ID" nullable="true" remarks="Activity fee package ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="QUALIFICATION_TYPE_ID" nullable="true" remarks="Qualification type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="QUALIFICATION_TYPE" nullable="true" remarks="Qualification type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_FEE_ID" nullable="true" remarks="Activity fee ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVITY_FEE_NAME" nullable="true" remarks="Activity fee name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PACKAGE_ID" nullable="true" remarks="Package ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="PACKAGE_NAME" nullable="true" remarks="Package name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package category ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package category name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_FEES" numRows="0" remarks="Master table showing defined activity fees data" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.ACTIVITY_FEES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.ACTIVITY_FEE_ID,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    ac1.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    src.CHARGE_NAME,&#13;&#10;    src.CHARGE_TYPE,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.FEE_ORDER,&#13;&#10;    src.FEE_AMOUNT,&#13;&#10;    src.DISCOUNT_PERCENT,&#13;&#10;    src.DISCOUNT_TYPE,&#13;&#10;    src.PRIMARY_FEE,&#13;&#10;    src.OVERRIDE_FLAG,&#13;&#10;    src.PREFILL_CONDITION,&#13;&#10;    src.PRORATE_FEES,&#13;&#10;    src.TAXABLE_BY_TAX_1,&#13;&#10;    src.TAXABLE_BY_TAX_2,&#13;&#10;    src.TAXABLE_BY_TAX_3,&#13;&#10;    src.TAXABLE_BY_TAX_4,&#13;&#10;    src.TAXABLE_BY_TAX_5,&#13;&#10;    src.TAXABLE_BY_TAX_6,&#13;&#10;    src.TAXABLE_BY_TAX_7,&#13;&#10;    src.TAXABLE_BY_TAX_8,&#13;&#10;    src.UNIT_OF_MEASURE,&#13;&#10;    src.ONLINE_QUESTION,&#13;&#10;    src.DISCOUNTABLE,&#13;&#10;    src.MULTI_CHILD_MIN,&#13;&#10;    src.MULTI_CHILD_MAX,&#13;&#10;    src.ACTIVATION_DATE,&#13;&#10;    src.EXPIRATION_DATE,&#13;&#10;    src.MIN_PLAYERS,&#13;&#10;    src.MAX_PLAYERS,&#13;&#10;    src.ACTIVATION_PASSWORD,&#13;&#10;    src.ALLOWED_QUANTITY_CHANGED,&#13;&#10;    src.ALLOWED_MIN_QUANTITY,&#13;&#10;    src.ALLOWED_MAX_QUANTITY,&#13;&#10;    src.AGES_MIN,&#13;&#10;    src.AGES_MAX,&#13;&#10;    src.CUSTOMER_TYPE_ID,&#13;&#10;    ct1.CUSTOMER_TYPE_NAME AS CUSTOMER_TYPE,&#13;&#10;    src.PRORATE_REFUND_FEES,&#13;&#10;    src.ACTIVITY_TEAM_CATEGORY_ID,&#13;&#10;    src.TEAM_PREFILL_CONDITION,&#13;&#10;    src.USE_REGIONAL_PRICING,&#13;&#10;    src.MULTI_ACTIVITY_MIN,&#13;&#10;    src.MULTI_ACTIVITY_MAX,&#13;&#10;    src.MULTI_CHILD_APPLIES_TO_ALL,&#13;&#10;    src.MULTI_ACTIVITY_APPLIES_TO_ALL,&#13;&#10;    src.TRIAL_CLASS_FEE,&#13;&#10;    src.ACTIVATE_QUALIFYING_ACTIVITIES,&#13;&#10;    src.APPLIES_TO_ALL_ACTIVITIES,&#13;&#10;    src.ACTIVITY_GROUP_NUMBER,&#13;&#10;    src.QUALIFYING_TIME_PERIOD,&#13;&#10;    src.PER_BOOKING,&#13;&#10;    src.EXCLUDE_FROM_PAYMENT_PLAN,&#13;&#10;    src.PER_BOOKING_PER_HOUR,&#13;&#10;    src.QUALIFYING_MIN_REGISTRATIONS,&#13;&#10;    src.QUALIFYING_MAX_REGISTRATIONS,&#13;&#10;    src.VOLUME_PRICING_PLAN_ID,&#13;&#10;    src.MULTI_PERSON_QUALIFYING_TIME_PERIOD,&#13;&#10;    src.PER_BOOKING_PER_HOUR_MIN,&#13;&#10;    src.PER_BOOKING_PER_HOUR_MAX,&#13;&#10;    src.PER_BOOKING_PER_HOUR_DURATION,&#13;&#10;    src.SYSTEM_GL_ACCOUNT_PACKAGE_ID,&#13;&#10;    sgap.SYSTEM_GL_ACCOUNT_PACKAGE_NAME AS SYSTEM_GL_ACCOUNT_PACKAGE,&#13;&#10;    src.DISCOUNT_ORDER,&#13;&#10;    src.DISCOUNT_GROUP_NUMBER,&#13;&#10;    src.EXCLUDE_OTHER_DISCOUNTS_IN_GROUP,&#13;&#10;    src.MULTI_REGISTRATION_COUNT_ALL_ENROLLMENTS,&#13;&#10;    src.DISCOUNT_CHEAPEST,&#13;&#10;    src.IS_MULTI_GL,&#13;&#10;    src.PRORATED_EARLIEST_TO_LATEST,&#13;&#10;    src.DROP_IN_FEE,&#13;&#10;    src.FEE_DESCRIPTION,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.ACTIVITY_FEES src&#13;&#10;    LEFT OUTER JOIN hub.ACTIVITIES ac1 ON (src.ACTIVITY_ID = ac1.ACTIVITY_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (src.GLACCOUNT_ID = gl1.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMER_TYPES ct1 ON (ct1.CUSTOMER_TYPE_ID = src.CUSTOMER_TYPE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_GL_ACCOUNT_PACKAGES sgap ON (sgap.SYSTEM_GL_ACCOUNT_PACKAGE_ID = src.SYSTEM_GL_ACCOUNT_PACKAGE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ACTIVITY_FEE_ID" nullable="true" remarks="Activity fee ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="ACTIVITY_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="ACTIVITY_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SCHEDULED_FEE_CHANGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ACTIVITY_ID" nullable="true" remarks="Activity ID which this fee belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVITY_NAME" nullable="true" remarks="Activity name which this fee belongs to" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_NUMBER" nullable="true" remarks="Activity number which this fee belongs to" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CHARGE_ID" nullable="true" remarks="Charge ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CHARGE_NAME" nullable="true" remarks="Charge name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CHARGE_TYPE" nullable="true" remarks="The type of charge (Fee / Discount / Scholarship)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="GLACCOUNT_ID" nullable="true" remarks="The default GL account ID to post this charge to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="GL_ACCOUNT_NAME" nullable="true" remarks="GL account name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="FEE_ORDER" nullable="true" remarks="The order in which the fee should be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="12" name="FEE_AMOUNT" nullable="true" remarks="The default fee or discount amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="13" name="DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="DISCOUNT_TYPE" nullable="true" remarks="The type of discount (Amount / Percent)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="PRIMARY_FEE" nullable="true" remarks="Whether this charge is a primary fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="OVERRIDE_FLAG" nullable="true" remarks="Whether this charge can be overridden (Always / Never / By Password)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="PREFILL_CONDITION" nullable="true" remarks="The prefill condition for this fee (Never / Always / If Resident / If Non-resident / If Minor / If Senior / If Internet / If Member / If Non-member)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="PRORATE_FEES" nullable="true" remarks="Whether this fee can be prorated (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="TAXABLE_BY_TAX_1" nullable="true" remarks="Whether tax 1 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="TAXABLE_BY_TAX_2" nullable="true" remarks="Whether tax 2 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="TAXABLE_BY_TAX_3" nullable="true" remarks="Whether tax 3 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="TAXABLE_BY_TAX_4" nullable="true" remarks="Whether tax 4 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="TAXABLE_BY_TAX_5" nullable="true" remarks="Whether tax 5 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="TAXABLE_BY_TAX_6" nullable="true" remarks="Whether tax 6 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="TAXABLE_BY_TAX_7" nullable="true" remarks="Whether tax 7 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="TAXABLE_BY_TAX_8" nullable="true" remarks="Whether tax 8 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="UNIT_OF_MEASURE" nullable="true" remarks="The default unit of measure for the amount" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="ONLINE_QUESTION" nullable="true" remarks="Online question to be asked for this charge" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="DISCOUNTABLE" nullable="true" remarks="Whether this charge can be discounted (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="MULTI_CHILD_MIN" nullable="true" remarks="The minimum number of registrants for multi-person registration with this fee" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="MULTI_CHILD_MAX" nullable="true" remarks="The maximum number of registrants for multi-person registration with this fee" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="ACTIVATION_DATE" nullable="true" remarks="The first available date for this fee" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="EXPIRATION_DATE" nullable="true" remarks="The last available date for this fee" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="MIN_PLAYERS" nullable="true" remarks="The minimum number of team players for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="MAX_PLAYERS" nullable="true" remarks="The maximum number of team players for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="ACTIVATION_PASSWORD" nullable="true" remarks="The answer to the online question that must be entered to activate this fee" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="ALLOWED_QUANTITY_CHANGED" nullable="true" remarks="Whether the quantity for this fee can be changed online (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="ALLOWED_MIN_QUANTITY" nullable="true" remarks="The minimum allowed quantity for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="ALLOWED_MAX_QUANTITY" nullable="true" remarks="The maximum allowed quantity for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="AGES_MIN" nullable="true" remarks="The minimum age for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="AGES_MAX" nullable="true" remarks="The maximum age for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="CUSTOMER_TYPE_ID" nullable="true" remarks="The customer type ID that this charge applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="CUSTOMER_TYPE" nullable="true" remarks="The customer type that this fee applies to" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="PRORATE_REFUND_FEES" nullable="true" remarks="Whether a refund of this fee can be prorated (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="ACTIVITY_TEAM_CATEGORY_ID" nullable="true" remarks="Activity team category ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_TEAM_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_TEAM_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="TEAM_PREFILL_CONDITION" nullable="true" remarks="The team prefill condition for this fee (No Teams or Groups / Teams and Groups / Teams Only / Groups Only)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="USE_REGIONAL_PRICING" nullable="true" remarks="Whether regional pricing should be used (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="MULTI_ACTIVITY_MIN" nullable="true" remarks="The minimum number of activities for multi-activity registration with this fee" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="MULTI_ACTIVITY_MAX" nullable="true" remarks="The maximum number of activities for multi-activity registration with this fee" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="MULTI_CHILD_APPLIES_TO_ALL" nullable="true" remarks="Whether multi-person registration with this fee applies to all registrants up to the max number entered" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="MULTI_ACTIVITY_APPLIES_TO_ALL" nullable="true" remarks="Whether multi-activity registration with this fee applies to all activities up to the max number entered" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="TRIAL_CLASS_FEE" nullable="true" remarks="Whether this charge can be a trial class fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="ACTIVATE_QUALIFYING_ACTIVITIES" nullable="true" remarks="Whether this charge has qualifying activity criteria (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="APPLIES_TO_ALL_ACTIVITIES" nullable="true" remarks="Whether this charge applies to all activities (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="ACTIVITY_GROUP_NUMBER" nullable="true" remarks="The specific group number that his charge applies to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="QUALIFYING_TIME_PERIOD" nullable="true" remarks="This charge will be valid only within the last this number of months of the selected season and/or child season" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="PER_BOOKING" nullable="true" remarks="Whether this fee is charged per booking (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="EXCLUDE_FROM_PAYMENT_PLAN" nullable="true" remarks="Whether this charge should be excluded from any payment plan (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="PER_BOOKING_PER_HOUR" nullable="true" remarks="Whether this fee is charged per booking per hour (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="QUALIFYING_MIN_REGISTRATIONS" nullable="true" remarks="This charge will apply if the customer has had at least this number of registrations" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="61" name="QUALIFYING_MAX_REGISTRATIONS" nullable="true" remarks="This charge will apply if the customer has had at most this number of registrations" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="VOLUME_PRICING_PLAN_ID" nullable="true" remarks="Volume pricing plan ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="MULTI_PERSON_QUALIFYING_TIME_PERIOD" nullable="true" remarks="This multi-person registration fee will only consider prior registrations within this last number of months" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="PER_BOOKING_PER_HOUR_MIN" nullable="true" remarks="The minimum per booking per hour units to be charged" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="65" name="PER_BOOKING_PER_HOUR_MAX" nullable="true" remarks="The maximum per booking per hour units to be charged" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="66" name="PER_BOOKING_PER_HOUR_DURATION" nullable="true" remarks="The number of minutes that each unit of a per booking per hour fee will be charged for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="67" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID" nullable="true" remarks="System GL account package ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="68" name="SYSTEM_GL_ACCOUNT_PACKAGE" nullable="true" remarks="System GL account package name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="69" name="DISCOUNT_ORDER" nullable="true" remarks="The order in which the discount should be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="70" name="DISCOUNT_GROUP_NUMBER" nullable="true" remarks="Discount group number" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="71" name="EXCLUDE_OTHER_DISCOUNTS_IN_GROUP" nullable="true" remarks="Whether other discounts in the same group should be excluded (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="72" name="MULTI_REGISTRATION_COUNT_ALL_ENROLLMENTS" nullable="true" remarks="Whether multi-person registration will include later enrollments in its count" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="73" name="DISCOUNT_CHEAPEST" nullable="true" remarks="Whether the discount should be applied to the lowest cost enrollment in a multi-person registration" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="74" name="IS_MULTI_GL" nullable="true" remarks="Whether this fee splits GL postings across multiple GL accounts (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="75" name="PRORATED_EARLIEST_TO_LATEST" nullable="true" remarks="Whether the amount should be prorated from earlies to latest (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="76" name="DROP_IN_FEE" nullable="true" remarks="Whether this fee is a drop-in fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="77" name="FEE_DESCRIPTION" nullable="true" remarks="The description of this fee" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="78" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="79" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="80" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVITY_FEE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_GROUPS" numRows="0" remarks="Contains information on defined activity groups for shared registration capacity" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.ACTIVITY_GROUPS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVITY_GROUP_ID,&#13;&#10;    src.GROUP_CAPACITY,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.ACTIVITY_GROUPS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVITY_GROUP_ID" nullable="true" remarks="The activity group ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="ACTIVITY_GROUP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="GROUP_CAPACITY" nullable="true" remarks="The maximum registration capacity shared by the activities assigned to this group" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="3" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVITY_GROUP_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_INSTRUCTOR_ATTENDANCE" numRows="0" remarks="Provides Instructor Attendance for Activity Sessions as well as Private Lessons" schema="dbo" type="VIEW" viewSql="&#9;&#9;&#9;&#9;&#9;&#13;&#10;CREATE VIEW dbo.ACTIVITY_INSTRUCTOR_ATTENDANCE &#13;&#10;AS &#9;&#13;&#10;SELECT &#13;&#10;&#9;aa.ACTIVITYATTENDANCE_ID,&#13;&#10;&#9;aa.ACTIVITY_DATE_ID,&#13;&#10;&#9;aa.ACTIVITY_INSTRUCTOR_ID,&#13;&#10;&#9;ai.INSTRUCTOR_ID,&#13;&#10;&#9;ins.CUSTOMER_ID AS INSTRUCTOR_CUSTOMER_ID,&#13;&#10;&#9;cus.CUSTOMER_FIRST_NAME AS INSTRUCTOR_FIRST_NAME,&#13;&#10;&#9;cus.CUSTOMER_LAST_NAME AS INSTRUCTOR_LAST_NAME,&#13;&#10;&#9;ai.INSTRUCTOR_ROLE_ID,&#13;&#10;&#9;insr.INSTRUCTOR_ROLE_NAME,&#13;&#10;&#9;ai.ACTIVITY_ID,&#13;&#10;&#9;act.ACTIVITYNUMBER,&#13;&#10;&#9;act.ACTIVITYNAME,&#13;&#10;&#9;aa.SUB_INSTRUCTOR_ID,&#13;&#10;&#9;aa.FACILITY_SCHEDULE_ID,&#13;&#10;&#9;aa.NUMBER_OF_MINUTES,&#13;&#10;&#9;aa.START_DATE_TIME,&#13;&#10;&#9;aa.SITE_ID,&#13;&#10;&#9;aa.ATTENDANCE_CODE_ID,&#13;&#10;&#9;CASE aa.ABSENT WHEN -1 THEN 'Yes' ELSE 'No' END AS ABSENT_YES_NO,&#13;&#10;&#9;aa.ORG_ID,&#13;&#10;&#9;aa.ROW_VERSION,&#13;&#10;&#9;aa.LAST_SYNC_TIME,&#13;&#10;&#9;aa.ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM hub.ACTIVITYATTENDANCE aa&#13;&#10;INNER JOIN [hub].[ACTIVITY_INSTRUCTORS] ai ON aa.ORG_ID = ai.ORG_ID AND aa.ACTIVITY_INSTRUCTOR_ID = ai.ACTIVITY_INSTRUCTOR_ID&#13;&#10;LEFT JOIN [hub].[INSTRUCTORS] ins ON ins.ORG_ID = ai.ORG_ID AND ins.INSTRUCTOR_ID = ai.INSTRUCTOR_ID&#13;&#10;INNER JOIN [hub].[CUSTOMERS] cus ON ins.ORG_ID = cus.ORG_ID AND ins.CUSTOMER_ID = cus.CUSTOMER_ID&#13;&#10;LEFT JOIN [hub].[INSTRUCTOR_ROLES] insr ON insr.ORG_ID = ai.ORG_ID AND insr.INSTRUCTOR_ROLE_ID = ai.INSTRUCTOR_ROLE_ID&#13;&#10;LEFT JOIN [hub].[ACTIVITIES] act ON act.ORG_ID = ai.ORG_ID AND act.ACTIVITY_ID = ai.ACTIVITY_ID&#13;&#10;WHERE aa.TRANSACTION_ID IS NULL&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVITYATTENDANCE_ID" nullable="false" remarks="Unique ID of the table" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ACTIVITY_DATE_ID" nullable="true" remarks="Activity date ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ACTIVITY_INSTRUCTOR_ID" nullable="true" remarks="Activity Instructor ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="INSTRUCTOR_ID" nullable="true" remarks="The unique IT of the Instructor" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="INSTRUCTOR_CUSTOMER_ID" nullable="true" remarks="The Customer ID of the Instructor join from INSTRUCTORS" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="INSTRUCTOR_FIRST_NAME" nullable="true" remarks="Customer First Name from Customers" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="INSTRUCTOR_LAST_NAME" nullable="true" remarks="Customer Last Name from Customers" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="INSTRUCTOR_ROLE_ID" nullable="true" remarks="The unique ID of the Instructor Role" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="INSTRUCTOR_ROLE_NAME" nullable="true" remarks="The name of the Instructor Role from INSTRUCTOR_ROLES" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVITY_ID" nullable="true" remarks="Activity ID - join from ACTIVITY_INSTRUCTORS" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ACTIVITYNUMBER" nullable="true" remarks="Activity Number - join from ACTIVITIES" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVITYNAME" nullable="true" remarks="Activity Name - join from ACTIVITIES" size="240" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="SUB_INSTRUCTOR_ID" nullable="true" remarks="Activity Sub Instructor ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="FACILITY_SCHEDULE_ID" nullable="true" remarks="Facility schedule ID (if the facility is reserved)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="NUMBER_OF_MINUTES" nullable="true" remarks="Activtiy duration in minutes" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="15" name="START_DATE_TIME" nullable="true" remarks="Activity start date time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SITE_ID" nullable="true" remarks="Site ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ATTENDANCE_CODE_ID" nullable="true" remarks="Attendance code ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ABSENT_YES_NO" nullable="false" remarks="Yes/No of whether the person was absent" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="21" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time dbo record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The dbo sync process ID" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_INTEREST_LISTS" numRows="0" remarks="Contains the interest lists that are assigned to each activity" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.ACTIVITY_INTEREST_LISTS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    il.ACTIVITY_ID,&#13;&#10;    ac.ACTIVITYNAME ACTIVITY_NAME,&#13;&#10;    il.INTEREST_LIST_ID,&#13;&#10;    il.INTEREST_LIST_NAME,&#13;&#10;    il.CATEGORY_ID,&#13;&#10;    acat.ACTIVITY_CATEGORY_NAME AS CATEGORY_NAME,&#13;&#10;    il.SUB_CATEGORY_ID,&#13;&#10;    ascat.ACTIVITY_SUB_CATEGORY_NAME AS SUB_CATEGORY_NAME&#13;&#10;FROM&#13;&#10;    hub.INTEREST_LISTS il&#13;&#10;    JOIN hub.ACTIVITIES ac ON ac.ACTIVITY_ID = il.ACTIVITY_ID&#13;&#10;    LEFT JOIN hub.ACTIVITY_CATEGORIES acat ON (acat.ACTIVITY_CATEGORY_ID = il.CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_SUB_CATEGORIES ascat ON (ascat.ACTIVITY_SUB_CATEGORY_ID = il.SUB_CATEGORY_ID)&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVITY_ID" nullable="true" remarks="The ID of the activity that is assigned to the interest list" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ACTIVITY_NAME" nullable="true" remarks="The name of the activity that is assigned to the interest list" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="INTEREST_LIST_ID" nullable="true" remarks="The interest list ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="INTEREST_LIST_NAME" nullable="true" remarks="Name of the interest list" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CATEGORY_ID" nullable="true" remarks="The category ID of the interest list" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CATEGORY_NAME" nullable="true" remarks="The category name of the interest list." size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SUB_CATEGORY_ID" nullable="true" remarks="The sub-category ID of the interest list" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SUB_CATEGORY_NAME" nullable="true" remarks="The sub-category name of the interest list." size="40" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_PARTICIPANT_ZONES" numRows="0" remarks="Participant Zones that are eligible for priority registration for an activity" schema="dbo" type="VIEW" viewSql="&#9;&#9;&#9;&#9;&#9;&#13;&#10;CREATE VIEW dbo.ACTIVITY_PARTICIPANT_ZONES &#13;&#10;AS &#9;&#13;&#10;SELECT &#13;&#10;&#9;apz.ORG_ID,&#13;&#10;&#9;apz.ACTIVITY_PARTICIPANT_ZONE_ID,&#13;&#10;&#9;apz.PARTICIPANT_ZONE_ID,&#13;&#10;&#9;pz.PARTICIPANT_ZONE_NAME,&#13;&#10;&#9;apz.ACTIVITY_ID,&#13;&#10;&#9;ac.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;&#9;ac.ACTIVITYNUMBER as ACTIVITY_NUMBER,&#13;&#10;&#9;apz.ROW_VERSION,&#13;&#10;&#9;apz.LAST_SYNC_TIME&#13;&#10;FROM hub.ACTIVITY_PARTICIPANT_ZONES apz&#13;&#10;LEFT JOIN hub.PARTICIPANT_ZONES pz &#13;&#10;&#9;ON apz.ORG_ID = pz.ORG_ID AND apz.PARTICIPANT_ZONE_ID = pz.PARTICIPANT_ZONE_ID&#13;&#10;LEFT JOIN hub.ACTIVITIES ac&#13;&#10;&#9;ON apz.ORG_ID = ac.ORG_ID AND apz.ACTIVITY_ID = ac.ACTIVITY_ID&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ACTIVITY_PARTICIPANT_ZONE_ID" nullable="false" remarks="The unique ID for this object" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PARTICIPANT_ZONE_ID" nullable="true" remarks="The unique ID of the participant zone in PARTICIPANT_ZONES" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PARTICIPANT_ZONE_NAME" nullable="true" remarks="The descriptive name of the Participant Zone" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_ID" nullable="true" remarks="The unique ID of the Activity in ACTIVITIES" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVITY_NAME" nullable="true" remarks="The name of the Activity" size="240" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVITY_NUMBER" nullable="true" remarks="The public facing numbeer of the Activity" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time dbo record was last modified" size="16" type="datetime" typeCode="93"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_PASS_FAIL_GRADES" numRows="0" remarks="Your organization's defined activity grades" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.ACTIVITY_PASS_FAIL_GRADES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVITY_PASS_FAIL_GRADE_ID,&#13;&#10;    src.ACTIVITY_PASS_FAIL_GRADE_NAME,&#13;&#10;    src.ACTIVITY_PASS_FAIL_GRADE_DESCRIPTION,&#13;&#10;    src.IS_FAIL,&#13;&#10;    src.INCLUDE_IN_GPA_CALCULATION,&#13;&#10;    src.QUALITY_POINTS,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.ACTIVITY_PASS_FAIL_GRADES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVITY_PASS_FAIL_GRADE_ID" nullable="false" remarks="The activity grade ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="PASS_OR_FAIL_GRADE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ACTIVITY_PASS_FAIL_GRADE_NAME" nullable="true" remarks="The activity grade name" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ACTIVITY_PASS_FAIL_GRADE_DESCRIPTION" nullable="true" remarks="The activity grade description" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="IS_FAIL" nullable="true" remarks="Whether this activity grade is considered to be a failing grade (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="INCLUDE_IN_GPA_CALCULATION" nullable="true" remarks="Whether this activity grade should be included in a GPA calculation (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="5" name="QUALITY_POINTS" nullable="true" remarks="The number of points that this activity grade should provide for a GPA calculation" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="IS_RETIRED" nullable="true" remarks="Whether this activity grade has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVITY_PASS_FAIL_GRADE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_PREREQUISITES" numRows="0" remarks="Your organization's defined prerequisites for activities" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.ACTIVITY_PREREQUISITES&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    pr1.ORG_ID,&#13;&#10;    pr1.PREREQUISITE_ID,&#13;&#10;    pr1.ACTIVITY_ID,&#13;&#10;    ac2.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    ac2.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    pr1.GROUP_NUMBER,&#13;&#10;    pr1.PREREQUISITE_ACTIVITY_ID,&#13;&#10;    ac3.ACTIVITYNAME AS PREREQUISITE_ACTIVITY_NAME,&#13;&#10;    ac3.ACTIVITYNUMBER AS PREREQUISITE_ACTIVITY_NUMBER,&#13;&#10;    pr1.PREREQUISITE_PROGRAM_ID,&#13;&#10;    pr3.PROGRAM_NAME AS PREREQUISITE_PROGRAM_NAME,&#13;&#10;    pr3.CATALOGNUMBER AS PREREQUISITE_PROGRAM_NUMBER,&#13;&#10;    pr1.ACTIVITY_PROGRAM_NUMBER_WILDCARD,&#13;&#10;    pr1.DURATION_YEARS,&#13;&#10;    pr1.DURATION_MONTHS,&#13;&#10;    pr1.DURATION_DAYS,&#13;&#10;    pr1.PREREQUISITE_PACKAGE_ID,&#13;&#10;    pa3.PACKAGE_NAME AS PREREQUISITE_PACKAGE_NAME,&#13;&#10;    pr1.IMMEDIATE_SALE_PACKAGE,&#13;&#10;    pr1.SKILL_ID,&#13;&#10;    sk1.SKILL_NAME,&#13;&#10;    pr1.ALTERNATE_KEY_TYPE_ID,&#13;&#10;    ak1.ALTERNATE_KEY_TYPE&#13;&#10;FROM&#13;&#10;    hub.PREREQUISITES pr1&#13;&#10;    JOIN hub.ACTIVITIES ac2 ON ac2.ACTIVITY_ID = pr1.ACTIVITY_ID&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac3 ON ac3.ACTIVITY_ID = pr1.PREREQUISITE_ACTIVITY_ID&#13;&#10;    LEFT JOIN hub.PROGRAMS pr3 ON pr3.PROGRAM_ID = pr1.PREREQUISITE_PROGRAM_ID&#13;&#10;    LEFT JOIN hub.PACKAGES pa3 ON pa3.PACKAGE_ID = pr1.PREREQUISITE_PACKAGE_ID&#13;&#10;    LEFT JOIN hub.ALTERNATE_KEY_TYPES ak1 ON ak1.ALTERNATE_KEY_TYPE_ID = pr1.ALTERNATE_KEY_TYPE_ID&#13;&#10;    LEFT JOIN hub.SKILLS sk1 ON (sk1.SKILL_ID = pr1.SKILL_ID)&#13;&#10;WHERE&#13;&#10;    pr1.RETURNING_PARTICIPANT_CRITERIA = 'No'&#13;&#10;    AND pr1.ACTIVITY_PROGRAM_NUMBER_WILDCARD IS NULL&#13;&#10;UNION ALL&#13;&#10;SELECT&#13;&#10;    pr1.ORG_ID,&#13;&#10;    pr1.PREREQUISITE_ID,&#13;&#10;    pr1.ACTIVITY_ID,&#13;&#10;    ac2.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    ac2.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    pr1.GROUP_NUMBER,&#13;&#10;    ac3.ACTIVITY_ID AS PREREQUISITE_ACTIVITY_ID,&#13;&#10;    ac3.ACTIVITYNAME AS PREREQUISITE_ACTIVITY_NAME,&#13;&#10;    ac3.ACTIVITYNUMBER AS PREREQUISITE_ACTIVITY_NUMBER,&#13;&#10;    NULL AS PREREQUISITE_PROGRAM_ID,&#13;&#10;    NULL AS PREREQUISITE_PROGRAM_NAME,&#13;&#10;    NULL AS PREREQUISITE_PROGRAM_NUMBER,&#13;&#10;    pr1.ACTIVITY_PROGRAM_NUMBER_WILDCARD,&#13;&#10;    pr1.DURATION_YEARS,&#13;&#10;    pr1.DURATION_MONTHS,&#13;&#10;    pr1.DURATION_DAYS,&#13;&#10;    NULL AS PREREQUISITE_PACKAGE_ID,&#13;&#10;    NULL AS PREREQUISITE_PACKAGE_NAME,&#13;&#10;    'No' AS IMMEDIATE_SALE_PACKAGE,&#13;&#10;    NULL AS SKILL_ID,&#13;&#10;    NULL AS SKILL_NAME,&#13;&#10;    NULL AS ALTERNATE_KEY_TYPE_ID,&#13;&#10;    NULL AS ALTERNATE_KEY_TYPE&#13;&#10;FROM&#13;&#10;    hub.PREREQUISITES pr1&#13;&#10;    JOIN hub.ACTIVITIES ac2 ON ac2.ACTIVITY_ID = pr1.ACTIVITY_ID&#13;&#10;    CROSS JOIN hub.ACTIVITIES ac3&#13;&#10;WHERE&#13;&#10;    pr1.RETURNING_PARTICIPANT_CRITERIA = 'No'&#13;&#10;    AND pr1.ACTIVITY_PROGRAM_NUMBER_WILDCARD IS NOT NULL&#13;&#10;    AND ac3.ACTIVITYNUMBER LIKE REPLACE(pr1.ACTIVITY_PROGRAM_NUMBER_WILDCARD, '*', '%')&#13;&#10;UNION ALL&#13;&#10;SELECT&#13;&#10;    pr1.ORG_ID,&#13;&#10;    pr1.PREREQUISITE_ID,&#13;&#10;    pr1.ACTIVITY_ID,&#13;&#10;    ac2.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    ac2.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    pr1.GROUP_NUMBER,&#13;&#10;    NULL AS PREREQUISITE_ACTIVITY_ID,&#13;&#10;    NULL AS PREREQUISITE_ACTIVITY_NAME,&#13;&#10;    NULL AS PREREQUISITE_ACTIVITY_NUMBER,&#13;&#10;    pr3.PROGRAM_ID AS PREREQUISITE_PROGRAM_ID,&#13;&#10;    pr3.PROGRAM_NAME AS PREREQUISITE_PROGRAM_NAME,&#13;&#10;    pr3.CATALOGNUMBER AS PREREQUISITE_PROGRAM_NUMBER,&#13;&#10;    pr1.ACTIVITY_PROGRAM_NUMBER_WILDCARD,&#13;&#10;    pr1.DURATION_YEARS,&#13;&#10;    pr1.DURATION_MONTHS,&#13;&#10;    pr1.DURATION_DAYS,&#13;&#10;    NULL AS PREREQUISITE_PACKAGE_ID,&#13;&#10;    NULL AS PREREQUISITE_PACKAGE_NAME,&#13;&#10;    'No' AS IMMEDIATE_SALE_PACKAGE,&#13;&#10;    NULL AS SKILL_ID,&#13;&#10;    NULL AS SKILL_NAME,&#13;&#10;    NULL AS ALTERNATE_KEY_TYPE_ID,&#13;&#10;    NULL AS ALTERNATE_KEY_TYPE&#13;&#10;FROM&#13;&#10;    hub.PREREQUISITES pr1&#13;&#10;    JOIN hub.ACTIVITIES ac2 ON ac2.ACTIVITY_ID = pr1.ACTIVITY_ID&#13;&#10;    CROSS JOIN hub.PROGRAMS pr3&#13;&#10;WHERE&#13;&#10;    pr1.RETURNING_PARTICIPANT_CRITERIA = 'No'&#13;&#10;    AND pr1.ACTIVITY_PROGRAM_NUMBER_WILDCARD IS NOT NULL&#13;&#10;    AND pr3.CATALOGNUMBER LIKE REPLACE(pr1.ACTIVITY_PROGRAM_NUMBER_WILDCARD, '*', '%');&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PREREQUISITE_ID" nullable="true" remarks="Prerequisite ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ACTIVITY_ID" nullable="true" remarks="The ID of the activity that the prerequisite belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVITY_NAME" nullable="true" remarks="The name of the activity that the prerequisite belongs to" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_NUMBER" nullable="true" remarks="The number of the activity that the prerequisite belongs to" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="GROUP_NUMBER" nullable="true" remarks="The group number that the prerequisite belongs in" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PREREQUISITE_ACTIVITY_ID" nullable="true" remarks="The ID of the prerequisite activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="PREREQUISITE_ACTIVITY_NAME" nullable="true" remarks="The name of the prerequisite activity" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="PREREQUISITE_ACTIVITY_NUMBER" nullable="true" remarks="The number of the prerequisite activity" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="PREREQUISITE_PROGRAM_ID" nullable="true" remarks="The ID of the prerequisite program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="PREREQUISITE_PROGRAM_NAME" nullable="true" remarks="The name of the prerequisite program" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="PREREQUISITE_PROGRAM_NUMBER" nullable="true" remarks="The number of the prerequisite program" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ACTIVITY_PROGRAM_NUMBER_WILDCARD" nullable="true" remarks="The activity or program catalog number of the prerequisite activity or program" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DURATION_YEARS" nullable="true" remarks="The maximum number of years ago that the prerequisite registration may have occurred" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="DURATION_MONTHS" nullable="true" remarks="The maximum number of months ago that the prerequisite registration may have occurred" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="DURATION_DAYS" nullable="true" remarks="The maximum number of days ago that the prerequisite registration may have occurred" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="PREREQUISITE_PACKAGE_ID" nullable="true" remarks="The ID of the prerequisite membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="PREREQUISITE_PACKAGE_NAME" nullable="true" remarks="The name of the prerequisite membership package" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="IMMEDIATE_SALE_PACKAGE" nullable="true" remarks="Whether the prerequisite membership package may be purchased at the time of registration (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="SKILL_ID" nullable="true" remarks="The ID of the prerequisite skill" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="SKILL_NAME" nullable="true" remarks="The name of the prerequisite skill" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ALTERNATE_KEY_TYPE_ID" nullable="true" remarks="The ID of the prerequisite alternate key type" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="ALTERNATE_KEY_TYPE" nullable="true" remarks="The name of the prerequisite alternate key type" size="50" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_PRIVATE_LESSONS" numRows="0" remarks="Instructor time slot reservation data for private lesson enrollments" schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21445&#13;&#10;--FileName=dbo.ACTIVITY_PRIVATE_LESSONS.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.ACTIVITY_PRIVATE_LESSONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.FACILITY_SCHEDULE_ID,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    src.INSTRUCTOR_FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME AS INSTRUCTOR_FACILITY_NAME,&#13;&#10;    src.LESSON_START_DATE,&#13;&#10;    src.LESSON_START_TIME,&#13;&#10;    src.LESSON_END_DATE,&#13;&#10;    src.LESSON_END_TIME,&#13;&#10;    src.DAY_OF_WEEK,&#13;&#10;    src.HOURS_RESERVED,&#13;&#10;    src.MINUTES_RESERVED,&#13;&#10;    src.HOLD_TYPE,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    cu1.CUSTOMER_FIRST_NAME,&#13;&#10;    cu1.CUSTOMER_LAST_NAME,&#13;&#10;    IIF(cu1.RESIDENT_STATUS = 'Resident', 'Yes', 'No') AS RESIDENCY,&#13;&#10;    src.TRANSACTION_ID,&#13;&#10;    src.ROOT_TRANSACTION_ID,&#13;&#10;    src.TRANSACTION_SITE_ID,&#13;&#10;    si1.SITE_NAME AS TRANSACTION_SITE_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''),su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.PARENT_FACILITY_SCHEDULE_ID,&#13;&#10;    src.LOCATION_FACILITY_ID,&#13;&#10;    fa2.FACILITY_NAME AS LOCATION_FACILITY_NAME&#13;&#10;FROM &#13;&#10;    hub.ACTIVITY_PRIVATE_LESSONS src&#13;&#10;    INNER JOIN hub.ACTIVITIES ac1 ON (src.ACTIVITY_ID = ac1.ACTIVITY_ID)&#13;&#10;    LEFT OUTER JOIN hub.CUSTOMERS cu1 ON (src.CUSTOMER_ID = cu1.CUSTOMER_ID)&#13;&#10;    LEFT OUTER JOIN hub.FACILITIES fa1 ON (src.INSTRUCTOR_FACILITY_ID = fa1.FACILITY_ID)&#13;&#10;    LEFT OUTER JOIN hub.FACILITIES fa2 ON (src.LOCATION_FACILITY_ID = fa2.FACILITY_ID)&#13;&#10;    INNER JOIN hub.SITES si1 ON (src.TRANSACTION_SITE_ID = si1.SITE_ID)&#13;&#10;    INNER JOIN hub.SYSTEM_USERS su1 ON (src.SYSTEMUSER_ID = su1.SYSTEMUSER_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_SCHEDULE_ID" nullable="true" remarks="The ID of the reservation record" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="PARENT_FACILITY_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_PRIVATE_LESSONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ACTIVITY_ID" nullable="true" remarks="The ID of the activity that the reservation is for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVITY_NAME" nullable="true" remarks="The name of the activity that the reservation is for" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="INSTRUCTOR_FACILITY_ID" nullable="true" remarks="Facility ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="INSTRUCTOR_FACILITY_NAME" nullable="true" remarks="Facility name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="LESSON_START_DATE" nullable="true" remarks="Lesson start date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="LESSON_START_TIME" nullable="true" remarks="Lesson start time" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="LESSON_END_DATE" nullable="true" remarks="Lesson end date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="LESSON_END_TIME" nullable="true" remarks="Lesson end time" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="DAY_OF_WEEK" nullable="true" remarks="Reserved days in a week" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="11" name="HOURS_RESERVED" nullable="true" remarks="The total hours that the lesson is booked for" size="11" type="decimal" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="12" name="MINUTES_RESERVED" nullable="true" remarks="The total minutes that the lesson is booked for" size="11" type="decimal" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="HOLD_TYPE" nullable="true" remarks="The type of hold that is placed on the resource (Booked, Tentative, Placeholder, Rescheduled)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="CUSTOMER_ID" nullable="true" remarks="The ID of the customer" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="CUSTOMER_FIRST_NAME" nullable="true" remarks="First name of the customer" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="CUSTOMER_LAST_NAME" nullable="true" remarks="Last name of the customer" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="RESIDENCY" nullable="false" remarks="Customer's resident status" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="TRANSACTION_ID" nullable="true" remarks="The ID of the transaction for the reservation" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ROOT_TRANSACTION_ID" nullable="true" remarks="The ID of the root transaction for the activity registration" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="TRANSACTION_SITE_ID" nullable="true" remarks="The site ID where the transaction took place" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="TRANSACTION_SITE_NAME" nullable="true" remarks="The site name where the transaction took place" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the system user who made the reservation" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the system user who made the reservation" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="24" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="PARENT_FACILITY_SCHEDULE_ID" nullable="true" remarks="The ID of the parent record, if the record is for the lesson location rather than the booked instructor facility" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_PRIVATE_LESSONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="LOCATION_FACILITY_ID" nullable="true" remarks="The ID of the location facility, if the record is for the lesson location rather than the booked instructor facility" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="LOCATION_FACILITY_NAME" nullable="true" remarks="The name of the location facility, if the record is for the lesson location rather than the booked instructor facility" size="255" type="varchar" typeCode="12"/>
         <primaryKey column="FACILITY_SCHEDULE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_RESERVATION_PATTERN_DATES" numRows="0" remarks="Class times and locations per activity as generated from activity reservation templates" schema="dbo" type="VIEW" viewSql="--KitManagerFileID=20686&#13;&#10;--FileName=dbo.ACTIVITY_RESERVATION_PATTERN_DATES.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.ACTIVITY_RESERVATION_PATTERN_DATES&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    arp.ACTIVITY_ID,&#13;&#10;    arp.FACILITY_ID,&#13;&#10;    CAST(ahd.dt_dt AS DATE) AS MEETING_DATE,&#13;&#10;    arp.START_TIME,&#13;&#10;    arp.END_TIME,&#13;&#10;    arp.SETUP_START_TIME,&#13;&#10;    arp.CLEANUP_END_TIME&#13;&#10;FROM&#13;&#10;    hub.ACTIVITY_RESERVATION_PATTERNS arp&#13;&#10;    CROSS JOIN dbo.ACTIVE_HUB_DATES ahd&#13;&#10;WHERE&#13;&#10;    ahd.dt_dt BETWEEN arp.BEGINNING_DATE AND arp.ENDING_DATE&#13;&#10;    AND ahd.wk_dy_nb = arp.DAY_OF_WEEK&#13;&#10;    AND SUBSTRING(arp.WEEKS_OF_MONTH, ahd.mo_wk_nb, 1) = '1';&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVITY_ID" nullable="true" remarks="Activity ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_ID" nullable="true" remarks="Facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="MEETING_DATE" nullable="true" remarks="Date of the activity class" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="START_TIME" nullable="true" remarks="Start time of the activity class" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="END_TIME" nullable="true" remarks="End time of the activity class" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SETUP_START_TIME" nullable="true" remarks="Start time of the class including setup time" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CLEANUP_END_TIME" nullable="true" remarks="End time of the class including cleanup time" size="16" type="time" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_RESERVATION_PATTERNS" numRows="0" remarks="Reservation patterns for generating activity class dates" schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21446&#13;&#10;--FileName=dbo.ACTIVITY_RESERVATION_PATTERNS.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.ACTIVITY_RESERVATION_PATTERNS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    src.PATTERN_NAME,&#13;&#10;    src.PATTERN_INDEX,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    src.WEEKS_OF_MONTH,&#13;&#10;    src.DAY_OF_WEEK,&#13;&#10;    src.DAY_OF_WEEK_NAME,&#13;&#10;    src.BEGINNING_DATE,&#13;&#10;    src.ENDING_DATE,&#13;&#10;    src.START_TIME,&#13;&#10;    src.END_TIME,&#13;&#10;    src.SETUP_START_TIME,&#13;&#10;    src.CLEANUP_END_TIME,&#13;&#10;    src.ACTIVITY_RESERVATION_PATTERN_ID,&#13;&#10;    src.ACTIVITY_RESERVATION_PATTERN_FACILITY_ID,&#13;&#10;    src.ACTIVITY_RESERVATION_PATTERN_DATE_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.ACTIVITY_RESERVATION_PATTERNS src;&#13;&#10;(datename(weekday,[DAY_OF_WEEK]-(2)))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ACTIVITY_ID" nullable="true" remarks="Activity ID that activity class dates should be generated for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PATTERN_NAME" nullable="true" remarks="Name of the activity reservation pattern" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PATTERN_INDEX" nullable="true" remarks="Sort order of the activity reservation pattern" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="FACILITY_ID" nullable="true" remarks="Facility ID that activity class dates should be generated for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="WEEKS_OF_MONTH" nullable="true" remarks="Weeks of the month that class dates should be generated for (each character represents a week in the month)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="DAY_OF_WEEK" nullable="true" remarks="Day of week number to generate activity class dates for (1=Sunday to 7=Saturday)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="DAY_OF_WEEK_NAME" nullable="true" remarks="Day of week to generate activity class dates for (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday)" size="60" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="BEGINNING_DATE" nullable="true" remarks="First date that activity class dates should be generated from" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ENDING_DATE" nullable="true" remarks="Last date that activity class dates should be generated to" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="START_TIME" nullable="true" remarks="Start time of the activity class" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="END_TIME" nullable="true" remarks="End time of the activity class" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="SETUP_START_TIME" nullable="true" remarks="Start time of the scheduled time for the class including setup time" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="CLEANUP_END_TIME" nullable="true" remarks="End time of the scheduled time for the class including cleanup time" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ACTIVITY_RESERVATION_PATTERN_ID" nullable="true" remarks="Activity reservation pattern ID (for internal synchronization)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ACTIVITY_RESERVATION_PATTERN_FACILITY_ID" nullable="true" remarks="Activity reservation pattern facility ID (for internal synchronization)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ACTIVITY_RESERVATION_PATTERN_DATE_ID" nullable="true" remarks="Activity reservation pattern date ID (for internal synchronization)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="17" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVITY_RESERVATION_PATTERN_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ACTIVITY_RESERVATION_PATTERN_FACILITY_ID" sequenceNumberInPK="2"/>
         <primaryKey column="ACTIVITY_RESERVATION_PATTERN_DATE_ID" sequenceNumberInPK="3"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_RETURNING_PARTICIPANT_CRITERIA" numRows="0" remarks="Your organization's defined returning participant criteria for activities" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.ACTIVITY_RETURNING_PARTICIPANT_CRITERIA &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.PREREQUISITE_ID,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    ac2.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    ac2.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    src.PREREQUISITE_ACTIVITY_ID,&#13;&#10;    ac3.ACTIVITYNAME AS PREREQUISITE_ACTIVITY_NAME,&#13;&#10;    ac3.ACTIVITYNUMBER AS PREREQUISITE_ACTIVITY_NUMBER,&#13;&#10;    src.ACTIVITY_PROGRAM_NUMBER_WILDCARD AS ACTIVITY_NUMBER_WILDCARD,&#13;&#10;    src.DURATION_YEARS,&#13;&#10;    src.DURATION_MONTHS,&#13;&#10;    src.DURATION_DAYS,&#13;&#10;    src.ACTIVITY_CATEGORY_ID,&#13;&#10;    acat.ACTIVITY_CATEGORY_NAME AS ACTIVITY_CATEGORY,&#13;&#10;    src.ACTIVITY_SUB_CATEGORY_ID,&#13;&#10;    ascat.ACTIVITY_SUB_CATEGORY_NAME AS ACTIVITY_SUBCATEGORY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.PREREQUISITES src&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac2 ON ac2.ACTIVITY_ID = src.ACTIVITY_ID&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac3 ON ac3.ACTIVITY_ID = src.PREREQUISITE_ACTIVITY_ID&#13;&#10;    LEFT JOIN hub.ACTIVITY_CATEGORIES acat ON (acat.ACTIVITY_CATEGORY_ID = src.ACTIVITY_CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_SUB_CATEGORIES ascat ON (ascat.ACTIVITY_SUB_CATEGORY_ID = src.ACTIVITY_SUB_CATEGORY_ID)&#13;&#10;WHERE&#13;&#10;    src.ACTIVITY_ID IS NOT NULL&#13;&#10;    AND src.RETURNING_PARTICIPANT_CRITERIA = 'Yes';&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PREREQUISITE_ID" nullable="true" remarks="Returning participant criteria ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ACTIVITY_ID" nullable="true" remarks="The ID of the activity that the returning participant criteria belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVITY_NAME" nullable="true" remarks="The name of the activity that the returning participant criteria belongs to" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_NUMBER" nullable="true" remarks="The number of the activity that the returning participant criteria belongs to" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PREREQUISITE_ACTIVITY_ID" nullable="true" remarks="The ID of the prerequisite activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PREREQUISITE_ACTIVITY_NAME" nullable="true" remarks="The name of the prerequisite activity" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="PREREQUISITE_ACTIVITY_NUMBER" nullable="true" remarks="The number of the prerequisite activity" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVITY_NUMBER_WILDCARD" nullable="true" remarks="The activity number of the prerequisite activity" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="DURATION_YEARS" nullable="true" remarks="The maximum number of years ago that the prerequisite registration may have occurred" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="DURATION_MONTHS" nullable="true" remarks="The maximum number of months ago that the prerequisite registration may have occurred" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="DURATION_DAYS" nullable="true" remarks="The maximum number of days ago that the prerequisite registration may have occurred" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ACTIVITY_CATEGORY_ID" nullable="true" remarks="The activity category ID of the prerequisite activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ACTIVITY_CATEGORY" nullable="true" remarks="The activity category name of the prerequisite activity" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ACTIVITY_SUB_CATEGORY_ID" nullable="true" remarks="The activity subcategory ID of the prerequisite activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ACTIVITY_SUBCATEGORY" nullable="true" remarks="The activity subcategory name of the prerequisite activity" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_SCHEDULED_FEE_RATES" numRows="0" remarks="View containing scheduled fee rates and associated activity details." schema="dbo" type="VIEW" viewSql="&#9;&#9;&#9;&#9;&#9;&#13;&#10;CREATE VIEW dbo.ACTIVITY_SCHEDULED_FEE_RATES &#13;&#10;AS &#9;&#13;&#10;SELECT &#13;&#10;&#9;src.[ORG_ID],&#13;&#10;&#9;src.[ACTIVITY_SCHEDULED_FEE_RATE_ID],&#13;&#10;&#9;src.[SCHEDULED_FEE],&#13;&#10;&#9;src.[SCHEDULED_DATE],&#13;&#10;&#9;af.[ACTIVITY_FEE_ID],&#13;&#10;&#9;af.[ACTIVITY_ID],&#13;&#10;&#9;ac.[ACTIVITYNAME],&#13;&#10;&#9;ac.[ACTIVITYNUMBER]&#13;&#10;FROM [hub].[ACTIVITY_SCHEDULED_FEE_RATES] src&#13;&#10;LEFT JOIN [hub].[ACTIVITY_FEES] af ON af.[ACTIVITY_FEE_ID] = src.[SCHEDULEDFEES_ID] AND af.[ORG_ID] = src.[ORG_ID]&#13;&#10;LEFT JOIN [hub].[ACTIVITIES] ac ON ac.[ACTIVITY_ID] = af.[ACTIVITY_ID] AND ac.[ORG_ID] = af.[ORG_ID]&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ACTIVITY_SCHEDULED_FEE_RATE_ID" nullable="false" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="2" name="SCHEDULED_FEE" nullable="true" remarks="Amount of fee" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="3" name="SCHEDULED_DATE" nullable="true" remarks="Date of change based on Activity Start Date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_FEE_ID" nullable="true" remarks="Populated from SCHEDULEDFEES_ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVITY_ID" nullable="true" remarks="Refers to ACTIVITY_FEES.ACTIVITY_ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVITYNAME" nullable="true" remarks="Refers to ACTIVITIES.ACTIVITY_NAME" size="240" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVITYNUMBER" nullable="true" remarks="Refers to ACTIVITIES.ACTIVITY_NUMBER" size="20" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_SUB_CATEGORIES" numRows="0" remarks="Your organization's defined activity sub-categories" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.ACTIVITY_SUB_CATEGORIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVITY_SUB_CATEGORY_ID,&#13;&#10;    src.ACTIVITY_SUB_CATEGORY_NAME,&#13;&#10;    src.HIDE_ON_INTERNET,&#13;&#10;    src.LINK_INTEREST_LIST,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.ACTIVITY_SUB_CATEGORIES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVITY_SUB_CATEGORY_ID" nullable="false" remarks="The activity sub-category ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="ACTIVITY_OTHER_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="ACTIVITY_SUB_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="SUB_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="INTEREST_LISTS"/>
            <child catalog="ActiveHub" column="ACTIVITY_SUB_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PREREQUISITES"/>
            <child catalog="ActiveHub" column="SUB_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ACTIVITY_SUB_CATEGORY_NAME" nullable="true" remarks="The activity sub-category name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether this activity sub-category should be hidden from use online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="LINK_INTEREST_LIST" nullable="true" remarks="Whether this activity sub-category should link to an interest list (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVITY_SUB_CATEGORY_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_TEAM_CATEGORIES" numRows="0" remarks="Your organization's defined activity team categories" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.ACTIVITY_TEAM_CATEGORIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVITY_TEAM_CATEGORY_ID,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    ac1.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    src.TEAM_CATEGORY_ID,&#13;&#10;    tc1.TEAM_CATEGORY_NAME,&#13;&#10;    src.USED_FOR,&#13;&#10;    src.TEAM_PAYMENT_SCENARIO,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.ACTIVITY_TEAM_CATEGORIES src&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON (ac1.ACTIVITY_ID = src.ACTIVITY_ID)&#13;&#10;    LEFT JOIN hub.TEAM_CATEGORIES tc1 ON (tc1.TEAM_CATEGORY_ID = src.TEAM_CATEGORY_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVITY_TEAM_CATEGORY_ID" nullable="false" remarks="The activity team category ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="ACTIVITY_TEAM_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_FEES"/>
            <child catalog="ActiveHub" column="ACTIVITY_TEAM_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ACTIVITY_ID" nullable="true" remarks="The ID of the activity that the team category is assigned to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ACTIVITY_NAME" nullable="true" remarks="The name of the activity that the team category is assigned to" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVITY_NUMBER" nullable="true" remarks="The number of the activity that the team category is assigned to" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="TEAM_CATEGORY_ID" nullable="true" remarks="The ID of the team category" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TEAM_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAM_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="TEAM_CATEGORY_NAME" nullable="true" remarks="The name of the team category" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="USED_FOR" nullable="true" remarks="Whether this team category is used for Teams or Groups" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="TEAM_PAYMENT_SCENARIO" nullable="true" remarks="How enrollment of team members is paid (All members pay individually / All members pay individually, team can pre-pay members / Team pays lump sum for all members)" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVITY_TEAM_CATEGORY_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_TYPES" numRows="0" remarks="Your organization's defined activity types" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.ACTIVITY_TYPES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVITY_TYPE_ID,&#13;&#10;    src.ACTIVITY_TYPE_NAME,&#13;&#10;    src.DO_NOT_ALLOW_ATTENDANCE_ENTRY,&#13;&#10;    src.ENABLE_TYPE_SPECIFIC_ATTENDANCE_CODES,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.ACTIVITY_TYPES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVITY_TYPE_ID" nullable="false" remarks="The activity type ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="ACTIVITY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ACTIVITY_TYPE_NAME" nullable="true" remarks="The activity type name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="DO_NOT_ALLOW_ATTENDANCE_ENTRY" nullable="true" remarks="Whether attendance entry should be disallowed for activities of this type (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ENABLE_TYPE_SPECIFIC_ATTENDANCE_CODES" nullable="true" remarks="Whether activity type specific attendance codes should be enabled (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="IS_RETIRED" nullable="true" remarks="Whether this activity type has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVITY_TYPE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_WISHLISTS" numRows="0" remarks="The record of a customer's expressed interest in following the availability of an activity or program" schema="dbo" type="VIEW" viewSql="--KitManagerFileID=20282&#13;&#10;--FileName=dbo.ACTIVITY_WISHLISTS.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.ACTIVITY_WISHLISTS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    wi1.WISHLIST_ID,&#13;&#10;    wi1.WISHLIST_PARTICIPANT_ID,&#13;&#10;    wi1.CUSTOMER_ID,&#13;&#10;    wi1.PARTICIPANT_CUSTOMER_ID,&#13;&#10;    wi1.ACTIVITY_ID,&#13;&#10;    wi1.DATESTAMP,&#13;&#10;    wi1.DATESTAMP_DATE_ONLY,&#13;&#10;    wi1.ENROLLED,&#13;&#10;    wi1.ENROLLMENT_DATE&#13;&#10;FROM&#13;&#10;    hub.WISHLISTS wi1&#13;&#10;WHERE&#13;&#10;    wi1.ACTIVITY_ID IS NOT NULL;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="WISHLIST_ID" nullable="true" remarks="Wish list ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="WISHLIST_PARTICIPANT_ID" nullable="true" remarks="Wish list participant ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_ID" nullable="true" remarks="Wish list customer ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PARTICIPANT_CUSTOMER_ID" nullable="true" remarks="Wish list participant customer ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_ID" nullable="true" remarks="The activity ID that the customer is wish listed for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="DATESTAMP" nullable="true" remarks="The date and time that the wish list entry was created or updated" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="DATESTAMP_DATE_ONLY" nullable="true" remarks="The date that the wish list entry was created or updated" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ENROLLED" nullable="true" remarks="Whether the customer has been enrolled into the wish listed activity or program" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ENROLLMENT_DATE" nullable="true" remarks="The date that the customer was last enrolled into the wish listed activity or program" size="20" type="date" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="AGE_CATEGORIES" numRows="0" remarks="Your organization's defined age categories" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.AGE_CATEGORIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.AGE_CATEGORY_ID,&#13;&#10;    src.AGE_CATEGORY_NAME,&#13;&#10;    src.LOWER_AGE,&#13;&#10;    src.UPPER_AGE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.AGE_CATEGORIES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AGE_CATEGORY_ID" nullable="false" remarks="The age category ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="AGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="AGE_CATEGORY_NAME" nullable="true" remarks="The age category name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LOWER_AGE" nullable="true" remarks="The lower age in years for this age category" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="UPPER_AGE" nullable="true" remarks="The upper age in years for this age category" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="AGE_CATEGORY_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="ALTERNATE_KEY_STATUSES" numRows="0" remarks="Your organization's defined customer alternate key statuses" schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21447&#13;&#10;--FileName=dbo.ALTERNATE_KEY_STATUSES.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.ALTERNATE_KEY_STATUSES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.ALTERNATE_KEY_STATUS_ID,&#13;&#10;    src.ALTERNATE_KEY_STATUS,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.HAS_MEMBERSHIP_PRIVILEGES,&#13;&#10;    src.MAX_INACTIVE_DAYS_BEFORE_SUSPENDED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.ALTERNATE_KEY_STATUSES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="8" type="bigint identity" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ALTERNATE_KEY_STATUS_ID" nullable="true" remarks="Alternate key status ID." size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="ALTERNATE_KEY_STATUS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="ALTERNATE_KEY_STATUS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_ALTERNATE_KEYS"/>
            <child catalog="ActiveHub" column="ALTERNATE_KEY_STATUS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_PREREQUISITE_ALTERNATE_KEY_STATUSES"/>
            <child catalog="ActiveHub" column="ALTERNATE_KEY_STATUS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="ALTERNATE_KEY_STATUS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_LINKS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ALTERNATE_KEY_STATUS" nullable="true" remarks="Alternate key status title." size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="IS_RETIRED" nullable="true" remarks="Whether the alternate key status has been retired (Yes/No)." size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="HAS_MEMBERSHIP_PRIVILEGES" nullable="true" remarks="Whether the alternate key status provides membership privileges (Yes/No)." size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="MAX_INACTIVE_DAYS_BEFORE_SUSPENDED" nullable="true" remarks="The maximum number of days the customer may be inactive before their membership privileges will be suspended." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ALTERNATE_KEY_STATUS_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="ALTERNATE_KEY_TYPES" numRows="0" remarks="Your organization's defined alternate key types" schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21448&#13;&#10;--FileName=dbo.ALTERNATE_KEY_TYPES.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.ALTERNATE_KEY_TYPES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.ALTERNATE_KEY_TYPE_ID,&#13;&#10;    src.ALTERNATE_KEY_TYPE,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.MUST_BE_UNIQUE,&#13;&#10;    src.NUMERIC_ONLY,&#13;&#10;    src.CUSTOMER_SEARCH_CRITERIA,&#13;&#10;    src.USE_AS_DIRECT_ACCESS,&#13;&#10;    src.SHOW_DURING_ACCOUNT_CREATION,&#13;&#10;    src.ALLOW_CUI_LOGIN,&#13;&#10;    src.MAGNETIC_STRIPE,&#13;&#10;    src.TRACK_START_SENTINEL,&#13;&#10;    src.TRACK_END_SENTINEL,&#13;&#10;    src.TRACK_FIELD_SEPARATOR,&#13;&#10;    src.TRACK_FIELD_NUMBER,&#13;&#10;    src.TRACK_FROM_POSITION,&#13;&#10;    src.TRACK_TO_POSITION,&#13;&#10;    src.OPTICAL_BARCODE,&#13;&#10;    src.BARCODE_VALID_LENGTHS,&#13;&#10;    src.BARCODE_FROM_POSITION,&#13;&#10;    src.BARCODE_TO_POSITION,&#13;&#10;    src.BARCODE_IDENTIFIER,&#13;&#10;    src.BARCODE_IDENTIFIER_POSITION,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.ALTERNATE_KEY_TYPES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="8" type="bigint identity" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ALTERNATE_KEY_TYPE_ID" nullable="true" remarks="Alternate key type ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_ALTERNATE_KEYS"/>
            <child catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_PREREQUISITES"/>
            <child catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_LINKS"/>
            <child catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PREREQUISITES"/>
            <child catalog="ActiveHub" column="DEFAULT_CUSTOMER_SCAN_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ALTERNATE_KEY_TYPE" nullable="true" remarks="Alternate key type title" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="IS_RETIRED" nullable="true" remarks="Whether the alternate key status has been retired (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="MUST_BE_UNIQUE" nullable="true" remarks="Whether alternate key values for this type must be unique (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="NUMERIC_ONLY" nullable="true" remarks="Whether alternate key values for this type must be numeric (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOMER_SEARCH_CRITERIA" nullable="true" remarks="Whether this alternate key type should be available as customer search criteria (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="USE_AS_DIRECT_ACCESS" nullable="true" remarks="Whether this alternate key type should be available for direct customer access (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SHOW_DURING_ACCOUNT_CREATION" nullable="true" remarks="Whether this alternate key type should be available for entry during customer account creation (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ALLOW_CUI_LOGIN" nullable="true" remarks="Whether the customer can log in to CUI using this alternate key type (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="MAGNETIC_STRIPE" nullable="true" remarks="Whether access cards for this alternate key type contain a magnetic stripe (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="TRACK_START_SENTINEL" nullable="true" remarks="The start sentinel character for the magnetic stripe track which contains the alternate key identifier value" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="TRACK_END_SENTINEL" nullable="true" remarks="The end sentinel character for the magnetic stripe track which contains the alternate key identifier value" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="TRACK_FIELD_SEPARATOR" nullable="true" remarks="The character that separates the individual field values on the magnetic stripe track which contains the alternate key identifier value" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="TRACK_FIELD_NUMBER" nullable="true" remarks="The field number within the magnetic stripe track which contains the alternate key identifier value" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="TRACK_FROM_POSITION" nullable="true" remarks="The start position within the magnetic stripe track field to obtain the alternate key identifier value" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="TRACK_TO_POSITION" nullable="true" remarks="The end position within the magnetic stripe track field to obtain the alternate key identifier value" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="OPTICAL_BARCODE" nullable="true" remarks="Whether access cards for this alternate key type contain a barcode (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="BARCODE_VALID_LENGTHS" nullable="true" remarks="Valid barcode lengths for this alternate key type" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="BARCODE_FROM_POSITION" nullable="true" remarks="The start position within the barcode value to obtain the alternate key identifier value" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="BARCODE_TO_POSITION" nullable="true" remarks="The end position within the barcode value to obtain the alternate key identifier value" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="BARCODE_IDENTIFIER" nullable="true" remarks="An identifier string which must be contained within the barcode value" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="BARCODE_IDENTIFIER_POSITION" nullable="true" remarks="The start position for the identifier string which must be contained within the barcode value" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="23" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ALTERNATE_KEY_TYPE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="ANET_AHUB_MAPPING" numRows="0" remarks="" schema="dbo" type="VIEW" viewSql="null">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ANET_TABLE_NAME" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="AHUB_TABLE_NAME" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="AHUB_COLUMN_NAME" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="AR_SCHEDULED_DETAILS" numRows="0" remarks="Contains detailed due date information of payment plans where the due date has an outstanding balance" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.AR_SCHEDULED_DETAILS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.AR_SCHEDULED_DETAIL_ID,&#13;&#10;    src.AR_SCHEDULED_HEADER_ID,&#13;&#10;    src.PAYER_CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS PAYER_CUSTOMER_NAME,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_LAST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ', ', ''), cu1.CUSTOMER_FIRST_NAME), '') AS PAYER_CUSTOMER_NAME_LAST_FIRST,&#13;&#10;    src.PAYER_COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME AS PAYER_COMPANY_NAME,&#13;&#10;    src.TRANSACTION_CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu2.CUSTOMER_FIRST_NAME, IIF(cu2.CUSTOMER_FIRST_NAME IS NOT NULL AND cu2.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu2.CUSTOMER_LAST_NAME), '') AS TRANSACTION_CUSTOMER_NAME,&#13;&#10;    NULLIF(CONCAT(cu2.CUSTOMER_LAST_NAME, IIF(cu2.CUSTOMER_FIRST_NAME IS NOT NULL AND cu2.CUSTOMER_LAST_NAME IS NOT NULL, ', ', ''), cu2.CUSTOMER_FIRST_NAME), '') AS TRANSACTION_CUSTOMER_NAME_LAST_FIRST,&#13;&#10;    src.TRANSACTION_COMPANY_ID,&#13;&#10;    co2.COMPANY_NAME AS TRANSACTION_COMPANY_NAME,&#13;&#10;    src.RECEIPT_HEADER_ID,&#13;&#10;    src.RECEIPT_DATE,&#13;&#10;    src.RECEIPT_NUMBER,&#13;&#10;    src.RECEIPT_DETAIL_ID,&#13;&#10;    src.TRANSACTION_ID,&#13;&#10;    src.TRANSACTION_SITE_ID,&#13;&#10;    si1.SITE_NAME AS TRANSACTION_SITE_NAME,&#13;&#10;    src.REVENUE_SITE_ID,&#13;&#10;    si2.SITE_NAME AS REVENUE_SITE_NAME,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.PROGRAM_ID,&#13;&#10;    pr1.PROGRAM_NAME,&#13;&#10;    src.PERMIT_ID,&#13;&#10;    pe1.PERMIT_NUMBER,&#13;&#10;    src.MEMBERSHIP_ID,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    ac1.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    src.POSPRODUCT_ID,&#13;&#10;    ppr.PRODUCT_NAME,&#13;&#10;    src.MODULE,&#13;&#10;    src.DESCRIPTION,&#13;&#10;    src.DATE_DUE,&#13;&#10;    src.AMOUNT_DUE,&#13;&#10;    ISNULL(CASE WHEN DATEDIFF(DAY, src.DATE_DUE, CAST(GETDATE() AS DATE)) &lt; 0 THEN src.AMOUNT_DUE ELSE 0 END, 0) AS AGED_DUE_FUTURE,&#13;&#10;    ISNULL(CASE WHEN DATEDIFF(DAY, src.DATE_DUE, CAST(GETDATE() AS DATE)) = 0 THEN src.AMOUNT_DUE ELSE 0 END, 0) AS AGED_DUE_TODAY,&#13;&#10;    ISNULL(CASE WHEN DATEDIFF(DAY, src.DATE_DUE, CAST(GETDATE() AS DATE)) BETWEEN 1 AND 30 THEN src.AMOUNT_DUE ELSE 0 END, 0) AS AGED_DUE_1_TO_30,&#13;&#10;    ISNULL(CASE WHEN DATEDIFF(DAY, src.DATE_DUE, CAST(GETDATE() AS DATE)) BETWEEN 31 AND 60 THEN src.AMOUNT_DUE ELSE 0 END, 0) AS AGED_DUE_31_TO_60,&#13;&#10;    ISNULL(CASE WHEN DATEDIFF(DAY, src.DATE_DUE, CAST(GETDATE() AS DATE)) BETWEEN 61 AND 90 THEN src.AMOUNT_DUE ELSE 0 END, 0) AS AGED_DUE_61_TO_90,&#13;&#10;    ISNULL(CASE WHEN DATEDIFF(DAY, src.DATE_DUE, CAST(GETDATE() AS DATE)) &gt; 90 THEN src.AMOUNT_DUE ELSE 0 END, 0) AS AGED_DUE_OVER_90,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.AR_SCHEDULED_DETAILS src&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON cu1.CUSTOMER_ID = src.PAYER_CUSTOMER_ID&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON co1.COMPANY_ID = src.PAYER_COMPANY_ID&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu2 ON cu2.CUSTOMER_ID = src.TRANSACTION_CUSTOMER_ID&#13;&#10;    LEFT JOIN hub.COMPANIES co2 ON co2.COMPANY_ID = src.TRANSACTION_COMPANY_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.SITE_ID = src.TRANSACTION_SITE_ID&#13;&#10;    LEFT JOIN hub.SITES si2 ON si2.SITE_ID = src.REVENUE_SITE_ID&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON gl1.GLACCOUNT_ID = src.GLACCOUNT_ID&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON fa1.FACILITY_ID = src.FACILITY_ID&#13;&#10;    LEFT JOIN hub.PROGRAMS pr1 ON pr1.PROGRAM_ID = src.PROGRAM_ID&#13;&#10;    LEFT JOIN hub.PACKAGES pa1 ON pa1.PACKAGE_ID = src.PACKAGE_ID&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON ac1.ACTIVITY_ID = src.ACTIVITY_ID&#13;&#10;    LEFT JOIN hub.PERMITS pe1 ON pe1.PERMIT_ID = src.PERMIT_ID&#13;&#10;    LEFT JOIN hub.POS_PRODUCTS ppr ON ppr.POSPRODUCT_ID = src.POSPRODUCT_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AR_SCHEDULED_DETAIL_ID" nullable="true" remarks="The AR schedule detail ID identifying the payment plan charge" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="AR_SCHEDULED_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_THIRD_PARTY_BILLING_LINKS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="AR_SCHEDULED_HEADER_ID" nullable="true" remarks="The AR schedule header ID identifying the payment plan" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="AR_SCHEDULED_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PAYER_CUSTOMER_ID" nullable="true" remarks="The ID of the customer that is the owner of the payment plan" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PAYER_CUSTOMER_NAME" nullable="true" remarks="The name of the customer that is the owner of the payment plan" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PAYER_CUSTOMER_NAME_LAST_FIRST" nullable="true" remarks="The name of the customer that is the owner of the payment plan (last name, first name)" size="512" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PAYER_COMPANY_ID" nullable="true" remarks="The ID of the company that is the owner of the payment plan" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PAYER_COMPANY_NAME" nullable="true" remarks="The name of the company that is the owner of the payment plan" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="TRANSACTION_CUSTOMER_ID" nullable="true" remarks="The ID of the customer that the payment plan charge is for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="TRANSACTION_CUSTOMER_NAME" nullable="true" remarks="The name of the customer that the payment plan charge is for" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="TRANSACTION_CUSTOMER_NAME_LAST_FIRST" nullable="true" remarks="The name of the customer that the payment plan charge is for (last name, first name)" size="512" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="TRANSACTION_COMPANY_ID" nullable="true" remarks="The ID of the company that the payment plan charge is for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="TRANSACTION_COMPANY_NAME" nullable="true" remarks="The name of the company that the payment plan charge is for" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="RECEIPT_HEADER_ID" nullable="true" remarks="The ID of the receipt that generated the payment plan charge" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="RECEIPT_DATE" nullable="true" remarks="The date of the receipt that generated the payment plan charge" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="RECEIPT_NUMBER" nullable="true" remarks="The number of the receipt that generated the payment plan charge" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="RECEIPT_DETAIL_ID" nullable="true" remarks="The ID of the receipt detail item that generated the payment plan charge" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="TRANSACTION_ID" nullable="true" remarks="The ID of the transaction that generated the payment plan charge" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="TRANSACTION_SITE_ID" nullable="true" remarks="The transaction site ID where the payment plan charge was generated" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="TRANSACTION_SITE_NAME" nullable="true" remarks="The transaction site name where the payment plan charge was generated" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="REVENUE_SITE_ID" nullable="true" remarks="The revenue site ID that the payment plan charge was generated for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="REVENUE_SITE_NAME" nullable="true" remarks="The revenue site name that the payment plan charge was generated for" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="GLACCOUNT_ID" nullable="true" remarks="The revenue GL account ID that the payment plan charge was generated for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="GL_ACCOUNT_NAME" nullable="true" remarks="The revenue GL account name that the payment plan charge was generated for" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="The revenue GL account number that the payment plan charge was generated for" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="FACILITY_ID" nullable="true" remarks="The facility ID that the payment plan charge was generated for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="FACILITY_NAME" nullable="true" remarks="The facility name that the payment plan charge was generated for" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="PROGRAM_ID" nullable="true" remarks="The program ID that the payment plan charge was generated for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="PROGRAM_NAME" nullable="true" remarks="The program name that the payment plan charge was generated for" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="PERMIT_ID" nullable="true" remarks="The ID of the permit that the payment plan charge was generated for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="PERMIT_NUMBER" nullable="true" remarks="The permit number that the payment plan charge was generated for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="MEMBERSHIP_ID" nullable="true" remarks="The ID of the membership that the payment plan charge was generated for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="PACKAGE_ID" nullable="true" remarks="The package ID that the payment plan charge was generated for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="PACKAGE_NAME" nullable="true" remarks="The package name that the payment plan charge was generated for" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="ACTIVITY_ID" nullable="true" remarks="The activity ID that the payment plan charge was generated for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="ACTIVITY_NAME" nullable="true" remarks="The activity name that the payment plan charge was generated for" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="ACTIVITY_NUMBER" nullable="true" remarks="The activity number that the payment plan charge was generated for" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="POSPRODUCT_ID" nullable="true" remarks="The POS product ID that the payment plan charge was generated for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="PRODUCT_NAME" nullable="true" remarks="The POS product name that the payment plan charge was generated for" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="MODULE" nullable="true" remarks="The system module that the payment plan charge belongs to (Activities / Programs / Facilities / Memberships / POS / Other)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="DESCRIPTION" nullable="true" remarks="The description of the payment plan charge" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="DATE_DUE" nullable="true" remarks="The date that the payment plan charge will be or was due on" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="41" name="AMOUNT_DUE" nullable="true" remarks="The amount that is owed whether due now or in the future" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="42" name="AGED_DUE_FUTURE" nullable="false" remarks="The amount that is due in the future" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="43" name="AGED_DUE_TODAY" nullable="false" remarks="The amount that is specifically due today" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="44" name="AGED_DUE_1_TO_30" nullable="false" remarks="The amount that has been due for 1 to 30 days" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="45" name="AGED_DUE_31_TO_60" nullable="false" remarks="The amount that has been due for 31 to 60 days" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="46" name="AGED_DUE_61_TO_90" nullable="false" remarks="The amount that has been due for 61 to 90 days" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="47" name="AGED_DUE_OVER_90" nullable="false" remarks="The amount that has been due for greater than 90 days" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="49" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="AR_SCHEDULED_HEADER_ID" sequenceNumberInPK="1"/>
         <primaryKey column="AR_SCHEDULED_DETAIL_ID" sequenceNumberInPK="2"/>
         <primaryKey column="DATE_DUE" sequenceNumberInPK="3"/>
      </table>
      <table catalog="ActiveHub" name="AR_SCHEDULED_HEADERS" numRows="0" remarks="Contains summary information of payment plans which have an outstanding balance" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.AR_SCHEDULED_HEADERS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.AR_SCHEDULED_HEADER_ID,&#13;&#10;    src.RECEIPT_PAYMENT_ID,&#13;&#10;    src.RECEIPT_HEADER_ID,&#13;&#10;    src.RECEIPT_DATE,&#13;&#10;    src.RECEIPT_NUMBER,&#13;&#10;    src.PAYER_CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS PAYER_CUSTOMER_NAME,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_LAST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ', ', ''), cu1.CUSTOMER_FIRST_NAME), '') AS PAYER_CUSTOMER_NAME_LAST_FIRST,&#13;&#10;    src.PAYER_COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME AS PAYER_COMPANY_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    NULLIF(CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME), '') AS SYSTEM_USER_NAME,&#13;&#10;    src.CREATED_DATE_TIME,&#13;&#10;    CAST(src.CREATED_DATE_TIME AS DATE) AS CREATED_DATE_ONLY,&#13;&#10;    src.ORIGINAL_AMOUNT,&#13;&#10;    src.BILLING_TYPE,&#13;&#10;    src.FIRST_PAYMENT_DATE,&#13;&#10;    src.NUMBER_OF_PAYMENTS,&#13;&#10;    src.AVERAGE_AMOUNT,&#13;&#10;    src.AUTO_PAYMENT_TYPE,&#13;&#10;    src.SAVED_CREDIT_CARD_ID,&#13;&#10;    ct1.CARD_TYPE_NAME AS CARD_TYPE,&#13;&#10;    scc.CARD_NUMBER,&#13;&#10;    scc.CARD_EXPIRATION,&#13;&#10;    scc.BANK_ROUTING_NUMBER,&#13;&#10;    scc.BANK_ACCOUNT_TYPE,&#13;&#10;    scc.BANK_ACCOUNT_NUMBER,&#13;&#10;    src.AUTO_PAYMENT_SUSPENDED,&#13;&#10;    src.PERMIT_ID,&#13;&#10;    pe1.PERMIT_NUMBER,&#13;&#10;    src.MEMBERSHIP_ID,&#13;&#10;    src.CURRENT_DUE_AMOUNT,&#13;&#10;    src.FUTURE_DUE_AMOUNT,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.AR_SCHEDULED_HEADERS src&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = src.PAYER_CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.COMPANY_ID = src.PAYER_COMPANY_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.PERMITS pe1 ON (pe1.PERMIT_ID = src.PERMIT_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.SAVED_CREDIT_CARDS scc ON (scc.SAVED_CREDIT_CARD_ID = src.SAVED_CREDIT_CARD_ID)&#13;&#10;    LEFT JOIN hub.CARD_TYPES ct1 ON (ct1.CARD_TYPE_ID = scc.CARD_TYPE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AR_SCHEDULED_HEADER_ID" nullable="true" remarks="The AR schedule header ID identifying the payment plan" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="AR_SCHEDULED_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="AR_SCHEDULED_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CREDIT_CARD_PROCESSING_LOG"/>
            <child catalog="ActiveHub" column="AR_SCHEDULED_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_THIRD_PARTY_BILLING_LINKS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="CARD_TYPE_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CARD_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="RECEIPT_PAYMENT_ID" nullable="true" remarks="The receipt payment ID that generated the payment plan" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="RECEIPT_HEADER_ID" nullable="true" remarks="The ID receipt that generated the payment plan" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="RECEIPT_DATE" nullable="true" remarks="The date of the receipt that generated the payment plan" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="RECEIPT_NUMBER" nullable="true" remarks="The number of the receipt that generated the payment plan" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PAYER_CUSTOMER_ID" nullable="true" remarks="The ID of the customer that is the payer of the payment plan" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PAYER_CUSTOMER_NAME" nullable="true" remarks="The name of the customer that is the payer of the payment plan" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="PAYER_CUSTOMER_NAME_LAST_FIRST" nullable="true" remarks="The name of the customer that is the payer of the payment plan (last name, first name)" size="512" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="PAYER_COMPANY_ID" nullable="true" remarks="The ID of the company that is the payer of the payment plan" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="PAYER_COMPANY_NAME" nullable="true" remarks="The name of the company that is the payer of the payment plan" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="SITE_ID" nullable="true" remarks="The site ID where the payment plan was generated" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="SITE_NAME" nullable="true" remarks="The site name where the payment plan was generated" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="WORKSTATION_ID" nullable="true" remarks="The workstation ID where the payment plan was generated" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="WORKSTATION_NAME" nullable="true" remarks="The workstation name where the payment plan was generated" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="SYSTEMUSER_ID" nullable="true" remarks="The user ID who generated the payment plan" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="SYSTEM_USER_NAME" nullable="true" remarks="The name of the user who generated the payment plan" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="CREATED_DATE_TIME" nullable="true" remarks="The date and time that the payment plan was generated" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="CREATED_DATE_ONLY" nullable="true" remarks="The date that the payment plan was generated" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="18" name="ORIGINAL_AMOUNT" nullable="true" remarks="The original total of the payment plan" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="BILLING_TYPE" nullable="true" remarks="The billing type used to generate the payment plan (None / Weekly / Every other week / Twice a month / Monthly / Quarterly / Every four weeks / Custom / Per Session)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="FIRST_PAYMENT_DATE" nullable="true" remarks="The first payment due date for the payment plan" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="NUMBER_OF_PAYMENTS" nullable="true" remarks="The number of scheduled payments for the payment plan" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="22" name="AVERAGE_AMOUNT" nullable="true" remarks="The average scheduled amount for the payment plan" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="AUTO_PAYMENT_TYPE" nullable="true" remarks="The automatic payment type for the payment plan (None / Credit Card / ECP / Manual Deduction)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="SAVED_CREDIT_CARD_ID" nullable="true" remarks="ID of the saved credit card or electronic check to be used for scheduled automatic payments" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="CARD_TYPE" nullable="true" remarks="Name of the credit card type to be used for scheduled automatic payments" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="CARD_NUMBER" nullable="true" remarks="Masked credit card number to be used for scheduled automatic payments" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="CARD_EXPIRATION" nullable="true" remarks="Credit card expiration date (mm/yyyy) to be used for scheduled automatic payments" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="BANK_ROUTING_NUMBER" nullable="true" remarks="Bank routing number to be used for scheduled automatic payments" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="BANK_ACCOUNT_TYPE" nullable="true" remarks="Bank account type to be used for scheduled automatic payments" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="BANK_ACCOUNT_NUMBER" nullable="true" remarks="Bank account number to be used for scheduled automatic payments" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="AUTO_PAYMENT_SUSPENDED" nullable="true" remarks="Whether automatic payments are suspended for the payment plan (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="PERMIT_ID" nullable="true" remarks="The permit ID that the payment plan was generated for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PERMIT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PERMITS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="PERMIT_NUMBER" nullable="true" remarks="The permit number that the payment plan was generated for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="MEMBERSHIP_ID" nullable="true" remarks="The membership ID that the payment plan was generated for, but only if no other charge types or other memberships are included in the payment plan" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="MEMBERSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="35" name="CURRENT_DUE_AMOUNT" nullable="true" remarks="The current amount due total of the payment plan" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="36" name="FUTURE_DUE_AMOUNT" nullable="true" remarks="The future amount due total of the payment plan" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="38" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="AR_SCHEDULED_HEADER_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="AR_TRANSACTIONS" numRows="0" remarks="AR transaction data.  Does not include voided records." schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.AR_TRANSACTIONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.ARTRANSACTION_ID AS AR_TRANSACTION_ID,&#13;&#10;    src.ORIGINALARTRANSACTION_ID AS ORIGINAL_TRANSACTION_ID,&#13;&#10;    src.RECEIPTHEADER_ID AS RECEIPT_HEADER_ID,&#13;&#10;    src.ARSCHEDULEHEADER_ID AS AR_SCHEDULE_HEADER_ID,&#13;&#10;    src.RECEIPTDETAIL_ID AS RECEIPT_DETAIL_ID,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME) AS CUSTOMER_NAME,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.TRANSACTIONCUSTOMER_ID AS TRANSACTION_CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu2.CUSTOMER_FIRST_NAME, IIF(cu2.CUSTOMER_FIRST_NAME IS NOT NULL AND cu2.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu2.CUSTOMER_LAST_NAME), '') AS TRANSACTION_CUSTOMER_NAME,&#13;&#10;    src.TRANSACTIONCOMPANY_ID AS TRANSACTION_COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME AS TRANSACTION_COMPANY_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME AS SITE_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    src.TRANSACTIONTYPE AS TRANSACTION_TYPE_ID,&#13;&#10;    rv4.REFERENCE_VALUE AS TRANSACTION_TYPE,&#13;&#10;&#9;src.AMOUNT,&#13;&#10;&#9;src.DESCRIPTION,&#13;&#10;&#9;src.DATEDUE,&#13;&#10;&#9;src.DATESTAMP,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.ARTRANSACTION_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.ARTRANSACTIONS src&#13;&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON (rh1.ORG_ID = src.ORG_ID AND rh1.RECEIPT_HEADER_ID = src.RECEIPTHEADER_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.SITE_ID)&#13;&#10;    --LEFT JOIN hub.SITES si2 ON (si2.ORG_ID = src.ORG_ID AND si2.SITE_ID = src.REVENUE_SITE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu2 ON (cu2.ORG_ID = src.ORG_ID AND cu2.CUSTOMER_ID = src.TRANSACTIONCUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.ORG_ID = src.ORG_ID AND co1.COMPANY_ID = src.COMPANY_ID)&#13;&#10;    --LEFT JOIN hub.ACTIVITIES ac1 ON (ac1.ORG_ID = src.ORG_ID AND ac1.ACTIVITY_ID = src.ACTIVITY_ID)&#13;&#10;    --LEFT JOIN hub.FACILITIES fa1 ON (fa1.ORG_ID = src.ORG_ID AND fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    --LEFT JOIN hub.PROGRAMS pr1 ON (pr1.ORG_ID = src.ORG_ID AND pr1.PROGRAM_ID = src.PROGRAM_ID)&#13;&#10;    --LEFT JOIN hub.SESSIONS se1 ON (se1.ORG_ID = src.ORG_ID AND se1.SESSION_ID = src.SESSION_ID)&#13;&#10;    --LEFT JOIN hub.PACKAGES pa1 ON (pa1.ORG_ID = src.ORG_ID AND pa1.PACKAGE_ID = src.PACKAGE_ID)&#13;&#10;    --LEFT JOIN hub.PERMITS pe1 ON (pe1.ORG_ID = src.ORG_ID AND pe1.PERMIT_ID = src.PERMIT_ID)&#13;&#10;    --LEFT JOIN hub.POS_PRODUCTS ppr ON (ppr.ORG_ID = src.ORG_ID AND ppr.POSPRODUCT_ID = src.POSPRODUCT_ID)&#13;&#10;    --LEFT JOIN hub.CAMPAIGNS ca1 ON (ca1.ORG_ID = src.ORG_ID AND ca1.CAMPAIGN_ID = src.CAMPAIGN_ID)&#13;&#10;    --LEFT JOIN hub.REASONS re1 ON (re1.ORG_ID = src.ORG_ID AND re1.REASON_ID = src.CANCEL_REASON_ID)&#13;&#10;    --LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    --LEFT JOIN hub.PREP_CODES pc1 ON (pc1.ORG_ID = src.ORG_ID AND pc1.PREP_CODE_ID = src.PREP_CODE_ID)&#13;&#10;    --LEFT JOIN hub.SCHEDULE_TYPES st1 ON (st1.ORG_ID = src.ORG_ID AND st1.SCHEDULE_TYPE_ID = src.SCHEDULE_TYPE_ID)&#13;&#10;    --LEFT JOIN hub.EVENT_TYPES et1 ON (et1.ORG_ID = src.ORG_ID AND et1.EVENT_TYPE_ID = src.EVENT_TYPE_ID)&#13;&#10;    --LEFT JOIN hub.ACTIVITY_PASS_FAIL_GRADES apfg ON (apfg.ORG_ID = src.ORG_ID AND apfg.ACTIVITY_PASS_FAIL_GRADE_ID = src.PASS_OR_FAIL_GRADE_ID)&#13;&#10;    LEFT JOIN hub.REFERENCE_VALUES rv4 ON (rv4.ORG_ID = src.ORG_ID AND rv4.REFERENCE_ID = src.TRANSACTIONTYPE AND rv4.REFERENCE_TABLE = 'ar_transaction' AND rv4.REFERENCE_COLUMN = 'ar_transaction_type')&#13;&#10;WHERE&#13;&#10;    src.VOIDED = 0;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AR_TRANSACTION_ID" nullable="false" remarks="Unique ID of the table" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORIGINAL_TRANSACTION_ID" nullable="true" remarks="The original AR transaction ID for a series of transactions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="RECEIPT_HEADER_ID" nullable="true" remarks="ID of the receipt header that the transaction belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="AR_SCHEDULE_HEADER_ID" nullable="true" remarks="The AR schedule header ID identifying the payment plan" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="RECEIPT_DETAIL_ID" nullable="true" remarks="The AR schedule detail ID identifying the payment plan charge" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMER_ID" nullable="true" remarks="ID of the customer who is the participant of the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOMER_NAME" nullable="false" remarks="Customer Name" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="COMPANY_ID" nullable="true" remarks="ID of the company who is the owner of the transaction if applicable" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="COMPANY_NAME" nullable="true" remarks="Company Name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="TRANSACTION_CUSTOMER_ID" nullable="true" remarks="The ID of the transacted customer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="TRANSACTION_CUSTOMER_NAME" nullable="true" remarks="The name of the transacted customer" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="TRANSACTION_COMPANY_ID" nullable="true" remarks="The ID of the transacted company" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="TRANSACTION_COMPANY_NAME" nullable="true" remarks="The name of the transacted company" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="SITE_ID" nullable="true" remarks="The ID of the site that the transaction occurred at" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="SITE_NAME" nullable="true" remarks="Name of the site where the transaction was done" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the user who created the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the user who created the transaction" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="TRANSACTION_TYPE_ID" nullable="true" remarks="The transaction type ID of the transaction" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="TRANSACTION_TYPE" nullable="true" remarks="The transaction type description of the transaction" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="19" name="AMOUNT" nullable="true" remarks="Total charged amount for the transaction" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="DESCRIPTION" nullable="true" remarks="The charge description of this AR transaction" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="21" name="DATEDUE" nullable="true" remarks="The date that the payment plan charge will be or was due on" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="22" name="DATESTAMP" nullable="true" remarks="The date and time that the transaction was created" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="23" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="source_id" nullable="false" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="CAMPAIGNS" numRows="0" remarks="Your organization's defined campaigns" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CAMPAIGNS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.CAMPAIGN_ID,&#13;&#10;    src.CAMPAIGN_NAME,&#13;&#10;    src.CAMPAIGN_STATUS,&#13;&#10;    src.CAMPAIGN_DESCRIPTION,&#13;&#10;    src.DATE_CREATED,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.SHOW_ONLINE,&#13;&#10;    src.CUSTOMER_NOTES,&#13;&#10;    src.EXCLUDE_FROM_PAYMENT_PLAN,&#13;&#10;    src.ACCEPT_RECURRING_DONATIONS,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.FUND_SCHOLARSHIP_CHARGE_ID,&#13;&#10;    ch1.CHARGE_NAME AS FUND_SCHOLARSHIP_CHARGE_NAME,&#13;&#10;    src.START_DATE,&#13;&#10;    src.END_DATE,&#13;&#10;    src.ALLOW_CUSTOM_AMOUNT,&#13;&#10;    src.GOAL_AMOUNT,&#13;&#10;    src.CAMPAIGN_IMAGE_FILE_ID,&#13;&#10;    uf1.DISPLAY_NAME AS CAMPAIGN_IMAGE_FILE_NAME,&#13;&#10;    src.SHOW_IMAGE_ONLINE,&#13;&#10;    src.SHOW_GOAL_ONLINE,&#13;&#10;    src.SHOW_ACTUAL_AMOUNT_ONLINE,&#13;&#10;    src.SYSTEM_GL_ACCOUNT_PACKAGE_ID,&#13;&#10;    sgap.SYSTEM_GL_ACCOUNT_PACKAGE_NAME,&#13;&#10;    src.TOTAL_AMOUNT_RAISED,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CAMPAIGNS src&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.GLACCOUNT_ID = src.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.CHARGES ch1 ON (ch1.CHARGE_ID = src.FUND_SCHOLARSHIP_CHARGE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf1 ON (uf1.UPLOADED_FILE_ID = src.CAMPAIGN_IMAGE_FILE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_GL_ACCOUNT_PACKAGES sgap ON (sgap.SYSTEM_GL_ACCOUNT_PACKAGE_ID = src.SYSTEM_GL_ACCOUNT_PACKAGE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CAMPAIGN_ID" nullable="true" remarks="The campaign record ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CAMPAIGN_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CAMPAIGN_NAME" nullable="true" remarks="The name of the campaign" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CAMPAIGN_STATUS" nullable="true" remarks="The status of the campaign (Open/Closed)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CAMPAIGN_DESCRIPTION" nullable="true" remarks="The description of the campaign" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="DATE_CREATED" nullable="true" remarks="The date that the campaign was created" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="GLACCOUNT_ID" nullable="true" remarks="The ID of the GL account that contributions to the campaign will be posted to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="GL_ACCOUNT_NAME" nullable="true" remarks="The name of the GL account that contributions to the campaign will be posted to" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="The number of the GL account that contributions to the campaign will be posted to" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SHOW_ONLINE" nullable="true" remarks="Whether the campaign should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CUSTOMER_NOTES" nullable="true" remarks="Customer notes for this campaign" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="EXCLUDE_FROM_PAYMENT_PLAN" nullable="true" remarks="Whether contributions to the campaign should be excluded from payment plans (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACCEPT_RECURRING_DONATIONS" nullable="true" remarks="Whether recurring contributions should be allowed for the campaign (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="SITE_ID" nullable="true" remarks="The ID of the site that the campaign belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="SITE_NAME" nullable="true" remarks="The name of the site that the campaign belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="FUND_SCHOLARSHIP_CHARGE_ID" nullable="true" remarks="The ID of the scholarship charge to be used to fund the campaign" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="FUND_SCHOLARSHIP_CHARGE_NAME" nullable="true" remarks="The name of the scholarship charge to be used to fund the campaign" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="START_DATE" nullable="true" remarks="The starting date of the campaign" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="END_DATE" nullable="true" remarks="The ending date of the campaign" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ALLOW_CUSTOM_AMOUNT" nullable="true" remarks="Whether custom contribution amounts should be allowed for the campaign (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="19" name="GOAL_AMOUNT" nullable="true" remarks="The goal amount for the campaign" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="CAMPAIGN_IMAGE_FILE_ID" nullable="true" remarks="The file ID for the campaign image" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="CAMPAIGN_IMAGE_FILE_NAME" nullable="true" remarks="The file name for the campaign image" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="SHOW_IMAGE_ONLINE" nullable="true" remarks="Whether the campaign image should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="SHOW_GOAL_ONLINE" nullable="true" remarks="Whether the campaign goal amount should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="SHOW_ACTUAL_AMOUNT_ONLINE" nullable="true" remarks="Whether the total campaign contribution amount should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID" nullable="true" remarks="System account package ID for the campaign." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="SYSTEM_GL_ACCOUNT_PACKAGE_NAME" nullable="true" remarks="System account package name for the campaign." size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="27" name="TOTAL_AMOUNT_RAISED" nullable="true" remarks="The total amount contributed to the campaign" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="29" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CAMPAIGN_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CARD_TYPES" numRows="0" remarks="Your organization's defined card types" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CARD_TYPES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.CARD_TYPE_ID,&#13;&#10;    src.CARD_TYPE_NAME,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CARD_TYPES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CARD_TYPE_ID" nullable="false" remarks="The card type ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_HEADERS"/>
            <child catalog="ActiveHub" column="CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRELIMINARY_DRAFTS"/>
            <child catalog="ActiveHub" column="CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SAVED_CREDIT_CARD_HISTORY"/>
            <child catalog="ActiveHub" column="CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SAVED_CREDIT_CARDS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CARD_TYPE_NAME" nullable="true" remarks="The card type name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="IS_RETIRED" nullable="true" remarks="Whether this card type has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="3" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CARD_TYPE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CASH_SUMMARY_SHEET_LAYOUTS" numRows="0" remarks="Your organization's defined cash summary sheet layouts" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CASH_SUMMARY_SHEET_LAYOUTS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.CASH_SUMMARY_SHEET_LAYOUT_ID,&#13;&#10;    src.CASH_SUMMARY_SHEET_LAYOUT_NAME,&#13;&#10;    src.REQUIRE_DEPOSIT_SLIP_NUMBER,&#13;&#10;    src.RECORD_OVER_SHORT_JOURNAL_ENTRY,&#13;&#10;    src.OVER_CREDIT_GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS OVER_CREDIT_GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS OVER_CREDIT_GL_ACCOUNT_NUMBER,&#13;&#10;    src.OVER_DEBIT_GLACCOUNT_ID,&#13;&#10;    gl2.ACCOUNTNAME AS OVER_DEBIT_GL_ACCOUNT_NAME,&#13;&#10;    gl2.ACCOUNTNUMBER AS OVER_DEBIT_GL_ACCOUNT_NUMBER,&#13;&#10;    src.SHORT_CREDIT_GLACCOUNT_ID,&#13;&#10;    gl3.ACCOUNTNAME AS SHORT_CREDIT_GL_ACCOUNT_NAME,&#13;&#10;    gl3.ACCOUNTNUMBER AS SHORT_CREDIT_GL_ACCOUNT_NUMBER,&#13;&#10;    src.SHORT_DEBIT_GLACCOUNT_ID,&#13;&#10;    gl4.ACCOUNTNAME AS SHORT_DEBIT_GL_ACCOUNT_NAME,&#13;&#10;    gl4.ACCOUNTNUMBER AS SHORT_DEBIT_GL_ACCOUNT_NUMBER,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CASH_SUMMARY_SHEET_LAYOUTS src&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.GLACCOUNT_ID = src.OVER_CREDIT_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl2 ON (gl2.GLACCOUNT_ID = src.OVER_DEBIT_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl3 ON (gl3.GLACCOUNT_ID = src.SHORT_CREDIT_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl4 ON (gl4.GLACCOUNT_ID = src.SHORT_DEBIT_GLACCOUNT_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CASH_SUMMARY_SHEET_LAYOUT_ID" nullable="false" remarks="The cash summary sheet layout ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CASH_SUMMARY_SHEET_LAYOUT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CASH_SUMMARY_SHEET_LAYOUT_NAME" nullable="true" remarks="The cash summary sheet layout name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="REQUIRE_DEPOSIT_SLIP_NUMBER" nullable="true" remarks="Whether deposit slip numbers are required for this cash summary sheet layout (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="RECORD_OVER_SHORT_JOURNAL_ENTRY" nullable="true" remarks="Whether over and short journal entries may be recorded for this cash summary sheet layout (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="OVER_CREDIT_GLACCOUNT_ID" nullable="true" remarks="The GL account ID that credits for till overages should post to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="OVER_CREDIT_GL_ACCOUNT_NAME" nullable="true" remarks="The GL account name that credits for till overages should post to" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="OVER_CREDIT_GL_ACCOUNT_NUMBER" nullable="true" remarks="The GL account number that credits for till overages should post to" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="OVER_DEBIT_GLACCOUNT_ID" nullable="true" remarks="The GL account ID that debits for till overages should post to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="OVER_DEBIT_GL_ACCOUNT_NAME" nullable="true" remarks="The GL account name that debits for till overages should post to" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="OVER_DEBIT_GL_ACCOUNT_NUMBER" nullable="true" remarks="The GL account number that debits for till overages should post to" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="SHORT_CREDIT_GLACCOUNT_ID" nullable="true" remarks="The GL account ID that credits for till shortages should post to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="SHORT_CREDIT_GL_ACCOUNT_NAME" nullable="true" remarks="The GL account name that credits for till shortages should post to" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="SHORT_CREDIT_GL_ACCOUNT_NUMBER" nullable="true" remarks="The GL account number that credits for till shortages should post to" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="SHORT_DEBIT_GLACCOUNT_ID" nullable="true" remarks="The GL account ID that debits for till shortages should post to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="SHORT_DEBIT_GL_ACCOUNT_NAME" nullable="true" remarks="The GL account name that debits for till shortages should post to" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="SHORT_DEBIT_GL_ACCOUNT_NUMBER" nullable="true" remarks="The GL account number that debits for till shortages should post to" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="IS_RETIRED" nullable="true" remarks="Whether this cash summary sheet layout has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="17" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CASH_SUMMARY_SHEET_LAYOUT_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CENTERS" numRows="0" remarks="Your organization's defined centers" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CENTERS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CENTER_ID,&#13;&#10;    src.CENTER_NAME,&#13;&#10;    src.CENTER_DESCRIPTION,&#13;&#10;    src.CENTER_NOTES,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.ADDRESS1,&#13;&#10;    src.ADDRESS2,&#13;&#10;    src.CITY,&#13;&#10;    src.STATE,&#13;&#10;    src.ZIPCODE,&#13;&#10;    src.COUNTRY,&#13;&#10;    src.PHONE1,&#13;&#10;    src.PHONE2,&#13;&#10;    src.PHONE_FAX,&#13;&#10;    src.GEOGRAPHIC_AREA_ID,&#13;&#10;    ga1.GEOGRAPHIC_AREA_NAME AS GEOGRAPHIC_AREA,&#13;&#10;    src.LATITUDE,&#13;&#10;    src.LONGITUDE,&#13;&#10;    src.SUPERVISOR_ID,&#13;&#10;    CONCAT(cu2.CUSTOMER_FIRST_NAME, IIF(cu2.CUSTOMER_FIRST_NAME IS NOT NULL AND cu2.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu2.CUSTOMER_LAST_NAME) AS SUPERVISOR_NAME,&#13;&#10;    src.WEB_PAGE_URL,&#13;&#10;    src.THUMBNAIL_URL,&#13;&#10;    src.CENTER_SIZE,&#13;&#10;    src.ADA_COMPLIANCE,&#13;&#10;    src.PARKING_CAPACITY,&#13;&#10;    src.LIGHTING_ID,&#13;&#10;    src.IS_MAP_ENABLED,&#13;&#10;    src.DEFAULT_OPEN_TIME,&#13;&#10;    src.DEFAULT_CLOSE_TIME,&#13;&#10;    src.MONDAY_OPEN_TIME,&#13;&#10;    src.MONDAY_CLOSE_TIME,&#13;&#10;    src.MONDAY_CLOSED,&#13;&#10;    src.TUESDAY_OPEN_TIME,&#13;&#10;    src.TUESDAY_CLOSE_TIME,&#13;&#10;    src.TUESDAY_CLOSED,&#13;&#10;    src.WEDNESDAY_OPEN_TIME,&#13;&#10;    src.WEDNESDAY_CLOSE_TIME,&#13;&#10;    src.WEDNESDAY_CLOSED,&#13;&#10;    src.THURSDAY_OPEN_TIME,&#13;&#10;    src.THURSDAY_CLOSE_TIME,&#13;&#10;    src.THURSDAY_CLOSED,&#13;&#10;    src.FRIDAY_OPEN_TIME,&#13;&#10;    src.FRIDAY_CLOSE_TIME,&#13;&#10;    src.FRIDAY_CLOSED,&#13;&#10;    src.SATURDAY_OPEN_TIME,&#13;&#10;    src.SATURDAY_CLOSE_TIME,&#13;&#10;    src.SATURDAY_CLOSED,&#13;&#10;    src.SUNDAY_OPEN_TIME,&#13;&#10;    src.SUNDAY_CLOSE_TIME,&#13;&#10;    src.SUNDAY_CLOSED,&#13;&#10;    src.OVERRIDE_RETURNING_RENTER_CRITERIA,&#13;&#10;    src.FACILITY_RETURNING_RENTER_RESERVATION_CRITERIA,&#13;&#10;    src.FACILITY_RETURNING_RENTER_TIME_CRITERIA,&#13;&#10;    src.FACILITY_RETURNING_RENTER_TIME_CRITERIA_OTHER_VALUE,&#13;&#10;    src.FACILITY_RETURNING_RENTER_TIME_CRITERIA_OTHER_UNIT,&#13;&#10;    src.LOCKER_RETURNING_RENTER_RESERVATION_CRITERIA,&#13;&#10;    src.LOCKER_RETURNING_RENTER_TIME_CRITERIA,&#13;&#10;    src.LOCKER_RETURNING_RENTER_TIME_CRITERIA_OTHER_VALUE,&#13;&#10;    src.LOCKER_RETURNING_RENTER_TIME_CRITERIA_OTHER_UNIT,&#13;&#10;    src.RETIRED,&#13;&#10;    src.HIDE_ON_INTERNET_REGISTRATION,&#13;&#10;    src.HIDE_ON_INTERNET_RESERVATION,&#13;&#10;    src.SHOW_ON_CAPTIVATE_APP,&#13;&#10;    src.IMAGE_ON_CAPTIVATE_APP,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CENTERS src&#13;&#10;    LEFT OUTER JOIN hub.SITES si1 ON (src.SITE_ID = si1.SITE_ID)&#13;&#10;    LEFT OUTER JOIN hub.SUPERVISORS su1 ON (src.SUPERVISOR_ID = su1.SUPERVISOR_ID)&#13;&#10;    LEFT OUTER JOIN hub.CUSTOMERS cu2 ON (su1.CUSTOMER_ID = cu2.CUSTOMER_ID)&#13;&#10;    LEFT OUTER JOIN hub.GEOGRAPHIC_AREAS ga1 ON (ga1.GEOGRAPHIC_AREA_ID = src.GEOGRAPHIC_AREA_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CENTER_ID" nullable="true" remarks="The center record ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHILD_WATCH_ROOMS"/>
            <child catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
            <child catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_ROOMS"/>
            <child catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS_CENTER_QUANTITY"/>
            <child catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RESERVATION_GROUPS"/>
            <child catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STANDARD_CHARGES"/>
            <child catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CENTER_NAME" nullable="true" remarks="The name of the center" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CENTER_DESCRIPTION" nullable="true" remarks="The description of the center" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CENTER_NOTES" nullable="true" remarks="User entered notes related to the center" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SITE_ID" nullable="true" remarks="The ID of the site that the center belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SITE_NAME" nullable="true" remarks="The name of the site that the center belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ADDRESS1" nullable="true" remarks="The first address line of the center." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ADDRESS2" nullable="true" remarks="The second address line of the center." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CITY" nullable="true" remarks="The city of the center." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="STATE" nullable="true" remarks="The state of the center." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ZIPCODE" nullable="true" remarks="The zip code of the center." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="COUNTRY" nullable="true" remarks="The country of the center." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="PHONE1" nullable="true" remarks="The center's first phone number" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PHONE2" nullable="true" remarks="The center's second phone number" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="PHONE_FAX" nullable="true" remarks="The center's fax phone number" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="GEOGRAPHIC_AREA_ID" nullable="true" remarks="The center's geographic area ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GEOGRAPHIC_AREA_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GEOGRAPHIC_AREAS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="GEOGRAPHIC_AREA" nullable="true" remarks="The center's geographic area description" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="18" name="LATITUDE" nullable="true" remarks="The latitude of the center's address." size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="19" name="LONGITUDE" nullable="true" remarks="The longitude of the center's address." size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="SUPERVISOR_ID" nullable="true" remarks="The ID of the center's supervisor" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SUPERVISOR_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SUPERVISORS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="SUPERVISOR_NAME" nullable="false" remarks="The name of the center's supervisor" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="WEB_PAGE_URL" nullable="true" remarks="The web site URL to be displayed for this center" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="THUMBNAIL_URL" nullable="true" remarks="The thumbnail URL to be displayed for this center" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="CENTER_SIZE" nullable="true" remarks="A description of the size of this center" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ADA_COMPLIANCE" nullable="true" remarks="A description of the ADA compliance of this center" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="PARKING_CAPACITY" nullable="true" remarks="The parking capacity at this center" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="LIGHTING_ID" nullable="true" remarks="The lighting system integration ID for this center" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="IS_MAP_ENABLED" nullable="true" remarks="Whether map display is enabled for this center (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="DEFAULT_OPEN_TIME" nullable="true" remarks="The default daily opening time of the center" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="DEFAULT_CLOSE_TIME" nullable="true" remarks="The default daily closing time of the center" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="MONDAY_OPEN_TIME" nullable="true" remarks="The Monday opening time of the center if different than the default" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="MONDAY_CLOSE_TIME" nullable="true" remarks="The Monday closing time of the center if different than the default" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="MONDAY_CLOSED" nullable="true" remarks="Whether the center is closed on Mondays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="TUESDAY_OPEN_TIME" nullable="true" remarks="The Tuesday opening time of the center if different than the default" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="TUESDAY_CLOSE_TIME" nullable="true" remarks="The Tuesday closing time of the center if different than the default" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="TUESDAY_CLOSED" nullable="true" remarks="Whether the center is closed on Tuesdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="WEDNESDAY_OPEN_TIME" nullable="true" remarks="The Wednesday opening time of the center if different than the default" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="WEDNESDAY_CLOSE_TIME" nullable="true" remarks="The Wednesday closing time of the center if different than the default" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="WEDNESDAY_CLOSED" nullable="true" remarks="Whether the center is closed on Wednesdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="THURSDAY_OPEN_TIME" nullable="true" remarks="The Thursday opening time of the center if different than the default" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="THURSDAY_CLOSE_TIME" nullable="true" remarks="The Thursday closing time of the center if different than the default" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="THURSDAY_CLOSED" nullable="true" remarks="Whether the center is closed on Thursdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="FRIDAY_OPEN_TIME" nullable="true" remarks="The Friday opening time of the center if different than the default" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="FRIDAY_CLOSE_TIME" nullable="true" remarks="The Friday closing time of the center if different than the default" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="FRIDAY_CLOSED" nullable="true" remarks="Whether the center is closed on Fridays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="SATURDAY_OPEN_TIME" nullable="true" remarks="The Saturday opening time of the center if different than the default" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="SATURDAY_CLOSE_TIME" nullable="true" remarks="The Saturday closing time of the center if different than the default" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="SATURDAY_CLOSED" nullable="true" remarks="Whether the center is closed on Saturdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="SUNDAY_OPEN_TIME" nullable="true" remarks="The Sunday opening time of the center if different than the default" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="SUNDAY_CLOSE_TIME" nullable="true" remarks="The Sunday closing time of the center if different than the default" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="SUNDAY_CLOSED" nullable="true" remarks="Whether the center is closed on Sundays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="OVERRIDE_RETURNING_RENTER_CRITERIA" nullable="true" remarks="Whether the returning renter criteria for facilities at this center should override the system setting (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="FACILITY_RETURNING_RENTER_RESERVATION_CRITERIA" nullable="true" remarks="The customer qualifies to be considered as a facility returning renter if they have reserved (None / Same Facility / Same Facility Type, same Center / Same Facility Type, any Center)" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="FACILITY_RETURNING_RENTER_TIME_CRITERIA" nullable="true" remarks="The customer qualifies to be considered as a facility returning renter if they have reserved within (Previous Rental Period / Previous Year / Other Period)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="FACILITY_RETURNING_RENTER_TIME_CRITERIA_OTHER_VALUE" nullable="true" remarks="The customer qualifies to be considered as a facility returning renter if they have reserved within other duration" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="FACILITY_RETURNING_RENTER_TIME_CRITERIA_OTHER_UNIT" nullable="true" remarks="The customer qualifies to be considered as a facility returning renter if they have reserved within other unit (Years / Months / Days)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="LOCKER_RETURNING_RENTER_RESERVATION_CRITERIA" nullable="true" remarks="The customer qualifies to be considered as a locker returning renter if they have reserved (None / Same Locker / Same Locker Bank / Same Locker Group / Same Center)" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="LOCKER_RETURNING_RENTER_TIME_CRITERIA" nullable="true" remarks="The customer qualifies to be considered as a locker returning renter if they have reserved within (Previous Rental Period / Previous Year / Other Period)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="LOCKER_RETURNING_RENTER_TIME_CRITERIA_OTHER_VALUE" nullable="true" remarks="The customer qualifies to be considered as a locker returning renter if they have reserved within other duration" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="LOCKER_RETURNING_RENTER_TIME_CRITERIA_OTHER_UNIT" nullable="true" remarks="The customer qualifies to be considered as a locker returning renter if they have reserved within other unit (Years / Months / Days)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="61" name="RETIRED" nullable="true" remarks="Whether the center record has been retired (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="HIDE_ON_INTERNET_REGISTRATION" nullable="true" remarks="Whether this center should be excluded from display on the internet registration site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="HIDE_ON_INTERNET_RESERVATION" nullable="true" remarks="Whether this center should be excluded from display on the internet facility reservation site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="SHOW_ON_CAPTIVATE_APP" nullable="true" remarks="Whether this center should be displayed on the ACTIVENet Captivate app (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="65" name="IMAGE_ON_CAPTIVATE_APP" nullable="true" remarks="The name of the image to be displayed on the ACTIVENet Captivate app" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="66" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="67" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="68" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CENTER_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CHARGE_ACTIVITY_QUALIFICATIONS" numRows="0" remarks="Master table containing defined charge activity qualifications" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CHARGE_ACTIVITY_QUALIFICATIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CHARGE_QUALIFICATION_LINK_ID,&#13;&#10;    src.QUALIFICATION_TYPE_ID,&#13;&#10;    src.QUALIFICATION_TYPE,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    ch1.CHARGE_NAME,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    src.ACTIVITY_CATEGORY_ID,&#13;&#10;    acat.ACTIVITY_CATEGORY_NAME,&#13;&#10;    src.SEASON_ID,&#13;&#10;    se1.SEASON_NAME,&#13;&#10;    src.CHILD_SEASON_ID,&#13;&#10;    cs1.CHILD_SEASON_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM&#13;&#10;    hub.CHARGE_QUALIFICATION_LINKS src&#13;&#10;    LEFT JOIN hub.CHARGES ch1 ON (ch1.CHARGE_ID = src.CHARGE_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON (ac1.ACTIVITY_ID = src.ACTIVITY_ID)&#13;&#10;    LEFT JOIN hub.SEASONS se1 ON (se1.SEASON_ID = src.SEASON_ID)&#13;&#10;    LEFT JOIN hub.CHILD_SEASONS cs1 ON (cs1.CHILD_SEASON_ID = src.CHILD_SEASON_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_CATEGORIES acat ON (acat.ACTIVITY_CATEGORY_ID = src.ACTIVITY_CATEGORY_ID)&#13;&#10;WHERE&#13;&#10;    src.QUALIFICATION_TYPE_ID = 1; -- KeyType.multi_activity_charge = 1&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CHARGE_QUALIFICATION_LINK_ID" nullable="true" remarks="Charge qualification link ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="QUALIFICATION_TYPE_ID" nullable="true" remarks="Qualification type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="QUALIFICATION_TYPE" nullable="true" remarks="Qualification type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CHARGE_ID" nullable="true" remarks="Charge ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CHARGE_NAME" nullable="true" remarks="Charge name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVITY_ID" nullable="true" remarks="Activity ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVITY_NAME" nullable="true" remarks="Activity name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVITY_CATEGORY_ID" nullable="true" remarks="Activity category ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVITY_CATEGORY_NAME" nullable="true" remarks="Activity category name" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="SEASON_ID" nullable="true" remarks="Season ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="SEASON_NAME" nullable="true" remarks="Season name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CHILD_SEASON_ID" nullable="true" remarks="Child season ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="CHILD_SEASON_NAME" nullable="true" remarks="Child season name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="14" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="CHARGE_QUALIFICATION_LINKS" numRows="0" remarks="Master table containing defined charge and fee qualification links (for internal use)." schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CHARGE_QUALIFICATION_LINKS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CHARGE_QUALIFICATION_LINK_ID,&#13;&#10;    src.GLOBAL_DISCOUNT_ID,&#13;&#10;    src.ACTIVITY_FEE_ID,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    src.ACTIVITY_CATEGORY_ID,&#13;&#10;    src.ACTIVITY_SUB_CATEGORY_ID,&#13;&#10;    src.ACTIVITY_SITE_ID,&#13;&#10;    src.ACTIVITY_DEPARTMENT_ID,&#13;&#10;    src.PROGRAM_ID,&#13;&#10;    src.PROGRAM_TYPE_ID,&#13;&#10;    src.QUALIFICATION_TYPE_ID,&#13;&#10;    src.QUALIFICATION_TYPE,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    src.PACKAGE_CATEGORY_ID,&#13;&#10;    src.SEASON_ID,&#13;&#10;    src.CHILD_SEASON_ID,&#13;&#10;    src.ALTERNATE_KEY_TYPE_ID,&#13;&#10;    src.ALTERNATE_KEY_STATUS_ID,&#13;&#10;    src.PACKAGE_FEE_ID,&#13;&#10;    src.STANDARD_CHARGE_ID,&#13;&#10;    src.MEMBER_PREFILL_PACKAGE_ID,&#13;&#10;    src.MEMBER_PREFILL_PACKAGE_CATEGORY_ID,&#13;&#10;    src.CUSTOMER_SCHOLARSHIP_ID,&#13;&#10;    src.PROGRAM_FEE_ID,&#13;&#10;    src.PRODUCT_ID,&#13;&#10;    src.PRODUCT_DEPARTMENT_ID,&#13;&#10;    src.PRODUCT_CLASS_ID,&#13;&#10;    src.PRODUCT_SUB_CLASS_ID,&#13;&#10;    src.ACTIVITY_FEE_PACKAGE_ID,&#13;&#10;    src.PACKAGE_FEE_PACKAGE_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM&#13;&#10;    hub.CHARGE_QUALIFICATION_LINKS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CHARGE_QUALIFICATION_LINK_ID" nullable="true" remarks="Charge qualification link ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="GLOBAL_DISCOUNT_ID" nullable="true" remarks="Global discount ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLOBAL_DISCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLOBAL_DISCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVITY_FEE_ID" nullable="true" remarks="Activity fee ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_FEES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_ID" nullable="true" remarks="Activity ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVITY_CATEGORY_ID" nullable="true" remarks="Activity category ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVITY_SUB_CATEGORY_ID" nullable="true" remarks="Activity subcategory ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_SUB_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_SUB_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVITY_SITE_ID" nullable="true" remarks="Activity site ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVITY_DEPARTMENT_ID" nullable="true" remarks="Activity department ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="PROGRAM_ID" nullable="true" remarks="Program ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="PROGRAM_TYPE_ID" nullable="true" remarks="Program type ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="QUALIFICATION_TYPE_ID" nullable="true" remarks="Qualification type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="QUALIFICATION_TYPE" nullable="true" remarks="Qualification type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="CHARGE_ID" nullable="true" remarks="Charge ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PACKAGE_ID" nullable="true" remarks="Package ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package category ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SEASON_ID" nullable="true" remarks="Season ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="CHILD_SEASON_ID" nullable="true" remarks="Child season ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ALTERNATE_KEY_TYPE_ID" nullable="true" remarks="Alternate key type ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ALTERNATE_KEY_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ALTERNATE_KEY_STATUS_ID" nullable="true" remarks="Alternate key status ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ALTERNATE_KEY_STATUS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ALTERNATE_KEY_STATUSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="PACKAGE_FEE_ID" nullable="true" remarks="Package fee ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_FEES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="STANDARD_CHARGE_ID" nullable="true" remarks="Standard charge ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="STANDARD_CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STANDARD_CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="MEMBER_PREFILL_PACKAGE_ID" nullable="true" remarks="Member prefill package ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="MEMBER_PREFILL_PACKAGE_CATEGORY_ID" nullable="true" remarks="Member prefill package category ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="CUSTOMER_SCHOLARSHIP_ID" nullable="true" remarks="Customer scholarship ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_SCHOLARSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SCHOLARSHIPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="PROGRAM_FEE_ID" nullable="true" remarks="Program fee ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_FEES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="PRODUCT_ID" nullable="true" remarks="Product ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="PRODUCT_DEPARTMENT_ID" nullable="true" remarks="Product department ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PRODUCT_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRODUCT_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="PRODUCT_CLASS_ID" nullable="true" remarks="Product class ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PRODUCT_CLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRODUCT_CLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="PRODUCT_SUB_CLASS_ID" nullable="true" remarks="Product sub class ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PRODUCT_SUBCLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRODUCT_SUBCLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="ACTIVITY_FEE_PACKAGE_ID" nullable="true" remarks="Activity fee package ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="PACKAGE_FEE_PACKAGE_ID" nullable="true" remarks="Package fee package ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="32" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVITY_FEE_PACKAGE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="CHARGE_QUALIFICATION_LINK_ID" sequenceNumberInPK="2"/>
         <primaryKey column="PACKAGE_FEE_PACKAGE_ID" sequenceNumberInPK="3"/>
      </table>
      <table catalog="ActiveHub" name="CHARGES" numRows="0" remarks="Master table showing defined charges data" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.CHARGES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    src.CHARGE_NAME,&#13;&#10;    src.CHARGE_TYPE,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.DEFAULT_FEE_AMOUNT,&#13;&#10;    src.DEFAULT_QUANTITY,&#13;&#10;    src.UNIT_OF_MEASURE,&#13;&#10;    src.CHARGE_ONCE,&#13;&#10;    src.DEPOSIT,&#13;&#10;    src.DISCOUNT_PERCENT,&#13;&#10;    src.DISCOUNT_TYPE,&#13;&#10;    src.TAXABLE_BY_TAX_1,&#13;&#10;    src.TAXABLE_BY_TAX_2,&#13;&#10;    src.TAXABLE_BY_TAX_3,&#13;&#10;    src.TAXABLE_BY_TAX_4,&#13;&#10;    src.TAXABLE_BY_TAX_5,&#13;&#10;    src.TAXABLE_BY_TAX_6,&#13;&#10;    src.TAXABLE_BY_TAX_7,&#13;&#10;    src.TAXABLE_BY_TAX_8,&#13;&#10;    src.PREFILL_CONDITION,&#13;&#10;    src.PRIMARY_FEE,&#13;&#10;    src.OVERRIDE_FLAG,&#13;&#10;    src.ADD_TO_NEW_ACTIVITY,&#13;&#10;    src.JANUARY_VALID,&#13;&#10;    src.FEBRUARY_VALID,&#13;&#10;    src.MARCH_VALID,&#13;&#10;    src.APRIL_VALID,&#13;&#10;    src.MAY_VALID,&#13;&#10;    src.JUNE_VALID,&#13;&#10;    src.JULY_VALID,&#13;&#10;    src.AUGUST_VALID,&#13;&#10;    src.SEPTEMBER_VALID,&#13;&#10;    src.OCTOBER_VALID,&#13;&#10;    src.NOVEMBER_VALID,&#13;&#10;    src.DECEMBER_VALID,&#13;&#10;    src.SUNDAY_VALID,&#13;&#10;    src.MONDAY_VALID,&#13;&#10;    src.TUESDAY_VALID,&#13;&#10;    src.WEDNESDAY_VALID,&#13;&#10;    src.THURSDAY_VALID,&#13;&#10;    src.FRIDAY_VALID,&#13;&#10;    src.SATURDAY_VALID,&#13;&#10;    src.MONDAY_START_TIME,&#13;&#10;    src.MONDAY_END_TIME,&#13;&#10;    src.TUESDAY_START_TIME,&#13;&#10;    src.TUESDAY_END_TIME,&#13;&#10;    src.WEDNESDAY_START_TIME,&#13;&#10;    src.WEDNESDAY_END_TIME,&#13;&#10;    src.THURSDAY_START_TIME,&#13;&#10;    src.THURSDAY_END_TIME,&#13;&#10;    src.FRIDAY_START_TIME,&#13;&#10;    src.FRIDAY_END_TIME,&#13;&#10;    src.SATURDAY_START_TIME,&#13;&#10;    src.SATURDAY_END_TIME,&#13;&#10;    src.SUNDAY_START_TIME,&#13;&#10;    src.SUNDAY_END_TIME,&#13;&#10;    src.START_ATTENDANCE_VALID,&#13;&#10;    src.END_ATTENDANCE_VALID,&#13;&#10;    src.MINIMUM_ACTIVATION,&#13;&#10;    src.MAXIMUM_ACTIVATION,&#13;&#10;    src.MINIMUM_DAYS,&#13;&#10;    src.MAXIMUM_DAYS,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.ONLINE_QUESTION,&#13;&#10;    src.SCHOLARSHIP_EXPIRATION_DATE,&#13;&#10;    src.SCHOLARSHIP_START_DATE,&#13;&#10;    src.DISCOUNTABLE,&#13;&#10;    src.RETIRED,&#13;&#10;    src.CALCULATE_HOURS_ON_TOTAL,&#13;&#10;    src.DONT_ACTIVATE_OUTSIDE_RANGE,&#13;&#10;    src.TRIAL_CLASS_FEE,&#13;&#10;    src.ACTIVATE_QUALIFYING_ACTIVITIES,&#13;&#10;    src.APPLIES_TO_ALL_ACTIVITIES,&#13;&#10;    src.ACTIVITY_GROUP_NUMBER,&#13;&#10;    src.QUALIFYING_ACTIVITY_TIME_PERIOD,&#13;&#10;    src.SCHOLARSHIP_OPENING_BALANCE,&#13;&#10;    src.SEASON_ID,&#13;&#10;    se1.SEASON_NAME AS SEASON,&#13;&#10;    src.CHILD_SEASON_ID,&#13;&#10;    cs1.CHILD_SEASON_NAME AS CHILD_SEASON,&#13;&#10;    src.EXCLUDE_FROM_PAYMENT_PLAN,&#13;&#10;    src.QUALIFYING_MIN_REGISTRATIONS,&#13;&#10;    src.QUALIFYING_MAX_REGISTRATIONS,&#13;&#10;    src.SCHOLARSHIP_OPENING_BALANCE_USE_SUM_OF_DONATED,&#13;&#10;    src.DAYCARE_TEMPLATE,&#13;&#10;    src.MEMBERSHIP_TEMPLATE,&#13;&#10;    src.POS_TEMPLATE,&#13;&#10;    src.REGISTRATION_TEMPLATE,&#13;&#10;    src.RESERVATION_TEMPLATE,&#13;&#10;    src.SYSTEM_GL_ACCOUNT_PACKAGE_ID,&#13;&#10;    sgap.SYSTEM_GL_ACCOUNT_PACKAGE_NAME AS SYSTEM_GL_ACCOUNT_PACKAGE,&#13;&#10;    src.TREAT_DISCOUNT_AS_PAYMENT,&#13;&#10;    src.FUND_SCHOLARSHIP_FROM_CAMPAIGN,&#13;&#10;    src.AWARD_SCHOLARSHIP_AT_ENROLLMENT,&#13;&#10;    src.CREATE_PAYMENT_PLAN,&#13;&#10;    src.EXTRA_BOOKING_FEE,&#13;&#10;    src.CUSTOMER_TYPE_ID,&#13;&#10;    ct1.CUSTOMER_TYPE_NAME AS CUSTOMER_TYPE,&#13;&#10;    src.EQUIPMENT_LENDING_TEMPLATE,&#13;&#10;    src.CLAIM_CHARGE,&#13;&#10;    src.ACTIVITY_DISCOUNT_AMOUNT,&#13;&#10;    src.PROGRAM_DISCOUNT_AMOUNT,&#13;&#10;    src.MEMBERSHIP_DISCOUNT_AMOUNT,&#13;&#10;    src.PRODUCT_DISCOUNT_AMOUNT,&#13;&#10;    src.ACTIVITY_DISCOUNT_PERCENT,&#13;&#10;    src.PROGRAM_DISCOUNT_PERCENT,&#13;&#10;    src.MEMBERSHIP_DISCOUNT_PERCENT,&#13;&#10;    src.PRODUCT_DISCOUNT_PERCENT,&#13;&#10;    src.DISCOUNT_PER_MODULE,&#13;&#10;    src.PROGRAM_UNIT_OF_MEASURE,&#13;&#10;    src.IS_BALANCE_UNLIMITED,&#13;&#10;    src.SCHOLARSHIP_TYPE,&#13;&#10;    src.DISABLE_SCHOLARSHIP_AFTER_FIRST_USE,&#13;&#10;    src.ACTIVATE_OPTION,&#13;&#10;    src.LAST_MINUTE_RATE,&#13;&#10;    src.LAST_MINUTE_FEE_AMOUNT,&#13;&#10;    src.LAST_MINUTE_PERCENT,&#13;&#10;    src.PRIOR_TO_BOOKING,&#13;&#10;    src.PRIOR_TO_BOOKING_UNIT,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.CHARGE_ID AS source_id,&#13;&#10;&#9;src.CHARGEDESCRIPTION&#13;&#10;FROM &#13;&#10;    hub.CHARGES src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND src.SITE_ID = si1.SITE_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.ORG_ID = src.ORG_ID AND src.GLACCOUNT_ID = gl1.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.SEASONS se1 ON (se1.ORG_ID = src.ORG_ID AND se1.SEASON_ID = src.SEASON_ID)&#13;&#10;    LEFT JOIN hub.CHILD_SEASONS cs1 ON (cs1.ORG_ID = src.ORG_ID AND cs1.CHILD_SEASON_ID = src.CHILD_SEASON_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMER_TYPES ct1 ON (ct1.ORG_ID = src.ORG_ID AND ct1.CUSTOMER_TYPE_ID = src.CUSTOMER_TYPE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_GL_ACCOUNT_PACKAGES sgap ON (sgap.ORG_ID = src.ORG_ID AND sgap.SYSTEM_GL_ACCOUNT_PACKAGE_ID = src.SYSTEM_GL_ACCOUNT_PACKAGE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CHARGE_ID" nullable="true" remarks="Charge ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_FEES"/>
            <child catalog="ActiveHub" column="FUND_SCHOLARSHIP_CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CAMPAIGNS"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCHES"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPONS"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SCHOLARSHIPS"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_FEES"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_FEES"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_FEES"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STANDARD_CHARGES"/>
            <child catalog="ActiveHub" column="EARLY_REGISTRATION_DISCOUNT_CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="USAGE_FEES"/>
            <child catalog="ActiveHub" column="FEE_CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="USAGE_FEES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CHARGE_NAME" nullable="true" remarks="Charge name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CHARGE_TYPE" nullable="true" remarks="The type of charge (Fee / Discount / Scholarship)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SITE_ID" nullable="true" remarks="Site ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SITE_NAME" nullable="true" remarks="The site to which the scholarship charge belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="6" name="DEFAULT_FEE_AMOUNT" nullable="true" remarks="The default fee or discount amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="7" name="DEFAULT_QUANTITY" nullable="true" remarks="The default quantity" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="UNIT_OF_MEASURE" nullable="true" remarks="The default unit of measure for the amount" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CHARGE_ONCE" nullable="true" remarks="Whether this charge should only be charged once per customer (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="DEPOSIT" nullable="true" remarks="Whether this charge is a deposit (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="11" name="DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="DISCOUNT_TYPE" nullable="true" remarks="The type of discount (Amount / Percent)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="TAXABLE_BY_TAX_1" nullable="true" remarks="Whether tax 1 applies to this charge (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="TAXABLE_BY_TAX_2" nullable="true" remarks="Whether tax 2 applies to this charge (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="TAXABLE_BY_TAX_3" nullable="true" remarks="Whether tax 3 applies to this charge (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="TAXABLE_BY_TAX_4" nullable="true" remarks="Whether tax 4 applies to this charge (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="TAXABLE_BY_TAX_5" nullable="true" remarks="Whether tax 5 applies to this charge (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="TAXABLE_BY_TAX_6" nullable="true" remarks="Whether tax 6 applies to this charge (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="TAXABLE_BY_TAX_7" nullable="true" remarks="Whether tax 7 applies to this charge (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="TAXABLE_BY_TAX_8" nullable="true" remarks="Whether tax 8 applies to this charge (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="PREFILL_CONDITION" nullable="true" remarks="The prefill condition for this charge (Never / Always / If Resident / If Non-resident / If Minor / If Senior / If Internet / If Member / If Non-member)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="PRIMARY_FEE" nullable="true" remarks="Whether this charge is a primary fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="OVERRIDE_FLAG" nullable="true" remarks="Whether this charge can be overridden (Always / Never / By Password)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="ADD_TO_NEW_ACTIVITY" nullable="true" remarks="Whether this charge should automatically be added as a fee on new activities (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="JANUARY_VALID" nullable="true" remarks="Whether this charge is valid in January when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="FEBRUARY_VALID" nullable="true" remarks="Whether this charge is valid in February when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="MARCH_VALID" nullable="true" remarks="Whether this charge is valid in March when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="APRIL_VALID" nullable="true" remarks="Whether this charge is valid in April when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="MAY_VALID" nullable="true" remarks="Whether this charge is valid in May when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="JUNE_VALID" nullable="true" remarks="Whether this charge is valid in June when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="JULY_VALID" nullable="true" remarks="Whether this charge is valid in July when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="AUGUST_VALID" nullable="true" remarks="Whether this charge is valid in August when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="SEPTEMBER_VALID" nullable="true" remarks="Whether this charge is valid in September when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="OCTOBER_VALID" nullable="true" remarks="Whether this charge is valid in October when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="NOVEMBER_VALID" nullable="true" remarks="Whether this charge is valid in November when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="DECEMBER_VALID" nullable="true" remarks="Whether this charge is valid in December when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="SUNDAY_VALID" nullable="true" remarks="Whether this charge is valid on Sundays when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="MONDAY_VALID" nullable="true" remarks="Whether this charge is valid on Mondays when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="TUESDAY_VALID" nullable="true" remarks="Whether this charge is valid on Tuesdays when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="WEDNESDAY_VALID" nullable="true" remarks="Whether this charge is valid on Wednesdays when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="THURSDAY_VALID" nullable="true" remarks="Whether this charge is valid on Thursdays when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="FRIDAY_VALID" nullable="true" remarks="Whether this charge is valid on Fridays when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="SATURDAY_VALID" nullable="true" remarks="Whether this charge is valid on Saturdays when advanced activation is enabled (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="MONDAY_START_TIME" nullable="true" remarks="The time that this fee is valid from on Mondays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="MONDAY_END_TIME" nullable="true" remarks="The time that this fee is valid to on Mondays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="TUESDAY_START_TIME" nullable="true" remarks="The time that this fee is valid from on Tuesdays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="TUESDAY_END_TIME" nullable="true" remarks="The time that this fee is valid to on Tuesdays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="WEDNESDAY_START_TIME" nullable="true" remarks="The time that this fee is valid from on Wednesdays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="WEDNESDAY_END_TIME" nullable="true" remarks="The time that this fee is valid to on Wednesdays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="THURSDAY_START_TIME" nullable="true" remarks="The time that this fee is valid from on Thursdays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="THURSDAY_END_TIME" nullable="true" remarks="The time that this fee is valid to on Thursdays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="FRIDAY_START_TIME" nullable="true" remarks="The time that this fee is valid from on Fridays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="FRIDAY_END_TIME" nullable="true" remarks="The time that this fee is valid to on Fridays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="SATURDAY_START_TIME" nullable="true" remarks="The time that this fee is valid from on Saturdays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="SATURDAY_END_TIME" nullable="true" remarks="The time that this fee is valid to on Saturdays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="SUNDAY_START_TIME" nullable="true" remarks="The time that this fee is valid from on Sundays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="SUNDAY_END_TIME" nullable="true" remarks="The time that this fee is valid to on Sundays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="START_ATTENDANCE_VALID" nullable="true" remarks="The minimum attendance for this charge to be valid" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="END_ATTENDANCE_VALID" nullable="true" remarks="The maximum attendance for this charge to be valid" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="60" name="MINIMUM_ACTIVATION" nullable="true" remarks="The minimum hours for this charge to be valid" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="61" name="MAXIMUM_ACTIVATION" nullable="true" remarks="The maximum hours for this charge to be valid" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="MINIMUM_DAYS" nullable="true" remarks="The minimum days for this charge to be valid" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="MAXIMUM_DAYS" nullable="true" remarks="The maximum days for this charge to be valid" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="GLACCOUNT_ID" nullable="true" remarks="The default GL account ID to post this charge to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="65" name="GL_ACCOUNT_NAME" nullable="true" remarks="GL account name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="66" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="67" name="ONLINE_QUESTION" nullable="true" remarks="Online question to be asked for this charge" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="68" name="SCHOLARSHIP_EXPIRATION_DATE" nullable="true" remarks="The last available date for this scholarship" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="69" name="SCHOLARSHIP_START_DATE" nullable="true" remarks="The first available date for this scholarship" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="70" name="DISCOUNTABLE" nullable="true" remarks="Whether this charge can be discounted (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="71" name="RETIRED" nullable="true" remarks="Whether this charge has been retired (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="72" name="CALCULATE_HOURS_ON_TOTAL" nullable="true" remarks="Calculate hours on total amount (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="73" name="DONT_ACTIVATE_OUTSIDE_RANGE" nullable="true" remarks="Do not activate if hours / cays outside ranges (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="74" name="TRIAL_CLASS_FEE" nullable="true" remarks="Whether this charge can be a trial class fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="75" name="ACTIVATE_QUALIFYING_ACTIVITIES" nullable="true" remarks="Whether this charge has qualifying activity criteria (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="76" name="APPLIES_TO_ALL_ACTIVITIES" nullable="true" remarks="Whether this charge applies to all activities (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="77" name="ACTIVITY_GROUP_NUMBER" nullable="true" remarks="The specific group number that his charge applies to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="78" name="QUALIFYING_ACTIVITY_TIME_PERIOD" nullable="true" remarks="This charge will be valid only within the last this number of months of the selected season and/or child season" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="79" name="SCHOLARSHIP_OPENING_BALANCE" nullable="true" remarks="The opening balance of the scholarship fund (if not unlimited)" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="80" name="SEASON_ID" nullable="true" remarks="The season ID that the scholarship is available for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="81" name="SEASON" nullable="true" remarks="The season that the scholarship is available for" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="82" name="CHILD_SEASON_ID" nullable="true" remarks="The child season ID that the scholarship is available for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHILD_SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHILD_SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="83" name="CHILD_SEASON" nullable="true" remarks="The child season that the scholarship is available for" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="84" name="EXCLUDE_FROM_PAYMENT_PLAN" nullable="true" remarks="Whether this charge should be excluded from any payment plan (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="85" name="QUALIFYING_MIN_REGISTRATIONS" nullable="true" remarks="This charge will apply if the customer has had at least this number of registrations" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="86" name="QUALIFYING_MAX_REGISTRATIONS" nullable="true" remarks="This charge will apply if the customer has had at most this number of registrations" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="87" name="SCHOLARSHIP_OPENING_BALANCE_USE_SUM_OF_DONATED" nullable="true" remarks="Whether the opening balance of this scholarship should be the sum of the donated amounts (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="88" name="DAYCARE_TEMPLATE" nullable="true" remarks="Whether this charge is available for program fees (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="89" name="MEMBERSHIP_TEMPLATE" nullable="true" remarks="Whether this charge is available for package fees (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="90" name="POS_TEMPLATE" nullable="true" remarks="Whether this charge is available for POS fees (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="91" name="REGISTRATION_TEMPLATE" nullable="true" remarks="Whether this charge is available for activity fees (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="92" name="RESERVATION_TEMPLATE" nullable="true" remarks="Whether this charge is available for facility reservation fees (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="93" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID" nullable="true" remarks="System GL account package ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="94" name="SYSTEM_GL_ACCOUNT_PACKAGE" nullable="true" remarks="System GL account package name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="95" name="TREAT_DISCOUNT_AS_PAYMENT" nullable="true" remarks="Whether the scholarship discount should be treated as a payment (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="96" name="FUND_SCHOLARSHIP_FROM_CAMPAIGN" nullable="true" remarks="Whether the scholarship should be funded from a campaign (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="97" name="AWARD_SCHOLARSHIP_AT_ENROLLMENT" nullable="true" remarks="Whether this scholarship is awarded at time of enrollment (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="98" name="CREATE_PAYMENT_PLAN" nullable="true" remarks="Whether a payment plan should be created when this charge is treated as a payment (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="99" name="EXTRA_BOOKING_FEE" nullable="true" remarks="Whether this charge can be an extra booking fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="100" name="CUSTOMER_TYPE_ID" nullable="true" remarks="The customer type ID that this charge applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="101" name="CUSTOMER_TYPE" nullable="true" remarks="The customer type that this charge applies to" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="102" name="EQUIPMENT_LENDING_TEMPLATE" nullable="true" remarks="Whether this charge is available for equipment lending fees (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="103" name="CLAIM_CHARGE" nullable="true" remarks="Whether this charge can be a claim fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="104" name="ACTIVITY_DISCOUNT_AMOUNT" nullable="true" remarks="The default discount amount for activities" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="105" name="PROGRAM_DISCOUNT_AMOUNT" nullable="true" remarks="The default discount amount for programs" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="106" name="MEMBERSHIP_DISCOUNT_AMOUNT" nullable="true" remarks="The default discount amount for memberships" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="107" name="PRODUCT_DISCOUNT_AMOUNT" nullable="true" remarks="The default discount amount for POS products" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="108" name="ACTIVITY_DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage for activities" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="109" name="PROGRAM_DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage for programs" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="110" name="MEMBERSHIP_DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage for memberships" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="111" name="PRODUCT_DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage for POS products" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="112" name="DISCOUNT_PER_MODULE" nullable="true" remarks="Whether the percent or amount of the discount may differ per module (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="113" name="PROGRAM_UNIT_OF_MEASURE" nullable="true" remarks="The default unit of measure for the amount for programs" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="114" name="IS_BALANCE_UNLIMITED" nullable="true" remarks="Whether the scholarship fund has an unlimited balance (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="115" name="SCHOLARSHIP_TYPE" nullable="true" remarks="The type of scholarship (Individual / Family)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="116" name="DISABLE_SCHOLARSHIP_AFTER_FIRST_USE" nullable="true" remarks="Whether the scholarship should be disabled after the first use (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="117" name="ACTIVATE_OPTION" nullable="true" remarks="Whether activation options are to be applied (None / Advanced / Date/Time Range)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="118" name="LAST_MINUTE_RATE" nullable="true" remarks="Whether this charge is a last minute fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="119" name="LAST_MINUTE_FEE_AMOUNT" nullable="true" remarks="The fee amount when applied as a last minute fee" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="120" name="LAST_MINUTE_PERCENT" nullable="true" remarks="The discount percentage when applied as a last minute fee" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="121" name="PRIOR_TO_BOOKING" nullable="true" remarks="The number of units prior to the start of the booking for this to be considered as a last minute fee" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="122" name="PRIOR_TO_BOOKING_UNIT" nullable="true" remarks="The type of units prior to the start of the booking for this to be considered as a last minute fee (Days / Hours)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="123" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="124" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="125" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="126" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="127" name="CHARGEDESCRIPTION" nullable="true" remarks="The description of the charge" size="8000" type="varchar" typeCode="12"/>
         <primaryKey column="CHARGE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CHECKLIST_ITEMS" numRows="0" remarks="Your organization's defined checklist items" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CHECKLIST_ITEMS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.STAGE_ID,&#13;&#10;    src.STAGE_DESCRIPTION,&#13;&#10;    src.STAGE_VERSION,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.SHOW_ONLINE,&#13;&#10;    src.ITEM_TYPE,&#13;&#10;    src.ITEM_TEXT,&#13;&#10;    src.UPLOADED_FILE_ID,&#13;&#10;    src.WAIVER_DURATION_DAYS,&#13;&#10;    src.ITEM_SIGNED_ONLINE,&#13;&#10;    src.IS_REQUIRED,&#13;&#10;    src.DUE_BEFORE_DAYS,&#13;&#10;    src.IS_GLOBAL,&#13;&#10;    src.SHOW_SIGNATURE_LINE,&#13;&#10;    src.REQUIRED_BEFORE_COMPLETING_TRANSACTION,&#13;&#10;    src.REQUIRE_INITIALS_ONLINE,&#13;&#10;    src.PRINT_PAYER_AND_CUSTOMER,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.STAGES src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID)&#13;&#10;WHERE&#13;&#10;    src.ALLOW_INDIVIDUAL_SELECTION = 'Yes'&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="STAGE_ID" nullable="false" remarks="The checklist item ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="STAGE_DESCRIPTION" nullable="true" remarks="The checklist item description" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="STAGE_VERSION" nullable="true" remarks="The current version number of the checklist item" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_ID" nullable="true" remarks="The ID of the site that the checklist item belongs to (NULL for all sites)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SITE_NAME" nullable="true" remarks="The name of the site that the checklist item belongs to (NULL for all sites)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SHOW_ONLINE" nullable="true" remarks="Whether the checklist item should be shown online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ITEM_TYPE" nullable="true" remarks="The type of checklist item (Information / Waiver)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ITEM_TEXT" nullable="true" remarks="The waiver text for the checklist item" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="UPLOADED_FILE_ID" nullable="true" remarks="The ID of the attached document" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="WAIVER_DURATION_DAYS" nullable="true" remarks="The number of days that the waiver applies for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ITEM_SIGNED_ONLINE" nullable="true" remarks="Whether the checklist item can be signed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="IS_REQUIRED" nullable="true" remarks="Whether the item is required prior to its due date (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="DUE_BEFORE_DAYS" nullable="true" remarks="The number of days prior to the event that the item is due" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="IS_GLOBAL" nullable="true" remarks="Whether this is a global item (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="SHOW_SIGNATURE_LINE" nullable="true" remarks="Whether a signature line should be displayed for this item (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="REQUIRED_BEFORE_COMPLETING_TRANSACTION" nullable="true" remarks="Whether the item is required prior to completing the transaction (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="REQUIRE_INITIALS_ONLINE" nullable="true" remarks="How the acceptance of the item should be performed online (Initials / Checkbox / E-signature)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="PRINT_PAYER_AND_CUSTOMER" nullable="true" remarks="Whether the payer and the customer should both be printed on the waiver (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="CHILD_SEASONS" numRows="0" remarks="Your organization's defined child seasons" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CHILD_SEASONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.CHILD_SEASON_ID,&#13;&#10;    src.CHILD_SEASON_NAME,&#13;&#10;    src.CHILD_SEASON_NUMBER,&#13;&#10;    src.PARENT_SEASON_ID,&#13;&#10;    se1.SEASON_NAME AS PARENT_SEASON_NAME,&#13;&#10;    src.START_DATE,&#13;&#10;    src.END_DATE,&#13;&#10;    src.IN_PERSON_REGISTRATION_DATE_TIME,&#13;&#10;    src.NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_TIME,&#13;&#10;    src.MEMBER_IN_PERSON_REGISTRATION_DATE_TIME,&#13;&#10;    src.IN_PERSON_REGISTRATION_END_DATE_TIME,&#13;&#10;    src.INTERNET_REGISTRATION_DATE_TIME,&#13;&#10;    src.NON_RESIDENT_INTERNET_REGISTRATION_DATE_TIME,&#13;&#10;    src.MEMBER_INTERNET_REGISTRATION_DATE_TIME,&#13;&#10;    src.INTERNET_REGISTRATION_END_DATE_TIME,&#13;&#10;    CAST(src.IN_PERSON_REGISTRATION_DATE_TIME AS DATE) AS IN_PERSON_REGISTRATION_DATE_ONLY,&#13;&#10;    CAST(src.NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_TIME AS DATE) AS NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_ONLY,&#13;&#10;    CAST(src.MEMBER_IN_PERSON_REGISTRATION_DATE_TIME AS DATE) AS MEMBER_IN_PERSON_REGISTRATION_DATE_ONLY,&#13;&#10;    CAST(src.IN_PERSON_REGISTRATION_END_DATE_TIME AS DATE) AS IN_PERSON_REGISTRATION_END_DATE_ONLY,&#13;&#10;    CAST(src.INTERNET_REGISTRATION_DATE_TIME AS DATE) AS INTERNET_REGISTRATION_DATE_ONLY,&#13;&#10;    CAST(src.NON_RESIDENT_INTERNET_REGISTRATION_DATE_TIME AS DATE) AS NON_RESIDENT_INTERNET_REGISTRATION_DATE_ONLY,&#13;&#10;    CAST(src.MEMBER_INTERNET_REGISTRATION_DATE_TIME AS DATE) AS MEMBER_INTERNET_REGISTRATION_DATE_ONLY,&#13;&#10;    CAST(src.INTERNET_REGISTRATION_END_DATE_TIME AS DATE) AS INTERNET_REGISTRATION_END_DATE_ONLY,&#13;&#10;    src.PAYROLL_PERIODS_IGNORE_SEASON_DATE_RANGE,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CHILD_SEASONS src&#13;&#10;    LEFT JOIN hub.SEASONS se1 ON (se1.SEASON_ID = src.PARENT_SEASON_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CHILD_SEASON_ID" nullable="false" remarks="The child season ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CHILD_SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="CHILD_SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
            <child catalog="ActiveHub" column="CHILD_SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
            <child catalog="ActiveHub" column="EARLY_REGISTRATION_UNTIL_CHILD_SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="USAGE_FEES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CHILD_SEASON_NAME" nullable="true" remarks="The child season name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CHILD_SEASON_NUMBER" nullable="true" remarks="The child season number if defined" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PARENT_SEASON_ID" nullable="true" remarks="The ID of the season that this child season belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PARENT_SEASON_NAME" nullable="true" remarks="The name of the season that this child season belongs to" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="START_DATE" nullable="true" remarks="The starting date of the child season" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="END_DATE" nullable="true" remarks="The ending date of the child season" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="IN_PERSON_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for in-person enrollments" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for online enrollments for non-residents" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="MEMBER_IN_PERSON_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for in-person enrollments for members" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="IN_PERSON_REGISTRATION_END_DATE_TIME" nullable="true" remarks="The date and time that registration ends for in-person enrollments" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="11" name="INTERNET_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for online enrollments" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="12" name="NON_RESIDENT_INTERNET_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for in-person enrollments for non-residents" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="MEMBER_INTERNET_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for online enrollments for members" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="14" name="INTERNET_REGISTRATION_END_DATE_TIME" nullable="true" remarks="The date and time that registration ends for online enrollments" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="IN_PERSON_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for in-person enrollments (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for online enrollments for non-residents (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="MEMBER_IN_PERSON_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for in-person enrollments for members (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="IN_PERSON_REGISTRATION_END_DATE_ONLY" nullable="true" remarks="The date that registration ends for in-person enrollments (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="INTERNET_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for online enrollments (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="NON_RESIDENT_INTERNET_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for in-person enrollments for non-residents (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="MEMBER_INTERNET_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for online enrollments for members (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="INTERNET_REGISTRATION_END_DATE_ONLY" nullable="true" remarks="The date that registration ends for online enrollments (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="PAYROLL_PERIODS_IGNORE_SEASON_DATE_RANGE" nullable="true" remarks="Whether payroll periods ignore the start and end dates of this child season (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="IS_RETIRED" nullable="true" remarks="Whether this child season has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="25" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="SEASON_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SEASONS"/>
         </column>
         <primaryKey column="CHILD_SEASON_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CHILD_WATCH_REGISTRATIONS" numRows="0" remarks="Child-watch registration data by room and customer" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.CHILD_WATCH_REGISTRATIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.CHILD_WATCH_REGISTRATION_ID,&#13;&#10;    src.CHILD_WATCH_ROOM_ID,&#13;&#10;    cwr.CHILD_WATCH_ROOM_NAME,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS CUSTOMER_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.CHECK_IN_DATE_TIME,&#13;&#10;    CAST(src.CHECK_IN_DATE_TIME AS DATE) AS CHECK_IN_DATE_ONLY,&#13;&#10;    src.CHECK_IN_SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS CHECK_IN_SYSTEM_USER_NAME,&#13;&#10;    src.DROP_OFF_CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu2.CUSTOMER_FIRST_NAME, IIF(cu2.CUSTOMER_FIRST_NAME IS NOT NULL AND cu2.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu2.CUSTOMER_LAST_NAME), '') AS DROP_OFF_CUSTOMER_NAME,&#13;&#10;    src.PARENT_LOCATION_ID,&#13;&#10;    pl1.PARENT_LOCATION_NAME,&#13;&#10;    src.CHOOSE_CUBBY,&#13;&#10;    src.IS_STAFF_DROP_OFF,&#13;&#10;    src.CHECK_IN_SIGNATURE,&#13;&#10;    src.CHECK_IN_MEMBERSHIP_USAGE_ID,&#13;&#10;    src.CHECK_OUT_DATE_TIME,&#13;&#10;    CAST(src.CHECK_OUT_DATE_TIME AS DATE) AS CHECK_OUT_DATE_ONLY,&#13;&#10;    src.CHECK_OUT_SYSTEMUSER_ID,&#13;&#10;    CONCAT(su2.USER_FIRST_NAME, IIF(su2.USER_FIRST_NAME IS NOT NULL AND su2.USER_LAST_NAME IS NOT NULL, ' ', ''), su2.USER_LAST_NAME) AS CHECK_OUT_SYSTEM_USER_NAME,&#13;&#10;    src.PICK_UP_CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu3.CUSTOMER_FIRST_NAME, IIF(cu3.CUSTOMER_FIRST_NAME IS NOT NULL AND cu3.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu3.CUSTOMER_LAST_NAME), '') AS PICK_UP_CUSTOMER_NAME,&#13;&#10;    src.PARENT_RETURN_DATE_TIME,&#13;&#10;    CAST(src.PARENT_RETURN_DATE_TIME AS DATE) AS PARENT_RETURN_DATE_ONLY,&#13;&#10;    src.IS_STAFF_PICK_UP,&#13;&#10;    src.CHECK_OUT_SIGNATURE,&#13;&#10;    src.CHECK_OUT_MEMBERSHIP_USAGE_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CHILD_WATCH_REGISTRATIONS src&#13;&#10;    LEFT JOIN hub.CHILD_WATCH_ROOMS cwr ON (cwr.CHILD_WATCH_ROOM_ID = src.CHILD_WATCH_ROOM_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.PARENT_LOCATIONS pl1 ON (pl1.PARENT_LOCATION_ID = src.PARENT_LOCATION_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu2 ON (cu2.CUSTOMER_ID = src.DROP_OFF_CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu3 ON (cu3.CUSTOMER_ID = src.PICK_UP_CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.SYSTEMUSER_ID = src.CHECK_IN_SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su2 ON (su2.SYSTEMUSER_ID = src.CHECK_OUT_SYSTEMUSER_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CHILD_WATCH_REGISTRATION_ID" nullable="false" remarks="The child-watch registration ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CHILD_WATCH_ROOM_ID" nullable="true" remarks="The ID of the child-watch room" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHILD_WATCH_ROOM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHILD_WATCH_ROOMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CHILD_WATCH_ROOM_NAME" nullable="true" remarks="The name of the child-watch room" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMER_ID" nullable="true" remarks="The ID of the child being watched" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOMER_NAME" nullable="true" remarks="The name of the child being watched" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SITE_ID" nullable="true" remarks="The ID of the site that the child-watch registration belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SITE_NAME" nullable="true" remarks="The name of the site that the child-watch registration belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="CHECK_IN_DATE_TIME" nullable="true" remarks="The check-in date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CHECK_IN_DATE_ONLY" nullable="true" remarks="The check-in date (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CHECK_IN_SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who performed the check-in" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="CHECK_IN_SYSTEM_USER_NAME" nullable="false" remarks="The name of the system user who performed the check-in" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="DROP_OFF_CUSTOMER_ID" nullable="true" remarks="The ID of the customer who dropped off the child" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="DROP_OFF_CUSTOMER_NAME" nullable="true" remarks="The name of the customer who dropped off the child" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="PARENT_LOCATION_ID" nullable="true" remarks="The ID of the parent's location during the session" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PARENT_LOCATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PARENT_LOCATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PARENT_LOCATION_NAME" nullable="true" remarks="The name of the parent's location during the session" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="CHOOSE_CUBBY" nullable="true" remarks="Whether a cubby was chosen during check-in (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="IS_STAFF_DROP_OFF" nullable="true" remarks="Whether the child was dropped off by a staff member (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="CHECK_IN_SIGNATURE" nullable="true" remarks="The signature name if a signature was captured during check-in" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="CHECK_IN_MEMBERSHIP_USAGE_ID" nullable="true" remarks="The membership usage ID for the check-in" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="MEMBERSHIPUSAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_USAGE"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="19" name="CHECK_OUT_DATE_TIME" nullable="true" remarks="The check-out date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="CHECK_OUT_DATE_ONLY" nullable="true" remarks="The check-out date (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="CHECK_OUT_SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who performed the check-out" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="CHECK_OUT_SYSTEM_USER_NAME" nullable="false" remarks="The name of the system user who performed the check-out" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="PICK_UP_CUSTOMER_ID" nullable="true" remarks="The ID of the customer who picked up the child" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="PICK_UP_CUSTOMER_NAME" nullable="true" remarks="The name of the customer who picked up the child" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="25" name="PARENT_RETURN_DATE_TIME" nullable="true" remarks="The date and time that the parent returned for the child" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="PARENT_RETURN_DATE_ONLY" nullable="true" remarks="The date that the parent returned for the child (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="IS_STAFF_PICK_UP" nullable="true" remarks="Whether the child was picked up by a staff member (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="CHECK_OUT_SIGNATURE" nullable="true" remarks="The signature name if a signature was captured during check-out" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="CHECK_OUT_MEMBERSHIP_USAGE_ID" nullable="true" remarks="The membership usage ID for the check-out" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="MEMBERSHIPUSAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_USAGE"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="30" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CHILD_WATCH_REGISTRATION_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CHILD_WATCH_ROOMS" numRows="0" remarks="Your organization's defined child-watch rooms" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.CHILD_WATCH_ROOMS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.CHILD_WATCH_ROOM_ID,&#13;&#10;    src.CHILD_WATCH_ROOM_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.CENTER_ID,&#13;&#10;    ce1.CENTER_NAME,&#13;&#10;    src.ROOM_CAPACITY,&#13;&#10;    src.ALLOW_OVERRIDE,&#13;&#10;    src.IS_DELETED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CHILD_WATCH_ROOMS src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.CENTERS ce1 ON (ce1.CENTER_ID = src.CENTER_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CHILD_WATCH_ROOM_ID" nullable="false" remarks="The child-watch room ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CHILD_WATCH_ROOM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHILD_WATCH_REGISTRATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CHILD_WATCH_ROOM_NAME" nullable="true" remarks="The child-watch room name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_ID" nullable="true" remarks="The ID of the site that the child-watch room belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_NAME" nullable="true" remarks="The name of the site that the child-watch room belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CENTER_ID" nullable="true" remarks="The ID of the center that the child-watch room is located in" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CENTERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CENTER_NAME" nullable="true" remarks="The name of the center that the child-watch room is located in" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ROOM_CAPACITY" nullable="true" remarks="The capacity of the room" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ALLOW_OVERRIDE" nullable="true" remarks="Whether the room capacity can be overridden (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="IS_DELETED" nullable="true" remarks="Whether the room is considered to have been deleted (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CHILD_WATCH_ROOM_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="COMPANIES" numRows="0" remarks="Company details" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.COMPANIES&#13;&#10;AS&#13;&#10;WITH cte_CreditBalance (COMPANY_ID, CREDIT_BALANCE_AVAILABLE) AS (&#13;&#10;    SELECT ach.COMPANY_ID, SUM(ach.CREDIT_AMOUNT) AS CREDIT_BALANCE_AVAILABLE&#13;&#10;    FROM hub.ACCOUNT_CREDIT_HISTORY ach&#13;&#10;    WHERE ach.COMPANY_ID &gt; 0&#13;&#10;    GROUP BY ach.COMPANY_ID)&#13;&#10;SELECT&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    src.COMPANY_NAME,&#13;&#10;    src.PARENT_COMPANY_ID,&#13;&#10;    ct1.CUSTOMER_TYPE_NAME AS CUSTOMER_TYPE,&#13;&#10;    ga1.GEOGRAPHIC_AREA_NAME AS GEOGRAPHIC_AREA,&#13;&#10;    si1.SITE_NAME AS SITE,&#13;&#10;    src.ADDRESS1,&#13;&#10;    src.ADDRESS2,&#13;&#10;    src.CITY,&#13;&#10;    src.STATE_PROVINCE,&#13;&#10;    src.ZIP_POSTALCODE,&#13;&#10;    src.COUNTY,&#13;&#10;    src.COUNTRY,&#13;&#10;    src.PHONE1,&#13;&#10;    src.PHONE2,&#13;&#10;    src.PHONE3,&#13;&#10;    src.EMAIL,&#13;&#10;    src.WEBSITE,&#13;&#10;    src.SPECIAL_HANDLING,&#13;&#10;    src.ALLOW_THIRD_PARTY_BILLING,&#13;&#10;    src.IS_VENDOR,&#13;&#10;    src.PAYMENT_TERMS,&#13;&#10;    src.LIGHTING_PIN,&#13;&#10;    src.AGREE_RECEIVE_EMAIL,&#13;&#10;    src.AGREE_RECEIVE_POSTAL_MAIL,&#13;&#10;    src.RETIRED_STATUS,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.BALANCE_DUE,&#13;&#10;    ISNULL(cb1.CREDIT_BALANCE_AVAILABLE, 0) AS CREDIT_BALANCE_AVAILABLE,&#13;&#10;    src.CUSTOMER_TYPE_ID,&#13;&#10;    src.GEOGRAPHIC_AREA_ID,&#13;&#10;    src.SITE_ID,&#13;&#10;    IIF(hub.udf_ValidateEmailFormat(src.EMAIL) = 1, 'Yes', 'No') AS IS_EMAIL_VALID&#13;&#10;FROM &#13;&#10;    hub.COMPANIES src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (src.SITE_ID = si1.SITE_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMER_TYPES ct1 ON (ct1.CUSTOMER_TYPE_ID = src.CUSTOMER_TYPE_ID)&#13;&#10;    LEFT JOIN hub.GEOGRAPHIC_AREAS ga1 ON (ga1.GEOGRAPHIC_AREA_ID = src.GEOGRAPHIC_AREA_ID)&#13;&#10;    LEFT JOIN cte_CreditBalance cb1 ON cb1.COMPANY_ID = src.COMPANY_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="COMPANY_ID" nullable="true" remarks="Company's ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACCOUNT_CREDIT_HISTORY"/>
            <child catalog="ActiveHub" column="PAYER_COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="TRANSACTION_COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="PAYER_COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_HEADERS"/>
            <child catalog="ActiveHub" column="PARENT_COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANY_AUTHORIZED_AGENTS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_USAGE"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CREDIT_CARD_PROCESSING_LOG"/>
            <child catalog="ActiveHub" column="PAYER_COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_THIRD_PARTY_BILLINGS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GIFT_CARDS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="INSTRUCTORS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_CONTACTS"/>
            <child catalog="ActiveHub" column="TPB_COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PERMITS"/>
            <child catalog="ActiveHub" column="LAST_VENDOR_COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS"/>
            <child catalog="ActiveHub" column="PAYER_COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRELIMINARY_DRAFTS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SAVED_CREDIT_CARD_HISTORY"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SAVED_CREDIT_CARDS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAM_CONTACTS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="COMPANY_NAME" nullable="true" remarks="Company's name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PARENT_COMPANY_ID" nullable="true" remarks="Parent company's ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOMER_TYPE" nullable="true" remarks="Customer type description of the company" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="GEOGRAPHIC_AREA" nullable="true" remarks="Geographic Area description" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SITE" nullable="true" remarks="The site to which the company belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ADDRESS1" nullable="true" remarks="Company's address 1" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ADDRESS2" nullable="true" remarks="Company's address 2" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CITY" nullable="true" remarks="Company's address city" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="STATE_PROVINCE" nullable="true" remarks="Company's address state or province" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ZIP_POSTALCODE" nullable="true" remarks="Company's zip or postal code" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="COUNTY" nullable="true" remarks="Company's county" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="COUNTRY" nullable="true" remarks="Company's country" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PHONE1" nullable="true" remarks="Company's first phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="PHONE2" nullable="true" remarks="Company's second phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="PHONE3" nullable="true" remarks="Company's third phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="EMAIL" nullable="true" remarks="Company's email address" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="WEBSITE" nullable="true" remarks="Company's web site address" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="SPECIAL_HANDLING" nullable="true" remarks="Whether the company needs special handling (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ALLOW_THIRD_PARTY_BILLING" nullable="true" remarks="Whether the company can be used for third party billing (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="IS_VENDOR" nullable="true" remarks="Whether the company is a vendor (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="PAYMENT_TERMS" nullable="true" remarks="Company's payment terms" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="LIGHTING_PIN" nullable="true" remarks="Company's PIN for lighting integration" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="AGREE_RECEIVE_EMAIL" nullable="true" remarks="Whether the company agreed to receive emails" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="AGREE_RECEIVE_POSTAL_MAIL" nullable="true" remarks="Whether the company agreed to receive postal mail" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="RETIRED_STATUS" nullable="true" remarks="Company's retired status (Retired / Active)" size="7" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="27" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="30" name="BALANCE_DUE" nullable="true" remarks="The current balance due for this company." size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="31" name="CREDIT_BALANCE_AVAILABLE" nullable="false" remarks="The current credit balance available for this company." size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="CUSTOMER_TYPE_ID" nullable="true" remarks="The customer type ID of the company" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="GEOGRAPHIC_AREA_ID" nullable="true" remarks="The geographic area ID of the company" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GEOGRAPHIC_AREA_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GEOGRAPHIC_AREAS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="SITE_ID" nullable="true" remarks="The site ID to which the company belongs" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="IS_EMAIL_VALID" nullable="false" remarks="Whether the company email address has been provided and is a validly formatted email address (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <primaryKey column="COMPANY_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="COMPANY_AUTHORIZED_AGENTS" numRows="0" remarks="Company authorized agent details" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.COMPANY_AUTHORIZED_AGENTS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.COMPANY_AUTHORIZED_AGENT_ID,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS CUSTOMER_NAME,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_LAST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ', ', ''), cu1.CUSTOMER_FIRST_NAME), '') AS CUSTOMER_NAME_LAST_FIRST,&#13;&#10;    src.CONTACT_TYPE_ID,&#13;&#10;    ct1.CONTACT_TYPE_NAME,&#13;&#10;    src.IS_ONLINE_ADMINISTRATOR,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.COMPANY_AUTHORIZED_AGENTS src&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.COMPANY_ID = src.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.CONTACT_TYPES ct1 ON (ct1.CONTACT_TYPE_ID = src.CONTACT_TYPE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="COMPANY_AUTHORIZED_AGENT_ID" nullable="true" remarks="Company authorized agent ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="COMPANY_ID" nullable="true" remarks="Company ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="COMPANY_NAME" nullable="true" remarks="Company name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOMER_ID" nullable="true" remarks="Customer ID of the authorized agent" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMER_NAME" nullable="true" remarks="Customer name of the authorized agent" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOMER_NAME_LAST_FIRST" nullable="true" remarks="Customer name of the authorized agent (last name, first name)" size="512" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CONTACT_TYPE_ID" nullable="true" remarks="Contact type ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CONTACT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CONTACT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CONTACT_TYPE_NAME" nullable="true" remarks="Contact type" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="IS_ONLINE_ADMINISTRATOR" nullable="true" remarks="Whether the agent can administer Organization and Agents online and conduct allowed transactions (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="COMPANY_AUTHORIZED_AGENT_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CONTACT_TYPES" numRows="0" remarks="Your organization's defined contact types" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CONTACT_TYPES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.CONTACT_TYPE_ID,&#13;&#10;    src.CONTACT_TYPE_NAME,&#13;&#10;    src.USED_FOR,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CONTACT_TYPES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CONTACT_TYPE_ID" nullable="false" remarks="The contact type ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CONTACT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANY_AUTHORIZED_AGENTS"/>
            <child catalog="ActiveHub" column="CONTACT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_CONTACTS"/>
            <child catalog="ActiveHub" column="CONTACT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAM_CONTACTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CONTACT_TYPE_NAME" nullable="true" remarks="The contact type name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="USED_FOR" nullable="true" remarks="Who this contact type can be used for (Groups / Companies / Teams)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="3" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CONTACT_TYPE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="COUPON_BATCH_QUALIFICATIONS" numRows="0" remarks="Coupon batch qualification information" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.COUPON_BATCH_QUALIFICATIONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.COUPON_BATCH_QUALIFICATION_ID,&#13;&#10;    src.COUPON_BATCH_ID,&#13;&#10;    cb1.COUPON_BATCH_TITLE,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    src.CATEGORY_ID,&#13;&#10;    acat.ACTIVITY_CATEGORY_NAME AS CATEGORY_NAME,&#13;&#10;    src.SEASON_ID,&#13;&#10;    se1.SEASON_NAME,&#13;&#10;    src.POSPRODUCT_ID,&#13;&#10;    ppr.PRODUCT_NAME,&#13;&#10;    src.PRODUCT_DEPARTMENT_ID,&#13;&#10;    pd1.PRODUCT_DEPARTMENT_NAME,&#13;&#10;    src.PRODUCT_CLASS_ID,&#13;&#10;    pc2.PRODUCT_CLASS_NAME,&#13;&#10;    src.PRODUCT_SUBCLASS_ID,&#13;&#10;    psc1.PRODUCT_SUBCLASS_NAME,&#13;&#10;    src.PROGRAM_ID,&#13;&#10;    pr1.PROGRAM_NAME,&#13;&#10;    src.PROGRAM_TYPE_ID,&#13;&#10;    pt1.PROGRAM_TYPE_NAME,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    src.PACKAGE_CATEGORY_ID,&#13;&#10;    pc1.CATEGORY_NAME AS PACKAGE_CATEGORY_NAME,&#13;&#10;    src.USAGE_FEE_ID,&#13;&#10;    uf1.USAGE_FEE_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.COUPON_BATCH_QUALIFICATIONS src&#13;&#10;    LEFT JOIN hub.COUPON_BATCHES cb1 ON cb1.COUPON_BATCH_ID = src.COUPON_BATCH_ID&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON ac1.ACTIVITY_ID = src.ACTIVITY_ID&#13;&#10;    LEFT JOIN hub.PROGRAMS pr1 ON pr1.PROGRAM_ID = src.PROGRAM_ID&#13;&#10;    LEFT JOIN hub.PACKAGES pa1 ON pa1.PACKAGE_ID = src.PACKAGE_ID&#13;&#10;    LEFT JOIN hub.PACKAGE_CATEGORIES pc1 ON pc1.PACKAGE_CATEGORY_ID = src.PACKAGE_CATEGORY_ID&#13;&#10;    LEFT JOIN hub.POS_PRODUCTS ppr ON ppr.POSPRODUCT_ID = src.POSPRODUCT_ID&#13;&#10;    LEFT JOIN hub.USAGE_FEES uf1 ON uf1.USAGE_FEE_ID = src.USAGE_FEE_ID&#13;&#10;    LEFT JOIN hub.PRODUCT_DEPARTMENTS pd1 ON (pd1.PRODUCT_DEPARTMENT_ID = src.PRODUCT_DEPARTMENT_ID)&#13;&#10;    LEFT JOIN hub.PROGRAM_TYPES pt1 ON (pt1.PROGRAM_TYPE_ID = src.PROGRAM_TYPE_ID)&#13;&#10;    LEFT JOIN hub.SEASONS se1 ON (se1.SEASON_ID = src.SEASON_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_CATEGORIES acat ON (acat.ACTIVITY_CATEGORY_ID = src.CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.PRODUCT_CLASSES pc2 ON (pc2.PRODUCT_CLASS_ID = src.PRODUCT_CLASS_ID)&#13;&#10;    LEFT JOIN hub.PRODUCT_SUBCLASSES psc1 ON (psc1.PRODUCT_SUBCLASS_ID = src.PRODUCT_SUBCLASS_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="COUPON_BATCH_QUALIFICATION_ID" nullable="true" remarks="Coupon batch qualification ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="COUPON_BATCH_ID" nullable="true" remarks="Coupon batch ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COUPON_BATCH_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCHES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="COUPON_BATCH_TITLE" nullable="true" remarks="Coupon batch title" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_ID" nullable="true" remarks="Activity ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVITY_NAME" nullable="true" remarks="Activity name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CATEGORY_ID" nullable="true" remarks="Activity category ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CATEGORY_NAME" nullable="true" remarks="Activity category name" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SEASON_ID" nullable="true" remarks="Activity season ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="SEASON_NAME" nullable="true" remarks="Activity season name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="POSPRODUCT_ID" nullable="true" remarks="POS product ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="PRODUCT_NAME" nullable="true" remarks="POS product name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="PRODUCT_DEPARTMENT_ID" nullable="true" remarks="Product department ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PRODUCT_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRODUCT_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="PRODUCT_DEPARTMENT_NAME" nullable="true" remarks="Product department name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PRODUCT_CLASS_ID" nullable="true" remarks="Product class ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PRODUCT_CLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRODUCT_CLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="PRODUCT_CLASS_NAME" nullable="true" remarks="Product class name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="PRODUCT_SUBCLASS_ID" nullable="true" remarks="Product subclass ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PRODUCT_SUBCLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRODUCT_SUBCLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="PRODUCT_SUBCLASS_NAME" nullable="true" remarks="Product subclass name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="PROGRAM_ID" nullable="true" remarks="Program ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="PROGRAM_NAME" nullable="true" remarks="Program name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="PROGRAM_TYPE_ID" nullable="true" remarks="Program type ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="PROGRAM_TYPE_NAME" nullable="true" remarks="Program type name" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="PACKAGE_ID" nullable="true" remarks="Package ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="PACKAGE_NAME" nullable="true" remarks="Package name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package category ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package category name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="USAGE_FEE_ID" nullable="true" remarks="Usage fee ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="USAGE_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="USAGE_FEES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="USAGE_FEE_NAME" nullable="true" remarks="Usage fee name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="28" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="COUPON_BATCH_QUALIFICATION_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="COUPON_BATCHES" numRows="0" remarks="Coupon batch information" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.COUPON_BATCHES&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.COUPON_BATCH_ID,&#13;&#10;    src.COUPON_BATCH_TITLE,&#13;&#10;    src.COUPON_CODE_PREFIX,&#13;&#10;    src.COUPON_CODE_SUFFIX,&#13;&#10;    src.COUPON_CODE_MIN_NUMBER,&#13;&#10;    src.COUPON_CODE_MAX_NUMBER,&#13;&#10;    src.COUPON_TITLE,&#13;&#10;    src.COUPON_DESCRIPTION,&#13;&#10;    src.COUPON_TYPE,&#13;&#10;    src.DISCOUNT_TYPE,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    ch1.CHARGE_NAME,&#13;&#10;    src.COUPON_CATEGORY_ID,&#13;&#10;    cc1.COUPON_CATEGORY_NAME,&#13;&#10;    src.DISCOUNT_AMOUNT,&#13;&#10;    src.DISCOUNT_PERCENT,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.DATE_FROM,&#13;&#10;    src.DATE_TO,&#13;&#10;    src.FREQUENCY_NUMBER,&#13;&#10;    src.FREQUENCY_PERIOD,&#13;&#10;    src.DAYS_OF_WEEK,&#13;&#10;    src.WEEKS_OF_MONTH,&#13;&#10;    src.MONTHS_OF_YEAR,&#13;&#10;    src.MAX_NUMBER_OF_USES,&#13;&#10;    src.CUSTOMER_LIST_ID,&#13;&#10;    rd1.REPORT_TITLE AS CUSTOMER_LIST_NAME,&#13;&#10;    src.NUMBER_PER_CUSTOMER,&#13;&#10;    src.MAX_NUMBER_OF_USES_PER_CUSTOMER,&#13;&#10;    src.NOTIFY_CUSTOMER,&#13;&#10;    (CASE WHEN SUBSTRING(src.DAYS_OF_WEEK, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_SUNDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.DAYS_OF_WEEK, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_MONDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.DAYS_OF_WEEK, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_TUESDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.DAYS_OF_WEEK, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_WEDNESDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.DAYS_OF_WEEK, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_THURSDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.DAYS_OF_WEEK, 6, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_FRIDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.DAYS_OF_WEEK, 7, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_SATURDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_1,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_2,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_3,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_4,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_5,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_JANUARY,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_FEBRUARY,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_MARCH,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_APRIL,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_MAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 6, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_JUNE,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 7, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_JULY,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 8, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_AUGUST,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 9, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_SEPTEMBER,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 10, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_OCTOBER,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 11, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_NOVEMBER,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 12, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_DECEMBER,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.COUPON_BATCHES src&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.GLACCOUNT_ID = src.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.CHARGES ch1 ON (ch1.CHARGE_ID = src.CHARGE_ID)&#13;&#10;    LEFT JOIN hub.COUPON_CATEGORIES cc1 ON (cc1.COUPON_CATEGORY_ID = src.COUPON_CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.REPORT_DEFINITIONS rd1 ON (rd1.REPORT_DEFINITION_ID = src.CUSTOMER_LIST_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="COUPON_BATCH_ID" nullable="true" remarks="Coupon batch ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="COUPON_BATCH_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="COUPON_BATCH_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="COUPON_BATCH_TITLE" nullable="true" remarks="Coupon batch title" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="COUPON_CODE_PREFIX" nullable="true" remarks="Coupon code prefix to be used when generating coupons" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="COUPON_CODE_SUFFIX" nullable="true" remarks="Coupon code suffix to be used when generating coupons" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="COUPON_CODE_MIN_NUMBER" nullable="true" remarks="Coupon code starting number to be used when generating coupons" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="COUPON_CODE_MAX_NUMBER" nullable="true" remarks="Coupon code ending number to be used when generating coupons" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="COUPON_TITLE" nullable="true" remarks="Coupon title for generated coupons" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="COUPON_DESCRIPTION" nullable="true" remarks="Coupon description of generated coupons" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="COUPON_TYPE" nullable="true" remarks="Coupon type for generated coupons" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="DISCOUNT_TYPE" nullable="true" remarks="Discount type (amount / discount)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="CHARGE_ID" nullable="true" remarks="Charge ID to be associated to the coupons" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CHARGE_NAME" nullable="true" remarks="Charge to be associated to the coupons" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="COUPON_CATEGORY_ID" nullable="true" remarks="Coupon category ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="REPORT_DEFINITION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="REPORT_DEFINITIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="COUPON_CATEGORY_NAME" nullable="true" remarks="Coupon category" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="15" name="DISCOUNT_AMOUNT" nullable="true" remarks="Coupon discount amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="16" name="DISCOUNT_PERCENT" nullable="true" remarks="Coupon discount percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="GLACCOUNT_ID" nullable="true" remarks="Coupon GL account ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="GL_ACCOUNT_NAME" nullable="true" remarks="Coupon GL account name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="Coupon GL account number" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="DATE_FROM" nullable="true" remarks="Coupon effective date from" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="DATE_TO" nullable="true" remarks="Coupon effective date to" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="FREQUENCY_NUMBER" nullable="true" remarks="Coupon may be used again after this many days, weeks or months" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="FREQUENCY_PERIOD" nullable="true" remarks="Period for coupon reuse (Days / Weeks / Months)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="DAYS_OF_WEEK" nullable="true" remarks="Whether the coupons will be configured for use on specific days of the week" size="7" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="WEEKS_OF_MONTH" nullable="true" remarks="Whether the coupons will be configured for use on specific weeks of the month" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="MONTHS_OF_YEAR" nullable="true" remarks="Whether the coupons will be configured for use on specific months of the year" size="12" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="MAX_NUMBER_OF_USES" nullable="true" remarks="The total number of times that each coupon may be used" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="CUSTOMER_LIST_ID" nullable="true" remarks="The ID of the custom list identifying the customers to be assigned coupons" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COUPON_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="CUSTOMER_LIST_NAME" nullable="true" remarks="The name of the custom list identifying the customers to be assigned coupons" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="NUMBER_PER_CUSTOMER" nullable="true" remarks="Number of coupons to be assigned to each customer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="MAX_NUMBER_OF_USES_PER_CUSTOMER" nullable="true" remarks="Maximum uses per customer for each coupon" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="NOTIFY_CUSTOMER" nullable="true" remarks="Whether a notification should be emailed to each customer who gets coupons assigned to them (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="DAYS_SUNDAY" nullable="false" remarks="Whether the coupons will be configured for use on Sundays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="DAYS_MONDAY" nullable="false" remarks="Whether the coupons will be configured for use on Mondays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="DAYS_TUESDAY" nullable="false" remarks="Whether the coupons will be configured for use on Tuesdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="DAYS_WEDNESDAY" nullable="false" remarks="Whether the coupons will be configured for use on Wednesdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="DAYS_THURSDAY" nullable="false" remarks="Whether the coupons will be configured for use on Thursdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="DAYS_FRIDAY" nullable="false" remarks="Whether the coupons will be configured for use on Fridays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="DAYS_SATURDAY" nullable="false" remarks="Whether the coupons will be configured for use on Saturdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="WEEK_OF_MONTH_1" nullable="false" remarks="Whether the coupons will be configured for use on days during the first week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="WEEK_OF_MONTH_2" nullable="false" remarks="Whether the coupons will be configured for use on days during the second week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="WEEK_OF_MONTH_3" nullable="false" remarks="Whether the coupons will be configured for use on days during the third week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="WEEK_OF_MONTH_4" nullable="false" remarks="Whether the coupons will be configured for use on days during the fourth week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="WEEK_OF_MONTH_5" nullable="false" remarks="Whether the coupons will be configured for use on days during the last week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="MONTHS_JANUARY" nullable="false" remarks="Whether the coupons will be configured for use during the month of January (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="MONTHS_FEBRUARY" nullable="false" remarks="Whether the coupons will be configured for use during the month of February (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="MONTHS_MARCH" nullable="false" remarks="Whether the coupons will be configured for use during the month of March (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="MONTHS_APRIL" nullable="false" remarks="Whether the coupons will be configured for use during the month of April (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="MONTHS_MAY" nullable="false" remarks="Whether the coupons will be configured for use during the month of May (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="MONTHS_JUNE" nullable="false" remarks="Whether the coupons will be configured for use during the month of June (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="MONTHS_JULY" nullable="false" remarks="Whether the coupons will be configured for use during the month of July (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="MONTHS_AUGUST" nullable="false" remarks="Whether the coupons will be configured for use during the month of August (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="MONTHS_SEPTEMBER" nullable="false" remarks="Whether the coupons will be configured for use during the month of September (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="MONTHS_OCTOBER" nullable="false" remarks="Whether the coupons will be configured for use during the month of October (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="MONTHS_NOVEMBER" nullable="false" remarks="Whether the coupons will be configured for use during the month of November (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="MONTHS_DECEMBER" nullable="false" remarks="Whether the coupons will be configured for use during the month of December (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="57" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="COUPON_BATCH_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="COUPON_CATEGORIES" numRows="0" remarks="Your organization's defined coupon categories" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.COUPON_CATEGORIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.COUPON_CATEGORY_ID,&#13;&#10;    src.COUPON_CATEGORY_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.COUPON_CATEGORIES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="COUPON_CATEGORY_ID" nullable="false" remarks="The coupon category ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CUSTOMER_LIST_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCHES"/>
            <child catalog="ActiveHub" column="COUPON_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="COUPON_CATEGORY_NAME" nullable="true" remarks="The coupon category name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="2" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="COUPON_CATEGORY_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="COUPON_QUALIFICATIONS" numRows="0" remarks="Coupon qualification information" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.COUPON_QUALIFICATIONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.COUPON_QUALIFICATION_ID,&#13;&#10;    src.COUPON_ID,&#13;&#10;    cou.COUPON_TITLE,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.CUSTOMER_TYPE_ID,&#13;&#10;    ct1.CUSTOMER_TYPE_NAME,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS CUSTOMER_NAME,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_LAST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ', ', ''), cu1.CUSTOMER_FIRST_NAME), '') AS CUSTOMER_NAME_LAST_FIRST,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    src.CATEGORY_ID,&#13;&#10;    acat.ACTIVITY_CATEGORY_NAME AS CATEGORY_NAME,&#13;&#10;    src.SEASON_ID,&#13;&#10;    se1.SEASON_NAME,&#13;&#10;    src.PROGRAM_ID,&#13;&#10;    pr1.PROGRAM_NAME,&#13;&#10;    src.PROGRAM_TYPE_ID,&#13;&#10;    pt1.PROGRAM_TYPE_NAME,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    src.PACKAGE_CATEGORY_ID,&#13;&#10;    pc1.CATEGORY_NAME AS PACKAGE_CATEGORY_NAME,&#13;&#10;    src.POSPRODUCT_ID,&#13;&#10;    ppr.PRODUCT_NAME,&#13;&#10;    src.PRODUCT_DEPARTMENT_ID,&#13;&#10;    pd1.PRODUCT_DEPARTMENT_NAME,&#13;&#10;    src.PRODUCT_CLASS_ID,&#13;&#10;    pc2.PRODUCT_CLASS_NAME,&#13;&#10;    src.PRODUCT_SUBCLASS_ID,&#13;&#10;    psc1.PRODUCT_SUBCLASS_NAME,&#13;&#10;    src.USAGE_FEE_ID,&#13;&#10;    uf1.USAGE_FEE_NAME,&#13;&#10;    src.DATE_FROM,&#13;&#10;    src.DATE_TO,&#13;&#10;    (CASE WHEN src.DAYS_OF_WEEK IS NULL THEN 'No' ELSE 'Yes' END) AS HAS_OVERRIDES,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    (CASE WHEN src.DAYS_OF_WEEK IS NULL THEN NULL ELSE src.DISCOUNT_TYPE END) AS DISCOUNT_TYPE,&#13;&#10;    (CASE WHEN src.DAYS_OF_WEEK IS NULL THEN NULL ELSE src.DISCOUNT_AMOUNT END) AS DISCOUNT_AMOUNT,&#13;&#10;    (CASE WHEN src.DAYS_OF_WEEK IS NULL THEN NULL ELSE src.DISCOUNT_PERCENT END) AS DISCOUNT_PERCENT,&#13;&#10;    src.DAYS_OF_WEEK,&#13;&#10;    src.WEEKS_OF_MONTH,&#13;&#10;    src.MONTHS_OF_YEAR,&#13;&#10;    (CASE WHEN src.DAYS_OF_WEEK IS NULL THEN NULL ELSE src.MAX_NUMBER_OF_USES END) AS MAX_NUMBER_OF_USES,&#13;&#10;    (CASE WHEN src.DAYS_OF_WEEK IS NULL THEN NULL ELSE src.MAX_NUMBER_OF_USES_PER_CUSTOMER END) AS MAX_NUMBER_OF_USES_PER_CUSTOMER,&#13;&#10;    (CASE WHEN src.DAYS_OF_WEEK IS NULL THEN NULL WHEN SUBSTRING(src.DAYS_OF_WEEK, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_SUNDAY,&#13;&#10;    (CASE WHEN src.DAYS_OF_WEEK IS NULL THEN NULL WHEN SUBSTRING(src.DAYS_OF_WEEK, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_MONDAY,&#13;&#10;    (CASE WHEN src.DAYS_OF_WEEK IS NULL THEN NULL WHEN SUBSTRING(src.DAYS_OF_WEEK, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_TUESDAY,&#13;&#10;    (CASE WHEN src.DAYS_OF_WEEK IS NULL THEN NULL WHEN SUBSTRING(src.DAYS_OF_WEEK, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_WEDNESDAY,&#13;&#10;    (CASE WHEN src.DAYS_OF_WEEK IS NULL THEN NULL WHEN SUBSTRING(src.DAYS_OF_WEEK, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_THURSDAY,&#13;&#10;    (CASE WHEN src.DAYS_OF_WEEK IS NULL THEN NULL WHEN SUBSTRING(src.DAYS_OF_WEEK, 6, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_FRIDAY,&#13;&#10;    (CASE WHEN src.DAYS_OF_WEEK IS NULL THEN NULL WHEN SUBSTRING(src.DAYS_OF_WEEK, 7, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_SATURDAY,&#13;&#10;    (CASE WHEN src.WEEKS_OF_MONTH IS NULL THEN NULL WHEN SUBSTRING(src.WEEKS_OF_MONTH, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_1,&#13;&#10;    (CASE WHEN src.WEEKS_OF_MONTH IS NULL THEN NULL WHEN SUBSTRING(src.WEEKS_OF_MONTH, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_2,&#13;&#10;    (CASE WHEN src.WEEKS_OF_MONTH IS NULL THEN NULL WHEN SUBSTRING(src.WEEKS_OF_MONTH, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_3,&#13;&#10;    (CASE WHEN src.WEEKS_OF_MONTH IS NULL THEN NULL WHEN SUBSTRING(src.WEEKS_OF_MONTH, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_4,&#13;&#10;    (CASE WHEN src.WEEKS_OF_MONTH IS NULL THEN NULL WHEN SUBSTRING(src.WEEKS_OF_MONTH, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_5,&#13;&#10;    (CASE WHEN src.MONTHS_OF_YEAR IS NULL THEN NULL WHEN SUBSTRING(src.MONTHS_OF_YEAR, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_JANUARY,&#13;&#10;    (CASE WHEN src.MONTHS_OF_YEAR IS NULL THEN NULL WHEN SUBSTRING(src.MONTHS_OF_YEAR, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_FEBRUARY,&#13;&#10;    (CASE WHEN src.MONTHS_OF_YEAR IS NULL THEN NULL WHEN SUBSTRING(src.MONTHS_OF_YEAR, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_MARCH,&#13;&#10;    (CASE WHEN src.MONTHS_OF_YEAR IS NULL THEN NULL WHEN SUBSTRING(src.MONTHS_OF_YEAR, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_APRIL,&#13;&#10;    (CASE WHEN src.MONTHS_OF_YEAR IS NULL THEN NULL WHEN SUBSTRING(src.MONTHS_OF_YEAR, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_MAY,&#13;&#10;    (CASE WHEN src.MONTHS_OF_YEAR IS NULL THEN NULL WHEN SUBSTRING(src.MONTHS_OF_YEAR, 6, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_JUNE,&#13;&#10;    (CASE WHEN src.MONTHS_OF_YEAR IS NULL THEN NULL WHEN SUBSTRING(src.MONTHS_OF_YEAR, 7, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_JULY,&#13;&#10;    (CASE WHEN src.MONTHS_OF_YEAR IS NULL THEN NULL WHEN SUBSTRING(src.MONTHS_OF_YEAR, 8, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_AUGUST,&#13;&#10;    (CASE WHEN src.MONTHS_OF_YEAR IS NULL THEN NULL WHEN SUBSTRING(src.MONTHS_OF_YEAR, 9, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_SEPTEMBER,&#13;&#10;    (CASE WHEN src.MONTHS_OF_YEAR IS NULL THEN NULL WHEN SUBSTRING(src.MONTHS_OF_YEAR, 10, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_OCTOBER,&#13;&#10;    (CASE WHEN src.MONTHS_OF_YEAR IS NULL THEN NULL WHEN SUBSTRING(src.MONTHS_OF_YEAR, 11, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_NOVEMBER,&#13;&#10;    (CASE WHEN src.MONTHS_OF_YEAR IS NULL THEN NULL WHEN SUBSTRING(src.MONTHS_OF_YEAR, 12, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_DECEMBER,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.COUPON_QUALIFICATIONS src&#13;&#10;    LEFT JOIN hub.COUPONS cou ON cou.COUPON_ID = src.COUPON_ID&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON co1.COMPANY_ID = src.COMPANY_ID&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON cu1.CUSTOMER_ID = src.CUSTOMER_ID&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON ac1.ACTIVITY_ID = src.ACTIVITY_ID&#13;&#10;    LEFT JOIN hub.PROGRAMS pr1 ON pr1.PROGRAM_ID = src.PROGRAM_ID&#13;&#10;    LEFT JOIN hub.PACKAGES pa1 ON pa1.PACKAGE_ID = src.PACKAGE_ID&#13;&#10;    LEFT JOIN hub.PACKAGE_CATEGORIES pc1 ON pc1.PACKAGE_CATEGORY_ID = src.PACKAGE_CATEGORY_ID&#13;&#10;    LEFT JOIN hub.POS_PRODUCTS ppr ON ppr.POSPRODUCT_ID = src.POSPRODUCT_ID&#13;&#10;    LEFT JOIN hub.USAGE_FEES uf1 ON uf1.USAGE_FEE_ID = src.USAGE_FEE_ID&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON gl1.GLACCOUNT_ID = src.GLACCOUNT_ID&#13;&#10;    LEFT JOIN hub.PRODUCT_DEPARTMENTS pd1 ON (pd1.PRODUCT_DEPARTMENT_ID = src.PRODUCT_DEPARTMENT_ID)&#13;&#10;    LEFT JOIN hub.PROGRAM_TYPES pt1 ON (pt1.PROGRAM_TYPE_ID = src.PROGRAM_TYPE_ID)&#13;&#10;    LEFT JOIN hub.SEASONS se1 ON (se1.SEASON_ID = src.SEASON_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_CATEGORIES acat ON (acat.ACTIVITY_CATEGORY_ID = src.CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMER_TYPES ct1 ON (ct1.CUSTOMER_TYPE_ID = src.CUSTOMER_TYPE_ID)&#13;&#10;    LEFT JOIN hub.PRODUCT_CLASSES pc2 ON (pc2.PRODUCT_CLASS_ID = src.PRODUCT_CLASS_ID)&#13;&#10;    LEFT JOIN hub.PRODUCT_SUBCLASSES psc1 ON (psc1.PRODUCT_SUBCLASS_ID = src.PRODUCT_SUBCLASS_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="COUPON_QUALIFICATION_ID" nullable="true" remarks="Coupon qualification ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="COUPON_ID" nullable="true" remarks="Coupon ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COUPON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="COUPON_TITLE" nullable="true" remarks="Coupon title" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="COMPANY_ID" nullable="true" remarks="Company ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="COMPANY_NAME" nullable="true" remarks="Company name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOMER_TYPE_ID" nullable="true" remarks="Customer type ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CUSTOMER_TYPE_NAME" nullable="true" remarks="Customer type name" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CUSTOMER_ID" nullable="true" remarks="Customer ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CUSTOMER_NAME" nullable="true" remarks="Customer name" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="CUSTOMER_NAME_LAST_FIRST" nullable="true" remarks="Customer name (last name, first name)" size="512" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVITY_ID" nullable="true" remarks="Activity ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ACTIVITY_NAME" nullable="true" remarks="Activity name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="CATEGORY_ID" nullable="true" remarks="Activity category ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="CATEGORY_NAME" nullable="true" remarks="Activity category name" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="SEASON_ID" nullable="true" remarks="Activity season ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SEASON_NAME" nullable="true" remarks="Activity season name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="PROGRAM_ID" nullable="true" remarks="Program ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="PROGRAM_NAME" nullable="true" remarks="Program name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="PROGRAM_TYPE_ID" nullable="true" remarks="Program type ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="PROGRAM_TYPE_NAME" nullable="true" remarks="Program type name" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="PACKAGE_ID" nullable="true" remarks="Package ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="PACKAGE_NAME" nullable="true" remarks="Package name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package category ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package category name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="POSPRODUCT_ID" nullable="true" remarks="POS product name" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="PRODUCT_NAME" nullable="true" remarks="POS product name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="PRODUCT_DEPARTMENT_ID" nullable="true" remarks="Product department ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PRODUCT_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRODUCT_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="PRODUCT_DEPARTMENT_NAME" nullable="true" remarks="Product department name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="PRODUCT_CLASS_ID" nullable="true" remarks="Product class ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PRODUCT_CLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRODUCT_CLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="PRODUCT_CLASS_NAME" nullable="true" remarks="Product class name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="PRODUCT_SUBCLASS_ID" nullable="true" remarks="Product subclass ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PRODUCT_SUBCLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRODUCT_SUBCLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="PRODUCT_SUBCLASS_NAME" nullable="true" remarks="Product subclass name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="USAGE_FEE_ID" nullable="true" remarks="Usage fee ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="USAGE_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="USAGE_FEES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="USAGE_FEE_NAME" nullable="true" remarks="Usage fee name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="DATE_FROM" nullable="true" remarks="Coupon effective date from" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="DATE_TO" nullable="true" remarks="Coupon effective date to" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="HAS_OVERRIDES" nullable="false" remarks="Whether this qualification has overrides of the coupon settings (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="GLACCOUNT_ID" nullable="true" remarks="Coupon GL account ID - if override" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="GL_ACCOUNT_NAME" nullable="true" remarks="Coupon GL account name - if override" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="Coupon GL account number - if override" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="DISCOUNT_TYPE" nullable="true" remarks="Discount type - if override (amount / discount)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="42" name="DISCOUNT_AMOUNT" nullable="true" remarks="Coupon discount amount - if override" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="43" name="DISCOUNT_PERCENT" nullable="true" remarks="Coupon discount percentage - if override" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="DAYS_OF_WEEK" nullable="true" remarks="Whether the coupon can be used on specific days of the week - if override" size="7" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="WEEKS_OF_MONTH" nullable="true" remarks="Whether the coupon can be used on specific weeks of the month - if override" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="MONTHS_OF_YEAR" nullable="true" remarks="Whether the coupon can be used on specific months of the year - if override" size="12" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="MAX_NUMBER_OF_USES" nullable="true" remarks="The total number of times that the coupon may be used - if override" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="MAX_NUMBER_OF_USES_PER_CUSTOMER" nullable="true" remarks="Maximum uses per customer for each coupon - if override" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="DAYS_SUNDAY" nullable="true" remarks="Whether the coupons will be configured for use on Sundays - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="DAYS_MONDAY" nullable="true" remarks="Whether the coupons will be configured for use on Mondays - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="DAYS_TUESDAY" nullable="true" remarks="Whether the coupons will be configured for use on Tuesdays - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="DAYS_WEDNESDAY" nullable="true" remarks="Whether the coupons will be configured for use on Wednesdays - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="DAYS_THURSDAY" nullable="true" remarks="Whether the coupons will be configured for use on Thursdays - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="DAYS_FRIDAY" nullable="true" remarks="Whether the coupons will be configured for use on Fridays - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="DAYS_SATURDAY" nullable="true" remarks="Whether the coupons will be configured for use on Saturdays - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="WEEK_OF_MONTH_1" nullable="true" remarks="Whether the coupons will be configured for use on days during the first week of the month - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="WEEK_OF_MONTH_2" nullable="true" remarks="Whether the coupons will be configured for use on days during the second week of the month - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="WEEK_OF_MONTH_3" nullable="true" remarks="Whether the coupons will be configured for use on days during the third week of the month - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="WEEK_OF_MONTH_4" nullable="true" remarks="Whether the coupons will be configured for use on days during the fourth week of the month - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="WEEK_OF_MONTH_5" nullable="true" remarks="Whether the coupons will be configured for use on days during the last week of the month - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="61" name="MONTHS_JANUARY" nullable="true" remarks="Whether the coupons will be configured for use during the month of January - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="MONTHS_FEBRUARY" nullable="true" remarks="Whether the coupons will be configured for use during the month of February - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="MONTHS_MARCH" nullable="true" remarks="Whether the coupons will be configured for use during the month of March - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="MONTHS_APRIL" nullable="true" remarks="Whether the coupons will be configured for use during the month of April - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="65" name="MONTHS_MAY" nullable="true" remarks="Whether the coupons will be configured for use during the month of May - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="66" name="MONTHS_JUNE" nullable="true" remarks="Whether the coupons will be configured for use during the month of June - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="67" name="MONTHS_JULY" nullable="true" remarks="Whether the coupons will be configured for use during the month of July - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="68" name="MONTHS_AUGUST" nullable="true" remarks="Whether the coupons will be configured for use during the month of August - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="69" name="MONTHS_SEPTEMBER" nullable="true" remarks="Whether the coupons will be configured for use during the month of September - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="70" name="MONTHS_OCTOBER" nullable="true" remarks="Whether the coupons will be configured for use during the month of October - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="71" name="MONTHS_NOVEMBER" nullable="true" remarks="Whether the coupons will be configured for use during the month of November - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="72" name="MONTHS_DECEMBER" nullable="true" remarks="Whether the coupons will be configured for use during the month of December - if override (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="73" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="74" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="75" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="COUPON_QUALIFICATION_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="COUPON_USAGE" numRows="0" remarks="Coupon usage information" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.COUPON_USAGE&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.COUPON_USAGE_ID,&#13;&#10;    src.COUPON_ID,&#13;&#10;    src.TRANSACTION_ID,&#13;&#10;    src.RECEIPT_DETAIL_ID,&#13;&#10;    src.IS_REFUNDED,&#13;&#10;    tr1.CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS CUSTOMER_NAME,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_LAST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ', ', ''), cu1.CUSTOMER_FIRST_NAME), '') AS CUSTOMER_NAME_LAST_FIRST,&#13;&#10;    tr1.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    IIF(src.IS_REFUNDED = 'No', 1, 0) AS USAGE_QUANTITY,&#13;&#10;    ISNULL(IIF(src.IS_REFUNDED = 'No', rd1.AMOUNT, 0), 0) AS USAGE_AMOUNT,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.COUPON_USAGE src&#13;&#10;    LEFT JOIN hub.TRANSACTIONS tr1 ON tr1.TRANSACTION_ID = src.TRANSACTION_ID&#13;&#10;    LEFT JOIN hub.RECEIPT_DETAILS rd1 ON rd1.RECEIPT_DETAIL_ID = src.RECEIPT_DETAIL_ID&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.COMPANY_ID = tr1.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = tr1.CUSTOMER_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="COUPON_USAGE_ID" nullable="true" remarks="Coupon usage ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="COUPON_ID" nullable="true" remarks="Coupon ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COUPON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="TRANSACTION_ID" nullable="true" remarks="ID of the transaction where the coupon was applied" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="RECEIPT_DETAIL_ID" nullable="true" remarks="ID of the receipt detail where the coupon was applied" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="IS_REFUNDED" nullable="true" remarks="Whether the transaction was subsequently refunded (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOMER_ID" nullable="true" remarks="Customer ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CUSTOMER_NAME" nullable="true" remarks="Customer name" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CUSTOMER_NAME_LAST_FIRST" nullable="true" remarks="Customer name (last name, first name)" size="512" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="COMPANY_ID" nullable="true" remarks="Company ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="COMPANY_NAME" nullable="true" remarks="Company name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="USAGE_QUANTITY" nullable="false" remarks="The number of uses that this counts as, refunded or voided transactions will count as zero" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="12" name="USAGE_AMOUNT" nullable="false" remarks="The amount that was discounted for this coupon, refunded or voided transactions will count as zero" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="COUPON_USAGE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="COUPONS" numRows="0" remarks="Coupon information" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.COUPONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.COUPON_ID,&#13;&#10;    src.COUPON_TITLE,&#13;&#10;    src.COUPON_BATCH_ID,&#13;&#10;    cb1.COUPON_BATCH_TITLE,&#13;&#10;    src.COUPON_CODE,&#13;&#10;    src.COUPON_TYPE,&#13;&#10;    src.COUPON_CATEGORY_ID,&#13;&#10;    cc1.COUPON_CATEGORY_NAME,&#13;&#10;    src.DISCOUNT_TYPE,&#13;&#10;    src.DISCOUNT_AMOUNT,&#13;&#10;    src.DISCOUNT_PERCENT,&#13;&#10;    src.COUPON_CONTRACT_ID,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    ch1.CHARGE_NAME,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.DATE_FROM,&#13;&#10;    src.DATE_TO,&#13;&#10;    src.FREQUENCY_NUMBER,&#13;&#10;    src.FREQUENCY_PERIOD,&#13;&#10;    src.DAYS_OF_WEEK,&#13;&#10;    src.WEEKS_OF_MONTH,&#13;&#10;    src.MONTHS_OF_YEAR,&#13;&#10;    src.MAX_NUMBER_OF_USES,&#13;&#10;    src.MAX_NUMBER_OF_USES_PER_CUSTOMER,&#13;&#10;    src.TOTAL_COUPONS_USED,&#13;&#10;    src.TURN_OFF_COUPON,&#13;&#10;    (CASE WHEN SUBSTRING(src.DAYS_OF_WEEK, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_SUNDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.DAYS_OF_WEEK, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_MONDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.DAYS_OF_WEEK, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_TUESDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.DAYS_OF_WEEK, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_WEDNESDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.DAYS_OF_WEEK, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_THURSDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.DAYS_OF_WEEK, 6, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_FRIDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.DAYS_OF_WEEK, 7, 1) = 1 THEN 'Yes' ELSE 'No' END) AS DAYS_SATURDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_1,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_2,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_3,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_4,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_5,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_JANUARY,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_FEBRUARY,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_MARCH,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_APRIL,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_MAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 6, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_JUNE,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 7, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_JULY,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 8, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_AUGUST,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 9, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_SEPTEMBER,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 10, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_OCTOBER,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 11, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_NOVEMBER,&#13;&#10;    (CASE WHEN SUBSTRING(src.MONTHS_OF_YEAR, 12, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONTHS_DECEMBER,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.COUPONS src&#13;&#10;    LEFT JOIN hub.COUPON_BATCHES cb1 ON (cb1.COUPON_BATCH_ID = src.COUPON_BATCH_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.GLACCOUNT_ID = src.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.CHARGES ch1 ON (ch1.CHARGE_ID = src.CHARGE_ID)&#13;&#10;    LEFT JOIN hub.COUPON_CATEGORIES cc1 ON (cc1.COUPON_CATEGORY_ID = src.COUPON_CATEGORY_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="COUPON_ID" nullable="true" remarks="Coupon ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="COUPON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="COUPON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_USAGE"/>
            <child catalog="ActiveHub" column="COUPON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="COUPON_TITLE" nullable="true" remarks="Coupon title" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="COUPON_BATCH_ID" nullable="true" remarks="Coupon batch ID if created as part of a batch" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COUPON_BATCH_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCHES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="COUPON_BATCH_TITLE" nullable="true" remarks="Coupon batch title" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="COUPON_CODE" nullable="true" remarks="Coupon code" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="COUPON_TYPE" nullable="true" remarks="Coupon type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="COUPON_CATEGORY_ID" nullable="true" remarks="Coupon category ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COUPON_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="COUPON_CATEGORY_NAME" nullable="true" remarks="Coupon category" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="DISCOUNT_TYPE" nullable="true" remarks="Discount type (amount / discount)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="DISCOUNT_AMOUNT" nullable="true" remarks="Coupon discount amount" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="DISCOUNT_PERCENT" nullable="true" remarks="Coupon discount percentage" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="COUPON_CONTRACT_ID" nullable="true" remarks="Coupon contract ID (if applicable)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="CHARGE_ID" nullable="true" remarks="Charge ID to be associated to the coupons" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="CHARGE_NAME" nullable="true" remarks="Charge to be associated to the coupons" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="GLACCOUNT_ID" nullable="true" remarks="Coupon GL account ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="GL_ACCOUNT_NAME" nullable="true" remarks="Coupon GL account name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="Coupon GL account number" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="DATE_FROM" nullable="true" remarks="Coupon effective date from" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="DATE_TO" nullable="true" remarks="Coupon effective date to" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="FREQUENCY_NUMBER" nullable="true" remarks="Coupon may be used again after this many days, weeks or months" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="FREQUENCY_PERIOD" nullable="true" remarks="Period for coupon reuse (Days / Weeks / Months)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="DAYS_OF_WEEK" nullable="true" remarks="Whether the coupon can be used on specific days of the week" size="7" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="WEEKS_OF_MONTH" nullable="true" remarks="Whether the coupon can be used on specific weeks of the month" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="MONTHS_OF_YEAR" nullable="true" remarks="Whether the coupon can be used on specific months of the year" size="12" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="MAX_NUMBER_OF_USES" nullable="true" remarks="The total number of times that the coupon may be used" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="MAX_NUMBER_OF_USES_PER_CUSTOMER" nullable="true" remarks="Maximum uses per customer for each coupon" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="TOTAL_COUPONS_USED" nullable="true" remarks="The total number of times that this coupon has been used" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="TURN_OFF_COUPON" nullable="true" remarks="Whether use of this coupon has been turned off (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="DAYS_SUNDAY" nullable="false" remarks="Whether the coupon can be used on Sundays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="DAYS_MONDAY" nullable="false" remarks="Whether the coupon can be used on Mondays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="DAYS_TUESDAY" nullable="false" remarks="Whether the coupon can be used on Tuesdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="DAYS_WEDNESDAY" nullable="false" remarks="Whether the coupon can be used on Wednesdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="DAYS_THURSDAY" nullable="false" remarks="Whether the coupon can be used on Thursdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="DAYS_FRIDAY" nullable="false" remarks="Whether the coupon can be used on Fridays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="DAYS_SATURDAY" nullable="false" remarks="Whether the coupon can be used on Saturdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="WEEK_OF_MONTH_1" nullable="false" remarks="Whether the coupon can be used on days during the first week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="WEEK_OF_MONTH_2" nullable="false" remarks="Whether the coupon can be used on days during the second week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="WEEK_OF_MONTH_3" nullable="false" remarks="Whether the coupon can be used on days during the third week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="WEEK_OF_MONTH_4" nullable="false" remarks="Whether the coupon can be used on days during the fourth week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="WEEK_OF_MONTH_5" nullable="false" remarks="Whether the coupon can be used on days during the last week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="MONTHS_JANUARY" nullable="false" remarks="Whether the coupon can be used during the month of January (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="MONTHS_FEBRUARY" nullable="false" remarks="Whether the coupon can be used during the month of February (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="MONTHS_MARCH" nullable="false" remarks="Whether the coupon can be used during the month of March (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="MONTHS_APRIL" nullable="false" remarks="Whether the coupon can be used during the month of April (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="MONTHS_MAY" nullable="false" remarks="Whether the coupon can be used during the month of May (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="MONTHS_JUNE" nullable="false" remarks="Whether the coupon can be used during the month of June (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="MONTHS_JULY" nullable="false" remarks="Whether the coupon can be used during the month of July (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="MONTHS_AUGUST" nullable="false" remarks="Whether the coupon can be used during the month of August (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="MONTHS_SEPTEMBER" nullable="false" remarks="Whether the coupon can be used during the month of September (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="MONTHS_OCTOBER" nullable="false" remarks="Whether the coupon can be used during the month of October (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="MONTHS_NOVEMBER" nullable="false" remarks="Whether the coupon can be used during the month of November (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="MONTHS_DECEMBER" nullable="false" remarks="Whether the coupon can be used during the month of December (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="53" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="COUPON_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CREDIT_CARD_PROCESSING_LOG" numRows="0" remarks="The log of all payment and refund authorization requests" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.CREDIT_CARD_PROCESSING_LOG&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.CREDIT_CARD_PROCESSING_LOG_ID,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS CUSTOMER_NAME,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    NULLIF(CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME), '') AS SYSTEM_USER_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.AUTHORIZATION_REQUEST_TYPE,&#13;&#10;    src.PAYMENT_AMOUNT,&#13;&#10;    src.CARD_NUMBER,&#13;&#10;    src.CARD_EXPIRATION,&#13;&#10;    src.BANK_ROUTING_NUMBER,&#13;&#10;    src.BANK_ACCOUNT_NUMBER,&#13;&#10;    src.BANK_ACCOUNT_TYPE,&#13;&#10;    src.START_DATE_TIME,&#13;&#10;    CAST(src.START_DATE_TIME AS DATE) AS START_DATE_ONLY,&#13;&#10;    src.LAST_MODIFY_DATE_TIME,&#13;&#10;    CAST(src.LAST_MODIFY_DATE_TIME AS DATE) AS LAST_MODIFY_DATE_ONLY,&#13;&#10;    src.CLIENT_TRANSACTION_ID,&#13;&#10;    src.REFERENCE_NUMBER,&#13;&#10;    src.RELATED_REFERENCE_NUMBER,&#13;&#10;    src.ORIGINAL_REFERENCE_NUMBER,&#13;&#10;    src.IS_AUTHORIZED,&#13;&#10;    src.PAYMENT_PROCESSOR_ID,&#13;&#10;    rv1.REFERENCE_VALUE AS PAYMENT_PROCESSOR,&#13;&#10;    src.SUBMISSION_STATUS_ID,&#13;&#10;    rv2.REFERENCE_VALUE AS SUBMISSION_STATUS,&#13;&#10;    src.RESULT_CODE,&#13;&#10;    src.RESULT_MESSAGE,&#13;&#10;    src.PINPAD_INPUT_TYPE,&#13;&#10;    src.PINPAD_DEVICE_TYPE_ID,&#13;&#10;    rv3.REFERENCE_VALUE AS PINPAD_DEVICE_TYPE,&#13;&#10;    src.RECEIPT_HEADER_ID,&#13;&#10;    FORMAT(rh1.RECEIPT_NUMBER, '#.0000') AS RECEIPT_NUMBER,&#13;&#10;    src.MEMBERSHIP_ID,&#13;&#10;    src.MEMBERSHIP_RUN_DATE_TIME,&#13;&#10;    CAST(src.MEMBERSHIP_RUN_DATE_TIME AS DATE) AS MEMBERSHIP_RUN_DATE_ONLY,&#13;&#10;    src.AR_SCHEDULE_HEADER_ID,&#13;&#10;    src.CAMPAIGN_DONATION_ID,&#13;&#10;    src.IS_VOIDED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.CREDIT_CARD_PROCESSING_LOG_ID AS source_id,&#13;&#10;&#9;src.AUTO_RETRY_COUNT&#13;&#10;FROM&#13;&#10;    hub.CREDIT_CARD_PROCESSING_LOG src&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.ORG_ID = src.ORG_ID AND co1.COMPANY_ID = src.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON (rh1.ORG_ID = src.ORG_ID AND rh1.RECEIPT_HEADER_ID = src.RECEIPT_HEADER_ID)&#13;&#10;    LEFT JOIN hub.REFERENCE_VALUES rv1 ON (rv1.ORG_ID = src.ORG_ID AND rv1.REFERENCE_ID = src.PAYMENT_PROCESSOR_ID AND rv1.REFERENCE_TABLE = 'PAYMENT_PROCESSORS' AND rv1.REFERENCE_COLUMN = 'TITLE')&#13;&#10;    LEFT JOIN hub.REFERENCE_VALUES rv2 ON (rv2.ORG_ID = src.ORG_ID AND rv2.REFERENCE_ID = src.SUBMISSION_STATUS_ID AND rv2.REFERENCE_TABLE = 'SUBMISSION_STATUSES' AND rv2.REFERENCE_COLUMN = 'TITLE')&#13;&#10;    LEFT JOIN hub.REFERENCE_VALUES rv3 ON (rv3.ORG_ID = src.ORG_ID AND rv3.REFERENCE_ID = src.PINPAD_DEVICE_TYPE_ID AND rv3.REFERENCE_TABLE = 'PINPAD_DEVICE_TYPES' AND rv3.REFERENCE_COLUMN = 'TITLE');&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="AR_SCHEDULED_HEADER_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="AR_SCHEDULED_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CREDIT_CARD_PROCESSING_LOG_ID" nullable="false" remarks="The credit card processing log ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_ID" nullable="true" remarks="The ID of the customer that the payment or refund authorization request was for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_NAME" nullable="true" remarks="The name of the customer that the payment or refund authorization request was for" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="COMPANY_ID" nullable="true" remarks="The ID of the company that the payment or refund authorization request was for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="COMPANY_NAME" nullable="true" remarks="The name of the company that the payment or refund authorization request was for" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="WORKSTATION_ID" nullable="true" remarks="The ID of the workstation that the payment or refund authorization request was submitted from" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="WORKSTATION_NAME" nullable="true" remarks="The name of the workstation that the payment or refund authorization request was submitted from" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who submitted the payment or refund authorization request" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SYSTEM_USER_NAME" nullable="true" remarks="The name of the system user who submitted the payment or refund authorization request" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="SITE_ID" nullable="true" remarks="The ID of the site that the payment or refund authorization request was submitted from" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="SITE_NAME" nullable="true" remarks="The name of the site that the payment or refund authorization request was submitted from" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="AUTHORIZATION_REQUEST_TYPE" nullable="true" remarks="The type of authorization request (Sale / Void / Authorization / Capture / ECP status change / Credit / Unknown)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="12" name="PAYMENT_AMOUNT" nullable="true" remarks="The amount of the payment or refund authorization request" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="CARD_NUMBER" nullable="true" remarks="The masked credit card account number" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="CARD_EXPIRATION" nullable="true" remarks="The credit card expiration date" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="BANK_ROUTING_NUMBER" nullable="true" remarks="The masked bank routing number for ECP payments" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="BANK_ACCOUNT_NUMBER" nullable="true" remarks="The masked bank account number for ECP payments" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="BANK_ACCOUNT_TYPE" nullable="true" remarks="The bank account type for ECP payments" size="4" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="START_DATE_TIME" nullable="true" remarks="The date and time that the payment or refund authorization request was submitted" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="START_DATE_ONLY" nullable="true" remarks="The date that the payment or refund authorization request was submitted (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="20" name="LAST_MODIFY_DATE_TIME" nullable="true" remarks="The date and time that the authorization request was last updated" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="LAST_MODIFY_DATE_ONLY" nullable="true" remarks="The date that the authorization request was last updated (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="CLIENT_TRANSACTION_ID" nullable="true" remarks="The client transaction ID generated for the authorization request" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="REFERENCE_NUMBER" nullable="true" remarks="The reference ID generated for the authorization request" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="RELATED_REFERENCE_NUMBER" nullable="true" remarks="The reference ID the is related to the authorization request" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ORIGINAL_REFERENCE_NUMBER" nullable="true" remarks="The reference ID for the original authorization request that this authorization request is refunding" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="IS_AUTHORIZED" nullable="true" remarks="Whether this payment or refund authorization has been successfully processed (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="PAYMENT_PROCESSOR_ID" nullable="true" remarks="The ID of the payment processor for this payment or refund authorization request" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="PAYMENT_PROCESSOR" nullable="true" remarks="The name of the payment processor for this payment or refund authorization request" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="SUBMISSION_STATUS_ID" nullable="true" remarks="The ID of the submission status of this payment or refund authorization request" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="SUBMISSION_STATUS" nullable="true" remarks="The name of the submission status of this payment or refund authorization request" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="RESULT_CODE" nullable="true" remarks="The result code returned for this payment or refund authorization request" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="RESULT_MESSAGE" nullable="true" remarks="The result message returned for this payment or refund authorization request" size="300" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="PINPAD_INPUT_TYPE" nullable="true" remarks="The type of card that was scanned through the pin pad device (Credit Card / Debit Card)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="PINPAD_DEVICE_TYPE_ID" nullable="true" remarks="The ID of the pin pad device type that the card was scanned through" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="PINPAD_DEVICE_TYPE" nullable="true" remarks="The name of the pin pad device type that the card was scanned through" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="RECEIPT_HEADER_ID" nullable="true" remarks="The ID of the receipt that this payment or refund belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="RECEIPT_NUMBER" nullable="true" remarks="The ID of the receipt that this payment or refund belongs to" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="MEMBERSHIP_ID" nullable="true" remarks="The ID of the membership that this payment or refund is related to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="MEMBERSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="39" name="MEMBERSHIP_RUN_DATE_TIME" nullable="true" remarks="The date and time the membership renewal process generated this payment" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="MEMBERSHIP_RUN_DATE_ONLY" nullable="true" remarks="The date the membership renewal process generated this payment (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="AR_SCHEDULE_HEADER_ID" nullable="true" remarks="The ID of the payment plan that this payment or refund is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="CAMPAIGN_DONATION_ID" nullable="true" remarks="The ID of the scheduled campaign donation that this payment or refund is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="IS_VOIDED" nullable="true" remarks="Whether this payment or refund authorization has been voided (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="44" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="source_id" nullable="false" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="AUTO_RETRY_COUNT" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <primaryKey column="CREDIT_CARD_PROCESSING_LOG_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CREDITCARD_UPDATES" numRows="0" remarks="Updated credit card information" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.CREDITCARD_UPDATES&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;&#9;ccu.CREDITCARD_UPDATE_ID,&#13;&#10;    STR(MONTH(ccu.AMS_SENT_ON)) + STR(DAY(ccu.AMS_SENT_ON)) + STR(YEAR(ccu.AMS_SENT_ON)) AS AMS_SENT_ON,&#13;&#10;    ccu.CUSTOMER_ID,&#13;&#10;&#9;ccu.CC_NUMBER,&#13;&#10;&#9;ccu.CC_EXPIRY,&#13;&#10;&#9;ccu.CC_TYPE,&#13;&#10;&#9;ccu.UPDATED_CC_NUMBER,&#13;&#10;&#9;ccu.UPDATED_CC_EXPIRY,&#13;&#10;&#9;ccu.UPDATED_CC_TYPE,&#13;&#10;&#9;card.CARD_TYPE_NAME AS UPDATED_CC_TYPE_DESC,&#13;&#10;&#9;ccu.UPDATED_ON,&#13;&#10;    CONCAT(cus.CUSTOMER_FIRST_NAME, IIF(cus.CUSTOMER_FIRST_NAME IS NOT NULL AND cus.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cus.CUSTOMER_LAST_NAME) AS CUSTOMER_NAME,&#13;&#10;&#9;cus.HOMEPHONE,&#13;&#10;    ccu.COMPANY_ID,&#13;&#10;&#9;pac.PACKAGE_NAME,&#13;&#10;&#9;mbs.EFFECTIVE_DATE,&#13;&#10;&#9;mbs.EXPIRATION_DATE&#13;&#10;&#9;FROM [hub].[CREDITCARD_UPDATES] ccu&#13;&#10;&#9;&#9;LEFT OUTER JOIN (SELECT DISTINCT  ORG_ID, MEMBERSHIP_ID,EFFECTIVE_DATE,EXPIRATION_DATE, PACKAGE_ID FROM [hub].[MEMBERSHIPS] WHERE IS_PRIMARY = 'Yes') mbs &#13;&#10;&#9;&#9;&#9;ON mbs.MEMBERSHIP_ID = ccu.MEMBERSHIP_ID AND mbs.ORG_ID = ccu.ORG_ID&#13;&#10;&#9;&#9;LEFT OUTER JOIN [hub].[PACKAGES] pac ON pac.PACKAGE_ID = mbs.PACKAGE_ID AND mbs.ORG_ID = pac.ORG_ID&#13;&#10;&#9;&#9;LEFT OUTER JOIN [hub].[CUSTOMERS] cus ON cus.CUSTOMER_ID = ccu.CUSTOMER_ID AND cus.ORG_ID = ccu.ORG_ID&#13;&#10;&#9;&#9;LEFT OUTER JOIN [hub].[CARD_TYPES] card ON card.CARD_TYPE_ID = ccu.CC_TYPE AND card.ORG_ID = ccu.ORG_ID">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CREDITCARD_UPDATE_ID" nullable="false" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="AMS_SENT_ON" nullable="true" remarks="" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_ID" nullable="true" remarks="The ID of the customer that the payment or refund authorization request was for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CC_NUMBER" nullable="true" remarks="Last four of the old credit card" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CC_EXPIRY" nullable="true" remarks="Expiry of the old credit card" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CC_TYPE" nullable="true" remarks="Credit Card type" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="UPDATED_CC_NUMBER" nullable="true" remarks="Last four of the new credit card" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="UPDATED_CC_EXPIRY" nullable="true" remarks="Expiry of the new credit card" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="UPDATED_CC_TYPE" nullable="true" remarks="Updated credit card type" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="UPDATED_CC_TYPE_DESC" nullable="true" remarks="Description of the updated credit card type" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="UPDATED_ON" nullable="true" remarks="Status of the update" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="CUSTOMER_NAME" nullable="false" remarks="Customer's name" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="HOMEPHONE" nullable="true" remarks="Customer's home phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="COMPANY_ID" nullable="true" remarks="The ID of the company that the payment or refund authorization request was for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PACKAGE_NAME" nullable="true" remarks="The name of the membership package." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="15" name="EFFECTIVE_DATE" nullable="true" remarks="The effective date of the membership package." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="EXPIRATION_DATE" nullable="true" remarks="The expiration date of the membership package." size="16" type="datetime" typeCode="93"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_PAYMENT_TYPES" numRows="0" remarks="Your organization's defined CUSTOM_PAYMENT_TYPES" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CUSTOM_PAYMENT_TYPES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.CUSTOM_PAYMENT_TYPE_ID,&#13;&#10;    src.CUSTOM_PAYMENT_TYPE_NAME,&#13;&#10;    src.BASE_TYPE,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOM_PAYMENT_TYPES src&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.GLACCOUNT_ID = src.GLACCOUNT_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOM_PAYMENT_TYPE_ID" nullable="false" remarks="The custom payment type ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CUSTOM_PAYMENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOM_PAYMENT_TYPE_NAME" nullable="true" remarks="The custom payment type name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="BASE_TYPE" nullable="true" remarks="The base type of this custom payment type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="GLACCOUNT_ID" nullable="true" remarks="The GL account ID that this custom payment type should post to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GL_ACCOUNT_NAME" nullable="true" remarks="The GL account name that this custom payment type should post to" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="The GL account number that this custom payment type should post to" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="IS_RETIRED" nullable="true" remarks="Whether this custom payment type has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CUSTOM_PAYMENT_TYPE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_ANSWERS" numRows="0" remarks="Custom question and answer details, for customers and transactions. Includes all answers from 2019-07-01 to current." schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.CUSTOM_QUESTION_ANSWERS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.QUESTION_TYPE,&#13;&#10;    src.SUBSYSTEM,&#13;&#10;    src.TRANSACTION_TYPE,&#13;&#10;    src.CUSTOMQUESTION_ID,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    src.PROGRAM_ID,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    src.PERMIT_ID,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    src.MEMBERSHIP_ID,&#13;&#10;    src.POSPRODUCT_ID,&#13;&#10;    src.QUESTION_GROUP,&#13;&#10;    cq1.TITLE,&#13;&#10;    src.QUESTION,&#13;&#10;    src.ANSWER,&#13;&#10;    src.DATESTAMP,&#13;&#10;    src.DATESTAMP_DATE_ONLY,&#13;&#10;    ISNULL(tr1.TRANSACTION_ID, src.TRANSACTION_ID)  AS TRANSACTION_ID,&#13;&#10;    ISNULL(tr1.ROOT_TRANSACTION_ID, src.ROOT_TRANSACTION_ID)  AS ROOT_TRANSACTION_ID,&#13;&#10;    src.CUSTOMQUESTIONANSWER_ID,&#13;&#10;    src.CUSTOMQUESTIONANSWER_I_ID,&#13;&#10;    src.ACTIVE_HUB_SOURCE,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;&#9;src.CHARGE_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOM_QUESTION_ANSWERS src&#13;&#10;    JOIN hub.CUSTOM_QUESTIONS cq1 ON cq1.ORG_ID = src.ORG_ID AND cq1.CUSTOM_QUESTION_ID = src.CUSTOMQUESTION_ID&#13;&#10;&#9;LEFT OUTER JOIN hub.TRANSACTIONS tr1&#13;&#10;&#9;&#9;ON (src.ORG_ID = tr1.ORG_ID&#13;&#10;&#9;&#9;&#9;AND src.TRANSACTION_ID = tr1.CUSTOMQUESTIONANSWER_TRANSACTION_ID&#13;&#10;&#9;&#9;&#9;AND tr1.CUSTOMQUESTIONANSWER_TRANSACTION_ID = tr1.TRANSACTION_ID&#13;&#10;&#9;&#9;   )&#13;&#10;(CONVERT([date],[DATESTAMP]))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="QUESTION_TYPE" nullable="false" remarks="Type of question" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SUBSYSTEM" nullable="false" remarks="Subsystem that generated the question" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="TRANSACTION_TYPE" nullable="false" remarks="Type of transaction that generated the question" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMQUESTION_ID" nullable="false" remarks="Identifier for the source custom question" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOM_QUESTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOM_QUESTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOMER_ID" nullable="true" remarks="Reference to CUSTOMERS" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVITY_ID" nullable="true" remarks="Reference to ACTIVITIES" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PROGRAM_ID" nullable="true" remarks="Reference to PROGRAMS" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="FACILITY_ID" nullable="true" remarks="Reference to FACILITIES" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="PERMIT_ID" nullable="true" remarks="Reference to FACILITY_RESERVATIONS" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PERMIT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PERMITS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="PACKAGE_ID" nullable="true" remarks="Reference to PACKAGES" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="MEMBERSHIP_ID" nullable="true" remarks="Reference to MEMBERSHIPS" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="MEMBERSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="POSPRODUCT_ID" nullable="true" remarks="Reference to POS_PRODUCTS" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="QUESTION_GROUP" nullable="true" remarks="Description of the group that the question is a member of" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="TITLE" nullable="true" remarks="Title of question" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="QUESTION" nullable="true" remarks="Question text" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ANSWER" nullable="true" remarks="Answer given. includes blank value for questions skipped or questions not answered." size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="DATESTAMP" nullable="true" remarks="Date and time answer was last recorded" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="DATESTAMP_DATE_ONLY" nullable="true" remarks="Date answer was last recorded" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="TRANSACTION_ID" nullable="true" remarks="Reference to the transaction that generated the question, if not a customer question" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ROOT_TRANSACTION_ID" nullable="true" remarks="Reference to the root transaction that generated the question, if not a customer question" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="CUSTOMQUESTIONANSWER_ID" nullable="true" remarks="Identifier for the custom question answer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="CUSTOMQUESTIONANSWER_I_ID" nullable="true" remarks="Identifier for the unanswered custom question" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="ACTIVE_HUB_SOURCE" nullable="false" remarks="The source of the custom question answer data (internal use)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="ACTIVE_HUB_KEY" nullable="false" remarks="" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="24" name="LAST_SYNC_TIME" nullable="false" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="CHARGE_ID" nullable="true" remarks="charge fee id" size="4" type="int" typeCode="4"/>
         <primaryKey column="CUSTOMQUESTIONANSWER_ID" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOMQUESTIONANSWER_I_ID" sequenceNumberInPK="2"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_ANSWERS_ACTIVITY" numRows="0" remarks="Columns dynamically generated for each question attached to an Activity beginning or ending in the past 3 and future 3 months, populated with the most recent answer to that question" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE   VIEW dbo.CUSTOM_QUESTION_ANSWERS_ACTIVITY AS&#13;&#10;SELECT &#13;&#10;    src.*,&#13;&#10;(SELECT TOP(1) cq1.ANSWER FROM dbo.CUSTOM_QUESTION_ANSWERS cq1 WHERE cq1.CUSTOMER_ID = src.CUSTOMER_ID AND cq1.TITLE = 'QUESTION_COLUMNS_BUILT_DYNAMICALLY' ORDER BY cq1.DATESTAMP DESC) AS [QUESTION_COLUMNS_BUILT_DYNAMICALLY]&#13;&#10;FROM &#13;&#10;    (&#13;&#10;&#13;&#10;SELECT DISTINCT &#13;&#10;    ae1.ACTIVITY_ID,&#13;&#10;    ae1.CUSTOMER_ID,&#13;&#10;    ae1.TRANSACTION_ID,&#13;&#10;    ac1.BEGINNINGDATE,&#13;&#10;    ac1.ENDINGDATE,&#13;&#10;    ae1.ENROLLMENT_STATUS&#13;&#10;FROM&#13;&#10;    dbo.ACTIVITIES ac1&#13;&#10;    INNER JOIN dbo.ACTIVITY_ENROLLMENTS ae1 ON(ac1.ACTIVITY_ID = ae1.ACTIVITY_ID)&#13;&#10;WHERE&#13;&#10;    ac1.ENDINGDATE &gt; DATEADD(MONTH, -3, SYSDATETIME())&#13;&#10;    AND ac1.BEGINNINGDATE &lt; DATEADD(MONTH, 3, SYSDATETIME())&#13;&#10;    AND EXISTS(SELECT * FROM dbo.CUSTOM_QUESTION_ANSWERS cq1 WHERE cq1.ACTIVITY_ID = ac1.ACTIVITY_ID AND cq1.CUSTOMER_ID = ae1.CUSTOMER_ID AND cq1.QUESTION_TYPE = 'ACTIVITY')&#13;&#10;&#13;&#10;    ) src;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVITY_ID" nullable="true" remarks="Activity ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_ID" nullable="true" remarks="Customer ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="TRANSACTION_ID" nullable="true" remarks="The most recent transaction ID related to the enrollment." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="3" name="BEGINNINGDATE" nullable="true" remarks="The beginning date of this activity" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="ENDINGDATE" nullable="true" remarks="The ending date of this activity" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ENROLLMENT_STATUS" nullable="true" remarks="The enrollment status of the customer (Enrolled / Withdrawn / Waitlisted / Waitlist Removed / Trial / Refunded)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="QUESTION_COLUMNS_BUILT_DYNAMICALLY" nullable="true" remarks="Columns for each custom question will be dynamically generated" size="500" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_ANSWERS_CUSTOMER" numRows="0" remarks="Columns dynamically generated for each Customer questions, populated with the most recent answer to that question" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE   VIEW dbo.CUSTOM_QUESTION_ANSWERS_CUSTOMER AS&#13;&#10;SELECT &#13;&#10;    src.*,&#13;&#10;(SELECT TOP(1) cq1.ANSWER FROM dbo.CUSTOM_QUESTION_ANSWERS cq1 WHERE cq1.CUSTOMER_ID = src.CUSTOMER_ID AND cq1.TITLE = 'QUESTION_COLUMNS_BUILT_DYNAMICALLY' ORDER BY cq1.DATESTAMP DESC) AS [QUESTION_COLUMNS_BUILT_DYNAMICALLY]&#13;&#10;FROM &#13;&#10;    (&#13;&#10;&#13;&#10;SELECT cu1.CUSTOMER_ID&#13;&#10;FROM dbo.CUSTOMERS cu1&#13;&#10;WHERE EXISTS(SELECT * FROM dbo.CUSTOM_QUESTION_ANSWERS cq1 WHERE cq1.CUSTOMER_ID = cu1.CUSTOMER_ID AND cq1.QUESTION_TYPE = 'CUSTOMER')&#13;&#10;&#13;&#10;    ) src;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOMER_ID" nullable="true" remarks="Customer ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="QUESTION_COLUMNS_BUILT_DYNAMICALLY" nullable="true" remarks="Columns for each custom question will be dynamically generated" size="500" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_ANSWERS_FACILITY" numRows="0" remarks="Columns dynamically generated for facility permit questions answered for permits with event start and end dates in the past 3 and future 3 months, populated with the most recent answer to that question" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE   VIEW dbo.CUSTOM_QUESTION_ANSWERS_FACILITY AS&#13;&#10;SELECT &#13;&#10;    src.*,&#13;&#10;(SELECT TOP(1) cq1.ANSWER FROM dbo.CUSTOM_QUESTION_ANSWERS cq1 WHERE cq1.CUSTOMER_ID = src.CUSTOMER_ID AND cq1.TITLE = 'QUESTION_COLUMNS_BUILT_DYNAMICALLY' ORDER BY cq1.DATESTAMP DESC) AS [QUESTION_COLUMNS_BUILT_DYNAMICALLY]&#13;&#10;FROM &#13;&#10;    (&#13;&#10;&#13;&#10;SELECT DISTINCT&#13;&#10;    fr1.CUSTOMER_ID,&#13;&#10;    fr1.FACILITY_ID,&#13;&#10;    fr1.PERMIT_ID,&#13;&#10;    fr1.PERMIT_NUMBER,&#13;&#10;    fr1.EVENT_START_DATE,&#13;&#10;    fr1.EVENT_END_DATE&#13;&#10;FROM dbo.FACILITY_RESERVATION fr1&#13;&#10;WHERE &#13;&#10;    fr1.EVENT_END_DATE &gt; DATEADD(MONTH, -3, SYSDATETIME())&#13;&#10;    AND fr1.EVENT_START_DATE &lt; DATEADD(MONTH, 3, SYSDATETIME())&#13;&#10;    AND EXISTS(SELECT * FROM dbo.CUSTOM_QUESTION_ANSWERS cq1 WHERE cq1.FACILITY_ID = fr1.FACILITY_ID AND cq1.PERMIT_ID = fr1.PERMIT_ID AND cq1.QUESTION_TYPE = 'FACILITY')&#13;&#10;&#13;&#10;    ) src;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOMER_ID" nullable="true" remarks="The ID of the customer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_ID" nullable="true" remarks="The ID of the facility" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PERMIT_ID" nullable="true" remarks="The ID of the permit" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PERMIT_NUMBER" nullable="true" remarks="The number of the permit" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="EVENT_START_DATE" nullable="true" remarks="Event start date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="EVENT_END_DATE" nullable="true" remarks="Event end date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="QUESTION_COLUMNS_BUILT_DYNAMICALLY" nullable="true" remarks="Columns for each custom question will be dynamically generated" size="500" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_ANSWERS_MEMBERSHIP" numRows="0" remarks="Columns dynamically generated for membership questions answered in the last 36 months, populated with the most recent answer to that question" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE   VIEW dbo.CUSTOM_QUESTION_ANSWERS_MEMBERSHIP AS&#13;&#10;SELECT &#13;&#10;    src.*,&#13;&#10;(SELECT TOP(1) cq1.ANSWER FROM dbo.CUSTOM_QUESTION_ANSWERS cq1 WHERE cq1.CUSTOMER_ID = src.CUSTOMER_ID AND cq1.TITLE = 'QUESTION_COLUMNS_BUILT_DYNAMICALLY' ORDER BY cq1.DATESTAMP DESC) AS [QUESTION_COLUMNS_BUILT_DYNAMICALLY]&#13;&#10;FROM &#13;&#10;    (&#13;&#10;&#13;&#10;SELECT &#13;&#10;    me1.CUSTOMER_ID,&#13;&#10;    me1.MEMBERSHIP_ID,&#13;&#10;    me1.PACKAGE_ID&#13;&#10;FROM dbo.MEMBERSHIPS me1&#13;&#10;WHERE EXISTS(SELECT * FROM dbo.CUSTOM_QUESTION_ANSWERS cq1 WHERE cq1.MEMBERSHIP_ID = me1.MEMBERSHIP_ID AND cq1.QUESTION_TYPE = 'MEMBERSHIP')&#13;&#10;&#13;&#10;    ) src;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOMER_ID" nullable="true" remarks="The customer ID of the member" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="MEMBERSHIP_ID" nullable="true" remarks="The ID of the membership" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PACKAGE_ID" nullable="true" remarks="The package ID of the customer's membership" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="QUESTION_COLUMNS_BUILT_DYNAMICALLY" nullable="true" remarks="Columns for each custom question will be dynamically generated" size="500" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_ANSWERS_POS" numRows="0" remarks="Columns dynamically generated for point of sale questions answered in the last 36 months, populated with the answer to that question" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.CUSTOM_QUESTION_ANSWERS_POS AS&#13;&#10;SELECT &#13;&#10;    src.*,&#13;&#10;(SELECT TOP(1) cq1.ANSWER FROM hub.CUSTOM_QUESTION_ANSWERS cq1 WHERE cq1.TRANSACTION_ID = src.TRANSACTION_ID AND cq1.TITLE = 'QUESTION_COLUMNS_BUILT_DYNAMICALLY' ORDER BY cq1.DATESTAMP DESC) AS [QUESTION_COLUMNS_BUILT_DYNAMICALLY]&#13;&#10;FROM &#13;&#10;    (&#13;&#10;SELECT &#13;&#10;    pr1.POSPRODUCT_ID,&#13;&#10;    pr1.PRODUCT_NAME,&#13;&#10;    FORMAT(rh1.RECEIPT_NUMBER, '#.0000') AS RECEIPT_NUMBER,&#13;&#10;    tr1.TRANSACTION_ID,&#13;&#10;    tr1.CUSTOMER_ID,&#13;&#10;    tr1.COMPANY_ID,&#13;&#10;    tr1.CREATION_DATE_TIME,&#13;&#10;    CAST(tr1.CREATION_DATE_TIME AS DATE) AS CREATION_DATE_ONLY&#13;&#10;FROM&#13;&#10;    hub.TRANSACTIONS tr1&#13;&#10;    JOIN hub.POS_PRODUCTS pr1 ON (pr1.POSPRODUCT_ID = tr1.POSPRODUCT_ID)&#13;&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON (rh1.RECEIPT_HEADER_ID = tr1.RECEIPT_HEADER_ID)&#13;&#10;WHERE&#13;&#10;    tr1.CREATION_DATE_TIME &gt; DATEADD(MONTH, -36, SYSDATETIME())&#13;&#10;    AND tr1.VOIDED = 0&#13;&#10;    AND EXISTS (SELECT * FROM hub.CUSTOM_QUESTION_ANSWERS cqa WHERE cqa.TRANSACTION_ID = tr1.TRANSACTION_ID AND cqa.QUESTION_TYPE = 'POS')&#13;&#10;    ) src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="POSPRODUCT_ID" nullable="true" remarks="The POS product ID if this is a point of sale transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PRODUCT_NAME" nullable="true" remarks="The POS product name if this is a point of sale transaction" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="RECEIPT_NUMBER" nullable="true" remarks="The receipt number that the transaction belongs to" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="TRANSACTION_ID" nullable="true" remarks="Transaction ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOMER_ID" nullable="true" remarks="ID of the customer who is the participant of the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="COMPANY_ID" nullable="true" remarks="ID of the company who is the owner of the transaction if applicable" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="CREATION_DATE_TIME" nullable="true" remarks="Date and time that the transaction was created" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CREATION_DATE_ONLY" nullable="true" remarks="Date that the transaction was created (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="QUESTION_COLUMNS_BUILT_DYNAMICALLY" nullable="true" remarks="Columns for each custom question will be dynamically generated" size="500" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_ANSWERS_PROGRAM" numRows="0" remarks="Columns dynamically generated for questions for program sessions beginning or ending in the past 3 and future 3 months, populated with the most recent answer to that question" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE   VIEW dbo.CUSTOM_QUESTION_ANSWERS_PROGRAM AS&#13;&#10;SELECT &#13;&#10;    src.*,&#13;&#10;(SELECT TOP(1) cq1.ANSWER FROM dbo.CUSTOM_QUESTION_ANSWERS cq1 WHERE cq1.CUSTOMER_ID = src.CUSTOMER_ID AND cq1.TITLE = 'QUESTION_COLUMNS_BUILT_DYNAMICALLY' ORDER BY cq1.DATESTAMP DESC) AS [QUESTION_COLUMNS_BUILT_DYNAMICALLY]&#13;&#10;FROM &#13;&#10;    (&#13;&#10;&#13;&#10;SELECT DISTINCT &#13;&#10;    pr1.PROGRAM_ID,&#13;&#10;    pr1.SESSION_ID,&#13;&#10;    pr1.CUSTOMER_ID,&#13;&#10;    pr1.REGISTRATION_ID,&#13;&#10;    pr1.TRANSACTION_ID,&#13;&#10;    pr1.BEGIN_DATE_TIME,&#13;&#10;    pr1.END_DATE_TIME,&#13;&#10;    pr1.BEGIN_DATE_ONLY,&#13;&#10;    pr1.END_DATE_ONLY&#13;&#10;FROM&#13;&#10;    dbo.SESSIONS se1&#13;&#10;    INNER JOIN dbo.PROGRAM_REGISTRATIONS pr1 ON(pr1.PROGRAM_ID = se1.PROGRAM_ID AND pr1.SESSION_ID = se1.SESSION_ID)&#13;&#10;WHERE&#13;&#10;    se1.END_DATE_TIME &gt; DATEADD(MONTH, -3, SYSDATETIME())&#13;&#10;    AND se1.BEGIN_DATE_TIME &lt; DATEADD(MONTH, 3, SYSDATETIME())&#13;&#10;    AND EXISTS(SELECT * FROM dbo.CUSTOM_QUESTION_ANSWERS cq1 WHERE cq1.PROGRAM_ID = pr1.PROGRAM_ID AND cq1.CUSTOMER_ID = pr1.CUSTOMER_ID AND cq1.QUESTION_TYPE = 'PROGRAM')&#13;&#10;        &#13;&#10;    ) src;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PROGRAM_ID" nullable="true" remarks="Program ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SESSION_ID" nullable="true" remarks="Session ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_ID" nullable="true" remarks="Customer's ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="REGISTRATION_ID" nullable="true" remarks="ID of the registration record" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="TRANSACTION_ID" nullable="true" remarks="The most recent transaction ID for this program registration" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="BEGIN_DATE_TIME" nullable="true" remarks="Session start date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="END_DATE_TIME" nullable="true" remarks="Session end date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="BEGIN_DATE_ONLY" nullable="true" remarks="Session start date (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="END_DATE_ONLY" nullable="true" remarks="Session end date (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="QUESTION_COLUMNS_BUILT_DYNAMICALLY" nullable="true" remarks="Columns for each custom question will be dynamically generated" size="500" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_AVAILABLE_ANSWERS" numRows="0" remarks="Predefined answers for activity custom questions." schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CUSTOM_QUESTION_AVAILABLE_ANSWERS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    cqla.CUSTOM_QUESTION_ID,&#13;&#10;    cqla.ANSWER,&#13;&#10;    cqla.IS_DEFAULT_RESPONSE,&#13;&#10;    cqla.SUB_CUSTOM_QUESTION_ID,&#13;&#10;    cqla.DEMOGRAPHIC_ID,&#13;&#10;    de1.DEMOGRAPHIC_NAME,&#13;&#10;    cqla.MIN_AGE,&#13;&#10;    cqla.MAX_AGE,&#13;&#10;    ge1.GENDER_NAME,&#13;&#10;    cqla.GENDER_INDEX,&#13;&#10;    cqla.ANSWER_CODE&#13;&#10;FROM&#13;&#10;    hub.CUSTOM_QUESTION_LINKED_ANSWERS cqla&#13;&#10;    LEFT JOIN hub.DEMOGRAPHICS de1 ON (de1.DEMOGRAPHIC_ID = cqla.DEMOGRAPHIC_ID)&#13;&#10;    LEFT JOIN hub.GENDERS ge1 ON (ge1.GENDER_INDEX = cqla.GENDER_INDEX)&#13;&#10;WHERE&#13;&#10;    cqla.ACTIVITY_ID IS NULL;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOM_QUESTION_ID" nullable="true" remarks="Custom question ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ANSWER" nullable="true" remarks="The predefined answer for a custom question" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="IS_DEFAULT_RESPONSE" nullable="true" remarks="Whether this answer is the default answer for the custom question (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SUB_CUSTOM_QUESTION_ID" nullable="true" remarks="The ID of a custom question that this answer links to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="DEMOGRAPHIC_ID" nullable="true" remarks="The demographic ID related to this answer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="DEMOGRAPHIC_NAME" nullable="true" remarks="The demographic name related to this answer" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="MIN_AGE" nullable="true" remarks="The minimum age to be presented with this answer (0 = ALL)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="MAX_AGE" nullable="true" remarks="The maximum age to be presented with this answer (0 = ALL)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="GENDER_NAME" nullable="true" remarks="The name of the gender to be presented with this answer" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="GENDER_INDEX" nullable="true" remarks="The ID of the gender to be presented with this answer (0 = ALL)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ANSWER_CODE" nullable="true" remarks="The code that will be saved as the answer value when selecting this answer" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_GROUP_LINKS" numRows="0" remarks="Custom question groups linked to individual subject areas (for internal use)." schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21452&#13;&#10;--FileName=dbo.CUSTOM_QUESTION_GROUP_LINKS.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.CUSTOM_QUESTION_GROUP_LINKS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CUSTOM_QUESTION_GROUP_ID,&#13;&#10;    src.GROUP_DESCRIPTION,&#13;&#10;    src.GROUP_HEADER_TEXT,&#13;&#10;    src.GROUP_ORDER,&#13;&#10;    src.CUSTOMERCUSTOM_QUESTION_GROUP_ID,&#13;&#10;    src.CHARGE_QG_ID,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    src.CHARGE_ELG_QG_ID,&#13;&#10;    src.DCPROGRAMCUSTOM_QUESTION_GROUP_ID,&#13;&#10;    src.DCPROGRAM_ID,&#13;&#10;    src.EVENTTYPECUSTOM_QUESTION_GROUP_ID,&#13;&#10;    src.EVENTTYPE_ID,&#13;&#10;    src.PACKAGECUSTOM_QUESTION_GROUP_ID,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    src.PACKAGE_CUSTOM_QUESTION_GROUPS_RENEWAL_ID,&#13;&#10;    src.POS_PRODUCT_CUSTOM_QUESTION_GROUP_ID,&#13;&#10;    src.POSPRODUCT_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOM_QUESTION_GROUP_LINKS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOM_QUESTION_GROUP_ID" nullable="true" remarks="Custom question group ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="GROUP_DESCRIPTION" nullable="true" remarks="Custom question group description" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="GROUP_HEADER_TEXT" nullable="true" remarks="Custom question group heading text" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GROUP_ORDER" nullable="true" remarks="Custom question group display order" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMERCUSTOM_QUESTION_GROUP_ID" nullable="true" remarks="Customer custom question group ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CHARGE_QG_ID" nullable="true" remarks="Charge custom question group ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CHARGE_ID" nullable="true" remarks="Charge ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CHARGE_ELG_QG_ID" nullable="true" remarks="Charge eligibility custom question group ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="DCPROGRAMCUSTOM_QUESTION_GROUP_ID" nullable="true" remarks="Program custom question group ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="DCPROGRAM_ID" nullable="true" remarks="Program ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="EVENTTYPECUSTOM_QUESTION_GROUP_ID" nullable="true" remarks="Event type custom question group ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="EVENTTYPE_ID" nullable="true" remarks="Event type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="PACKAGECUSTOM_QUESTION_GROUP_ID" nullable="true" remarks="Package custom question group ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PACKAGE_ID" nullable="true" remarks="Package ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="PACKAGE_CUSTOM_QUESTION_GROUPS_RENEWAL_ID" nullable="true" remarks="Package renewal custom question group ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="POS_PRODUCT_CUSTOM_QUESTION_GROUP_ID" nullable="true" remarks="POS product custom question group ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="POSPRODUCT_ID" nullable="true" remarks="POS product ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_GROUP_QUESTIONS" numRows="0" remarks="Questions contained within custom question groups." schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CUSTOM_QUESTION_GROUP_QUESTIONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    cqg.CUSTOM_QUESTION_GROUP_ID,&#13;&#10;    cqg.GROUP_DESCRIPTION,&#13;&#10;    cqg.GROUP_HEADER_TEXT,&#13;&#10;    cql.QUESTION_ORDER,&#13;&#10;    cq.CUSTOM_QUESTION_ID,&#13;&#10;    cq.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    cq.QUESTION,&#13;&#10;    cq.IS_REQUIRED,&#13;&#10;    cq.QUESTION_TYPE,&#13;&#10;    cq.NOTE,&#13;&#10;    cq.DEFAULT_ANSWER,&#13;&#10;    cq.TITLE,&#13;&#10;    cq.ANSWER_FORMAT,&#13;&#10;    cq.IS_RETIRED,&#13;&#10;    cq.HIDE_ON_INTERNET,&#13;&#10;    cq.ADD_TO_NEW_ACTIVITIES,&#13;&#10;    cq.QUESTION_SCOPE,&#13;&#10;    cq.HIDE_ON_ADMIN,&#13;&#10;    cq.DO_NOT_SHOW_AFTER,&#13;&#10;    cq.DO_NOT_EDIT_AFTER,&#13;&#10;    cq.USE_ANSWER_CODE,&#13;&#10;    cq.QUESTION_HINT,&#13;&#10;    cq.MESSAGE_FOR_USED_UP_ANSWERS,&#13;&#10;    cq.ANSWER_MAX_LENGTH,&#13;&#10;    cq.EXTRA_ANSWER_TEXT,&#13;&#10;    cq.CUSTOM_QUESTION_TYPE_ID,&#13;&#10;    cct.CUSTOM_QUESTION_TYPE_NAME AS CUSTOM_QUESTION_TYPE,&#13;&#10;    cq.APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS,&#13;&#10;    cq.IS_DEMOGRAPHIC_RELATED_QUESTION&#13;&#10;FROM&#13;&#10;    hub.CUSTOM_QUESTIONS cq&#13;&#10;    JOIN hub.CUSTOM_QUESTION_LINKS cql ON cql.CUSTOM_QUESTION_ID = cq.CUSTOM_QUESTION_ID&#13;&#10;    JOIN (&#13;&#10;        SELECT&#13;&#10;                cqg2.CUSTOM_QUESTION_GROUP_ID,&#13;&#10;                MAX(cqg2.GROUP_DESCRIPTION) GROUP_DESCRIPTION,&#13;&#10;                MAX(cqg2.GROUP_HEADER_TEXT) GROUP_HEADER_TEXT&#13;&#10;        FROM (&#13;&#10;            SELECT &#13;&#10;                cqgl2.CUSTOM_QUESTION_GROUP_ID,&#13;&#10;                cqgl2.GROUP_DESCRIPTION,&#13;&#10;                cqgl2.GROUP_HEADER_TEXT&#13;&#10;            FROM&#13;&#10;                hub.CUSTOM_QUESTION_GROUP_LINKS cqgl2&#13;&#10;            UNION ALL&#13;&#10;            SELECT &#13;&#10;                cql2.CUSTOM_QUESTION_GROUP_ID,&#13;&#10;                cql2.GROUP_DESCRIPTION,&#13;&#10;                cql2.GROUP_HEADER_TEXT&#13;&#10;            FROM&#13;&#10;                hub.CUSTOM_QUESTION_LINKS cql2&#13;&#10;            WHERE&#13;&#10;                cql2.ACTIVITYCUSTOMQUESTION_ID IS NOT NULL&#13;&#10;                AND cql2.CUSTOM_QUESTION_GROUP_ID  IS NOT NULL&#13;&#10;            ) cqg2&#13;&#10;        GROUP BY cqg2.CUSTOM_QUESTION_GROUP_ID&#13;&#10;        ) cqg ON cqg.CUSTOM_QUESTION_GROUP_ID = cql.CUSTOM_QUESTION_GROUP_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.SITE_ID = cq.SITE_ID&#13;&#10;    LEFT JOIN hub.CUSTOM_QUESTION_TYPES cct ON (cct.CUSTOM_QUESTION_TYPE_ID = cq.CUSTOM_QUESTION_TYPE_ID)&#13;&#10;WHERE&#13;&#10;    cql.GROUPCUSTOMQUESTION_ID IS NOT NULL;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOM_QUESTION_GROUP_ID" nullable="true" remarks="Custom question group ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="GROUP_DESCRIPTION" nullable="true" remarks="Custom question group description" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="GROUP_HEADER_TEXT" nullable="true" remarks="Custom question group heading text" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="QUESTION_ORDER" nullable="true" remarks="The order number that the question should be presented in" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOM_QUESTION_ID" nullable="true" remarks="Custom question ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SITE_ID" nullable="true" remarks="Site ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SITE_NAME" nullable="true" remarks="Site name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="QUESTION" nullable="true" remarks="The text of the question to be asked" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="IS_REQUIRED" nullable="true" remarks="Whether an answer is required for the custom question (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="QUESTION_TYPE" nullable="true" remarks="The type of control to be used to answer the question (User Entry / Single Selection - Dropdown / Single Selection - Radio / Multi Selection - Checkbox / Multi Selection - Listbox / Auto-fill Conditional)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="NOTE" nullable="true" remarks="A user note related to the custom question" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="DEFAULT_ANSWER" nullable="true" remarks="The optional default answer for the user entry question" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="TITLE" nullable="true" remarks="The title of the custom question" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ANSWER_FORMAT" nullable="true" remarks="The answer format of the user entry question (Free Form / Phone Number / Date / Time / SSN / Postal Code / Upper-case Alpha / Lower-case Alpha / Numbers Only / Alpha Only / Duration)" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="IS_RETIRED" nullable="true" remarks="Whether the custom question has been retired (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether the custom question should be exluded from display on the internet site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ADD_TO_NEW_ACTIVITIES" nullable="true" remarks="Whether the custom question should be automatically added to new activities (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="QUESTION_SCOPE" nullable="true" remarks="The scope of the custom question (Ask for every transaction / Ask once per receipt)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="HIDE_ON_ADMIN" nullable="true" remarks="Whether the custom question should be excluded from display on the admin site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="DO_NOT_SHOW_AFTER" nullable="true" remarks="The last date that the custom question should be displayed" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="DO_NOT_EDIT_AFTER" nullable="true" remarks="The last date that the custom question should allow edits" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="USE_ANSWER_CODE" nullable="true" remarks="Whether the custom question uses answer codes (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="QUESTION_HINT" nullable="true" remarks="A hint to be displayed for the custom question" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="MESSAGE_FOR_USED_UP_ANSWERS" nullable="true" remarks="A message to be displayed for the custom question for answers that have reached their use count limit" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="ANSWER_MAX_LENGTH" nullable="true" remarks="The maximum answer length for user entry questions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="EXTRA_ANSWER_TEXT" nullable="true" remarks="Additional instruction text to be displayed for a multiple-choice question" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="CUSTOM_QUESTION_TYPE_ID" nullable="true" remarks="Custom question type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="CUSTOM_QUESTION_TYPE" nullable="true" remarks="Custom question type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS" nullable="true" remarks="Whether the answer given should replace prior answers to the same question for the customer (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="IS_DEMOGRAPHIC_RELATED_QUESTION" nullable="true" remarks="Whether the custom question is related to demographics (Yes/No)" size="5" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_GROUPS" numRows="0" remarks="Custom question groups, for customers and transactions." schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21069&#13;&#10;--FileName=dbo.CUSTOM_QUESTION_GROUPS.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.CUSTOM_QUESTION_GROUPS&#13;&#10;AS&#13;&#10;WITH CQ_GROUPS (&#13;&#10;    CUSTOM_QUESTION_GROUP_ID,&#13;&#10;    GROUP_DESCRIPTION,&#13;&#10;    GROUP_HEADER_TEXT)&#13;&#10;AS (&#13;&#10;    SELECT &#13;&#10;        cqgl.CUSTOM_QUESTION_GROUP_ID,&#13;&#10;        cqgl.GROUP_DESCRIPTION,&#13;&#10;        cqgl.GROUP_HEADER_TEXT&#13;&#10;    FROM&#13;&#10;        hub.CUSTOM_QUESTION_GROUP_LINKS cqgl&#13;&#10;    UNION ALL&#13;&#10;    SELECT &#13;&#10;        cql.CUSTOM_QUESTION_GROUP_ID,&#13;&#10;        cql.GROUP_DESCRIPTION,&#13;&#10;        cql.GROUP_HEADER_TEXT&#13;&#10;    FROM&#13;&#10;        hub.CUSTOM_QUESTION_LINKS cql&#13;&#10;    WHERE&#13;&#10;        cql.ACTIVITYCUSTOMQUESTION_ID IS NOT NULL&#13;&#10;        AND cql.CUSTOM_QUESTION_GROUP_ID  IS NOT NULL)&#13;&#10;SELECT&#13;&#10;        cqg.CUSTOM_QUESTION_GROUP_ID,&#13;&#10;        MAX(cqg.GROUP_DESCRIPTION) GROUP_DESCRIPTION,&#13;&#10;        MAX(cqg.GROUP_HEADER_TEXT) GROUP_HEADER_TEXT&#13;&#10;FROM&#13;&#10;    CQ_GROUPS cqg&#13;&#10;GROUP BY cqg.CUSTOM_QUESTION_GROUP_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOM_QUESTION_GROUP_ID" nullable="true" remarks="Custom question group ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="GROUP_DESCRIPTION" nullable="true" remarks="Custom question group description" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="GROUP_HEADER_TEXT" nullable="true" remarks="Custom question group heading text" size="50" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_LINKED_ANSWERS" numRows="0" remarks="Predefined answers for custom questions (for internal use)." schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CUSTOM_QUESTION_LINKED_ANSWERS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CUSTOM_QUESTION_ID,&#13;&#10;    src.ANSWER,&#13;&#10;    src.IS_DEFAULT_RESPONSE,&#13;&#10;    src.ANSWER_ID,&#13;&#10;    src.SUB_CUSTOM_QUESTION_ID,&#13;&#10;    src.DEMOGRAPHIC_ID,&#13;&#10;    de1.DEMOGRAPHIC_NAME,&#13;&#10;    src.MIN_AGE,&#13;&#10;    src.MAX_AGE,&#13;&#10;    ge1.GENDER_NAME,&#13;&#10;    src.GENDER_INDEX,&#13;&#10;    src.ANSWER_CODE,&#13;&#10;    src.ACTIVITY_CUSTOM_QUESTION_ANSWER_ID,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    src.MAX_NUMBER_OF_USES,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOM_QUESTION_LINKED_ANSWERS src&#13;&#10;    LEFT JOIN hub.DEMOGRAPHICS de1 ON (de1.DEMOGRAPHIC_ID = src.DEMOGRAPHIC_ID)&#13;&#10;    LEFT JOIN hub.GENDERS ge1 ON (ge1.GENDER_INDEX = src.GENDER_INDEX);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOM_QUESTION_ID" nullable="true" remarks="Custom question ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ANSWER" nullable="true" remarks="The predefined answer for a custom question" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="IS_DEFAULT_RESPONSE" nullable="true" remarks="Whether this answer is the default answer for the custom question (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ANSWER_ID" nullable="true" remarks="The answer ID for this predefined answer (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SUB_CUSTOM_QUESTION_ID" nullable="true" remarks="The ID of a custom question that this answer links to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="DEMOGRAPHIC_ID" nullable="true" remarks="The demographic ID related to this answer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="DEMOGRAPHIC_NAME" nullable="true" remarks="The demographic name related to this answer" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="MIN_AGE" nullable="true" remarks="The minimum age to be presented with this answer (0 = ALL)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="MAX_AGE" nullable="true" remarks="The maximum age to be presented with this answer (0 = ALL)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="GENDER_NAME" nullable="true" remarks="The name of the gender to be presented with this answer" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="GENDER_INDEX" nullable="true" remarks="The ID of the gender to be presented with this answer (0 = ALL)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ANSWER_CODE" nullable="true" remarks="The code that will be saved as the answer value when selecting this answer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ACTIVITY_CUSTOM_QUESTION_ANSWER_ID" nullable="true" remarks="The activity custom question answer ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ACTIVITY_ID" nullable="true" remarks="The activity ID that this record links to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="MAX_NUMBER_OF_USES" nullable="true" remarks="The maximum number of times that this answer can be used for an activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_LINKS" numRows="0" remarks="Custom questions linked to individual subject areas (for internal use)." schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21454&#13;&#10;--FileName=dbo.CUSTOM_QUESTION_LINKS.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.CUSTOM_QUESTION_LINKS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CUSTOM_QUESTION_ID,&#13;&#10;    src.QUESTION_ORDER,&#13;&#10;    src.GROUPCUSTOMQUESTION_ID,&#13;&#10;    src.CUSTOM_QUESTION_GROUP_ID,&#13;&#10;    src.CUSTOMERCUSTOMQUESTION_ID,&#13;&#10;    src.IS_FAMILY_LEVEL,&#13;&#10;    src.ACTIVITYCUSTOMQUESTION_ID,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    src.IS_REQUIRED,&#13;&#10;    src.DO_NOT_EDIT_AFTER,&#13;&#10;    src.DO_NOT_SHOW_AFTER,&#13;&#10;    src.CREATE_TEAM_ONLY_QUESTION,&#13;&#10;    src.JOIN_TEAM_ONLY_QUESTION,&#13;&#10;    src.NO_TEAM_ONLY_QUESTION,&#13;&#10;    src.GROUP_DESCRIPTION,&#13;&#10;    src.GROUP_HEADER_TEXT,&#13;&#10;    src.GROUP_ORDER,&#13;&#10;    src.CHARGE_CQ_ID,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    src.CHARGE_ELG_CQ_ID,&#13;&#10;    src.CHARGE_CUSTOMEQUESTION_ANSWERS_ID,&#13;&#10;    src.STANDARDCHARGES_ID,&#13;&#10;    src.ANSWERS,&#13;&#10;    src.DCPROGRAMCUSTOMQUESTION_ID,&#13;&#10;    src.DCPROGRAM_ID,&#13;&#10;    src.EVENTTYPECUSTOMQUESTION_ID,&#13;&#10;    src.EVENTTYPE_ID,&#13;&#10;    src.PACKAGECUSTOMQUESTION_ID,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    src.PACKAGE_CUSTOMQUESTIONS_RENEWAL_ID,&#13;&#10;    src.PASSLAYOUT_CUSTOMQUESTION_ID,&#13;&#10;    src.PASSLAYOUT_ID,&#13;&#10;    src.POS_PRODUCT_CUSTOM_QUESTION_ID,&#13;&#10;    src.POSPRODUCT_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOM_QUESTION_LINKS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOM_QUESTION_ID" nullable="true" remarks="Custom question ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="QUESTION_ORDER" nullable="true" remarks="The order number that the question should be presented in" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="GROUPCUSTOMQUESTION_ID" nullable="true" remarks="Group custom question ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOM_QUESTION_GROUP_ID" nullable="true" remarks="Custom question group ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMERCUSTOMQUESTION_ID" nullable="true" remarks="Customer custom question ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="IS_FAMILY_LEVEL" nullable="true" remarks="Whether the question is presented at the family level (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVITYCUSTOMQUESTION_ID" nullable="true" remarks="Activity custom question ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVITY_ID" nullable="true" remarks="Activity ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="IS_REQUIRED" nullable="true" remarks="Whether an answer is required to the question (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="DO_NOT_EDIT_AFTER" nullable="true" remarks="The last date that the custom question should allow edits" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="DO_NOT_SHOW_AFTER" nullable="true" remarks="The last date that the custom question should be displayed" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CREATE_TEAM_ONLY_QUESTION" nullable="true" remarks="Whether the question should only be displayed when creating a new team (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="JOIN_TEAM_ONLY_QUESTION" nullable="true" remarks="Whether the question should only be displayed when joining an existing team (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="NO_TEAM_ONLY_QUESTION" nullable="true" remarks="Whether the question should only be displayed when not specifying a team (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="GROUP_DESCRIPTION" nullable="true" remarks="Custom question group description" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="GROUP_HEADER_TEXT" nullable="true" remarks="Custom question group heading text" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="GROUP_ORDER" nullable="true" remarks="Custom question group order" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="CHARGE_CQ_ID" nullable="true" remarks="Charge custom question ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="CHARGE_ID" nullable="true" remarks="Charge ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="CHARGE_ELG_CQ_ID" nullable="true" remarks="Charge eligibility custom question ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="CHARGE_CUSTOMEQUESTION_ANSWERS_ID" nullable="true" remarks="Standard charge custom question ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="STANDARDCHARGES_ID" nullable="true" remarks="Standard charge ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="ANSWERS" nullable="true" remarks="Defined answers for the custom question" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="DCPROGRAMCUSTOMQUESTION_ID" nullable="true" remarks="Program custom question ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="DCPROGRAM_ID" nullable="true" remarks="Program ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="EVENTTYPECUSTOMQUESTION_ID" nullable="true" remarks="Event type custom question ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="EVENTTYPE_ID" nullable="true" remarks="Event type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="PACKAGECUSTOMQUESTION_ID" nullable="true" remarks="Package custom question ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="PACKAGE_ID" nullable="true" remarks="Package ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="PACKAGE_CUSTOMQUESTIONS_RENEWAL_ID" nullable="true" remarks="Package renewal custom question ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="PASSLAYOUT_CUSTOMQUESTION_ID" nullable="true" remarks="Pass layout custom question ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="PASSLAYOUT_ID" nullable="true" remarks="Pass layout ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="POS_PRODUCT_CUSTOM_QUESTION_ID" nullable="true" remarks="POS product custom question ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="POSPRODUCT_ID" nullable="true" remarks="POS product" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="35" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_TYPES" numRows="0" remarks="Your organization's defined custom question types" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CUSTOM_QUESTION_TYPES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.CUSTOM_QUESTION_TYPE_ID,&#13;&#10;    src.CUSTOM_QUESTION_TYPE_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOM_QUESTION_TYPES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOM_QUESTION_TYPE_ID" nullable="false" remarks="The custom question type ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CUSTOM_QUESTION_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOM_QUESTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOM_QUESTION_TYPE_NAME" nullable="true" remarks="The custom question type name" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="2" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CUSTOM_QUESTION_TYPE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTIONS" numRows="0" remarks="Custom questions, for customers and transactions" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CUSTOM_QUESTIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CUSTOM_QUESTION_ID,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.QUESTION,&#13;&#10;    src.IS_REQUIRED,&#13;&#10;    src.QUESTION_TYPE,&#13;&#10;    src.NOTE,&#13;&#10;    src.DEFAULT_ANSWER,&#13;&#10;    src.TITLE,&#13;&#10;    src.ANSWER_FORMAT,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.HIDE_ON_INTERNET,&#13;&#10;    src.ADD_TO_NEW_ACTIVITIES,&#13;&#10;    src.QUESTION_SCOPE,&#13;&#10;    src.HIDE_ON_ADMIN,&#13;&#10;    src.DO_NOT_SHOW_AFTER,&#13;&#10;    src.DO_NOT_EDIT_AFTER,&#13;&#10;    src.USE_ANSWER_CODE,&#13;&#10;    src.QUESTION_HINT,&#13;&#10;    src.MESSAGE_FOR_USED_UP_ANSWERS,&#13;&#10;    src.ANSWER_MAX_LENGTH,&#13;&#10;    src.EXTRA_ANSWER_TEXT,&#13;&#10;    src.CUSTOM_QUESTION_TYPE_ID,&#13;&#10;    cct.CUSTOM_QUESTION_TYPE_NAME AS CUSTOM_QUESTION_TYPE,&#13;&#10;    src.APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS,&#13;&#10;    src.IS_DEMOGRAPHIC_RELATED_QUESTION,&#13;&#10;    src.CUSTOM_QUESTION_FOR,&#13;&#10;    src.DYNAMIC_ANSWER_BASED_ON,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOM_QUESTIONS src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.CUSTOM_QUESTION_TYPES cct ON (cct.CUSTOM_QUESTION_TYPE_ID = src.CUSTOM_QUESTION_TYPE_ID)&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOM_QUESTION_ID" nullable="true" remarks="Custom question ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CUSTOMQUESTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="CUSTOM_QUESTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGE_SEQUENCE_LINKS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_ID" nullable="true" remarks="Site ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_NAME" nullable="true" remarks="Site name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="QUESTION" nullable="true" remarks="The text of the question to be asked" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="IS_REQUIRED" nullable="true" remarks="Whether an answer is required for the custom question (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="QUESTION_TYPE" nullable="true" remarks="The type of control to be used to answer the question (User Entry / Single Selection - Dropdown / Single Selection - Radio / Multi Selection - Checkbox / Multi Selection - Listbox / Auto-fill Conditional)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="NOTE" nullable="true" remarks="A user note related to the custom question" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="DEFAULT_ANSWER" nullable="true" remarks="The optional default answer for the user entry question" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="TITLE" nullable="true" remarks="The title of the custom question" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ANSWER_FORMAT" nullable="true" remarks="The answer format of the user entry question (Free Form / Phone Number / Date / Time / SSN / Postal Code / Upper-case Alpha / Lower-case Alpha / Numbers Only / Alpha Only / Duration)" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="IS_RETIRED" nullable="true" remarks="Whether the custom question has been retired (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether the custom question should be excluded from display on the internet site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ADD_TO_NEW_ACTIVITIES" nullable="true" remarks="Whether the custom question should be automatically added to new activities (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="QUESTION_SCOPE" nullable="true" remarks="The scope of the custom question (Ask for every transaction / Ask once per receipt)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="HIDE_ON_ADMIN" nullable="true" remarks="Whether the custom question should be excluded from display on the admin site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="DO_NOT_SHOW_AFTER" nullable="true" remarks="The last date that the custom question should be displayed" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="DO_NOT_EDIT_AFTER" nullable="true" remarks="The last date that the custom question should allow edits" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="USE_ANSWER_CODE" nullable="true" remarks="Whether the custom question uses answer codes (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="QUESTION_HINT" nullable="true" remarks="A hint to be displayed for the custom question" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="MESSAGE_FOR_USED_UP_ANSWERS" nullable="true" remarks="A message to be displayed for the custom question for answers that have reached their use count limit" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ANSWER_MAX_LENGTH" nullable="true" remarks="The maximum answer length for user entry questions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="EXTRA_ANSWER_TEXT" nullable="true" remarks="Additional instruction text to be displayed for a multiple-choice question" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="CUSTOM_QUESTION_TYPE_ID" nullable="true" remarks="Custom question type ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOM_QUESTION_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOM_QUESTION_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="CUSTOM_QUESTION_TYPE" nullable="true" remarks="Custom question type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS" nullable="true" remarks="Whether the answer given should replace prior answers to the same question for the customer (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="IS_DEMOGRAPHIC_RELATED_QUESTION" nullable="true" remarks="Whether the custom question is related to demographics (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="CUSTOM_QUESTION_FOR" nullable="true" remarks="Whether the custom question is for normal use or is specifically for the prospects form on CUI (Normal / Prospects Form)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="DYNAMIC_ANSWER_BASED_ON" nullable="true" remarks="The source of the dynamic answer options if applicable (Site Name / Category Name / NULL)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="29" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CUSTOM_QUESTION_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_ACCOUNTS" numRows="0" remarks="Customer accounts" schema="dbo" type="VIEW" viewSql="&#9;&#9;&#9;&#9;&#9;&#13;&#10;CREATE VIEW dbo.CUSTOMER_ACCOUNTS &#13;&#10;AS &#9;&#13;&#10;SELECT &#13;&#10;&#9;ca.ORG_ID,&#13;&#10;&#9;ca.CUSTOMERACCOUNT_ID,&#13;&#10;&#9;ca.RECEIPTHEADER_ID,&#13;&#10;&#9;ca.RECEIPTPAYMENT_ID,&#13;&#10;&#9;ca.CUSTOMER_ID,&#13;&#10;&#9;CONCAT(cus.CUSTOMER_FIRST_NAME, ' ', cus.CUSTOMER_LAST_NAME) AS CUSTOMER_NAME,&#13;&#10;&#9;ca.COMPANY_ID,&#13;&#10;&#9;com.COMPANY_NAME,&#13;&#10;&#9;ca.SITE_ID,&#13;&#10;&#9;si.SITE_NAME,&#13;&#10;&#9;ca.WORKSTATION_ID,&#13;&#10;&#9;ws.WORKSTATION_NAME,&#13;&#10;&#9;ca.SYSTEMUSER_ID,&#13;&#10;&#9;CONCAT(su.USER_FIRST_NAME, ' ', su.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;&#9;ca.TRANSACTIONTYPE,&#13;&#10;&#9;ca.AMOUNT,&#13;&#10;&#9;ca.DESCRIPTION,&#13;&#10;&#9;ca.DATESTAMP,&#13;&#10;&#9;ca.VOIDED,&#13;&#10;&#9;ca.VOIDEDBY,&#13;&#10;&#9;CONCAT(su2.USER_FIRST_NAME, ' ', su2.USER_LAST_NAME) AS VOIDED_BY_USER_NAME,&#13;&#10;&#9;ca.VOIDEDON,&#13;&#10;&#9;ca.EXPIRATIONDATE,&#13;&#10;&#9;ca.LAST_SYNC_TIME&#13;&#10;FROM hub.CUSTOMERACCOUNTS ca&#13;&#10;LEFT JOIN hub.SITES si ON si.SITE_ID = ca.SITE_ID AND si.ORG_ID = ca.ORG_ID&#13;&#10;LEFT JOIN hub.WORKSTATIONS WS ON WS.WORKSTATION_ID = ca.WORKSTATION_ID AND ws.ORG_ID = ca.ORG_ID&#13;&#10;LEFT JOIN hub.SYSTEM_USERS su ON su.SYSTEMUSER_ID = ca.SYSTEMUSER_ID AND su.ORG_ID = ca.ORG_ID&#13;&#10;LEFT JOIN hub.SYSTEM_USERS su2 ON su2.SYSTEMUSER_ID = ca.VOIDEDBY AND su2.ORG_ID = ca.ORG_ID&#13;&#10;LEFT JOIN hub.CUSTOMERS cus ON cus.CUSTOMER_ID = ca.CUSTOMER_ID AND cus.ORG_ID = ca.ORG_ID&#13;&#10;LEFT JOIN hub.COMPANIES com ON com.COMPANY_ID = ca.COMPANY_ID AND com.ORG_ID = ca.ORG_ID&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMERACCOUNT_ID" nullable="false" remarks="The Customer Account ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="RECEIPTHEADER_ID" nullable="true" remarks="ID of the receipt header" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="RECEIPTPAYMENT_ID" nullable="true" remarks="The receipt payment ID that the Customer Account is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOMER_ID" nullable="true" remarks="Customer ID of the Account" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMER_NAME" nullable="false" remarks="The name of the Customer associated with the account" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="COMPANY_ID" nullable="true" remarks="The third-party account company" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="COMPANY_NAME" nullable="true" remarks="The third-party account Company Name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SITE_ID" nullable="true" remarks="ID of the Site where the Customer Account was processed" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="SITE_NAME" nullable="true" remarks="Name of the Site where the Customer Account was processed" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="WORKSTATION_ID" nullable="true" remarks="ID of workstation where this Customer Account was processed" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="WORKSTATION_NAME" nullable="true" remarks="Name of workstation where this Customer Account was processed" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the system user who created the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the system user who created the transaction" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="TRANSACTIONTYPE" nullable="true" remarks="Transaction type of the Customer Account" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="15" name="AMOUNT" nullable="true" remarks="The gross amount sold (including zero). This is the amount after discount: the actual paid amount." size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="DESCRIPTION" nullable="true" remarks="The description of this Customer Accout item" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="17" name="DATESTAMP" nullable="true" remarks="The date and time the Customer Account was created" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="VOIDED" nullable="true" remarks="Whether the Customer Account has been voided (Yes/No)" size="3" type="char" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="VOIDEDBY" nullable="true" remarks="The ID of the system user who voided the Customer Account" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="VOIDED_BY_USER_NAME" nullable="false" remarks="The name of the system user who voided the Customer Account" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="21" name="VOIDEDON" nullable="true" remarks="The date and time that the Customer Account was voided" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="22" name="EXPIRATIONDATE" nullable="true" remarks="The date and time the Customer Account expires" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="23" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time dbo record was last modified" size="16" type="datetime" typeCode="93"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_ALTERNATE_KEYS" numRows="0" remarks="All defined customer alternate keys" schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21456&#13;&#10;--FileName=dbo.CUSTOMER_ALTERNATE_KEYS.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.CUSTOMER_ALTERNATE_KEYS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    src.ALTERNATE_KEY_TYPE_ID,&#13;&#10;    ak2.ALTERNATE_KEY_TYPE,&#13;&#10;    src.ALTERNATE_KEY_STATUS_ID,&#13;&#10;    ak1.ALTERNATE_KEY_STATUS,&#13;&#10;    src.ALTERNATE_KEY_VALUE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.DATE_ADDED,&#13;&#10;    src.CUSTOMER_ALTERNATE_KEY_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOMER_ALTERNATE_KEYS src&#13;&#10;    LEFT OUTER JOIN hub.ALTERNATE_KEY_STATUSES ak1 ON (src.ALTERNATE_KEY_STATUS_ID = ak1.ALTERNATE_KEY_STATUS_ID)&#13;&#10;    LEFT OUTER JOIN hub.ALTERNATE_KEY_TYPES ak2 ON (src.ALTERNATE_KEY_TYPE_ID = ak2.ALTERNATE_KEY_TYPE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_ID" nullable="true" remarks="Customer's ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ALTERNATE_KEY_TYPE_ID" nullable="true" remarks="ID of alternate key type." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ALTERNATE_KEY_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ALTERNATE_KEY_TYPE" nullable="true" remarks="Alternate key type." size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ALTERNATE_KEY_STATUS_ID" nullable="true" remarks="ID of alternate key status." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ALTERNATE_KEY_STATUS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ALTERNATE_KEY_STATUSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ALTERNATE_KEY_STATUS" nullable="true" remarks="Alternate key status." size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ALTERNATE_KEY_VALUE" nullable="true" remarks="Alternate key ID." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="DATE_ADDED" nullable="true" remarks="The date that the alternate key was added for this customer." size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="CUSTOMER_ALTERNATE_KEY_ID" nullable="true" remarks="The primary key for the customer alternate key record, used for internal update and deletion processing." size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CUSTOMER_ALTERNATE_KEY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_USAGE"/>
         </column>
         <primaryKey column="CUSTOMER_ALTERNATE_KEY_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_CUSTOM_QUESTIONS" numRows="0" remarks="Custom questions for customers" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CUSTOMER_CUSTOM_QUESTIONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    NULL CUSTOM_QUESTION_GROUP_ID,&#13;&#10;    NULL GROUP_DESCRIPTION,&#13;&#10;    NULL GROUP_HEADER_TEXT,&#13;&#10;    NULL GROUP_ORDER,&#13;&#10;    cql.QUESTION_ORDER,&#13;&#10;    cq.CUSTOM_QUESTION_ID,&#13;&#10;    cq.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    cq.QUESTION,&#13;&#10;    cq.IS_REQUIRED,&#13;&#10;    cq.QUESTION_TYPE,&#13;&#10;    cq.NOTE,&#13;&#10;    cq.DEFAULT_ANSWER,&#13;&#10;    cq.TITLE,&#13;&#10;    cq.ANSWER_FORMAT,&#13;&#10;    cq.IS_RETIRED,&#13;&#10;    cq.HIDE_ON_INTERNET,&#13;&#10;    cq.ADD_TO_NEW_ACTIVITIES,&#13;&#10;    cq.QUESTION_SCOPE,&#13;&#10;    cq.HIDE_ON_ADMIN,&#13;&#10;    cq.DO_NOT_SHOW_AFTER,&#13;&#10;    cq.DO_NOT_EDIT_AFTER,&#13;&#10;    cq.USE_ANSWER_CODE,&#13;&#10;    cq.QUESTION_HINT,&#13;&#10;    cq.MESSAGE_FOR_USED_UP_ANSWERS,&#13;&#10;    cq.ANSWER_MAX_LENGTH,&#13;&#10;    cq.EXTRA_ANSWER_TEXT,&#13;&#10;    cq.CUSTOM_QUESTION_TYPE_ID,&#13;&#10;    cct.CUSTOM_QUESTION_TYPE_NAME AS CUSTOM_QUESTION_TYPE,&#13;&#10;    cq.APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS,&#13;&#10;    cq.IS_DEMOGRAPHIC_RELATED_QUESTION,&#13;&#10;    cql.IS_FAMILY_LEVEL&#13;&#10;FROM&#13;&#10;    hub.CUSTOM_QUESTION_LINKS cql&#13;&#10;    JOIN hub.CUSTOM_QUESTIONS cq ON cq.CUSTOM_QUESTION_ID = cql.CUSTOM_QUESTION_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.SITE_ID = cq.SITE_ID&#13;&#10;    LEFT JOIN hub.CUSTOM_QUESTION_TYPES cct ON (cct.CUSTOM_QUESTION_TYPE_ID = cq.CUSTOM_QUESTION_TYPE_ID)&#13;&#10;WHERE&#13;&#10;    cql.CUSTOMERCUSTOMQUESTION_ID IS NOT NULL&#13;&#10;UNION ALL&#13;&#10;SELECT&#13;&#10;    cqgl.CUSTOM_QUESTION_GROUP_ID,&#13;&#10;    cqgl.GROUP_DESCRIPTION,&#13;&#10;    cqgl.GROUP_HEADER_TEXT,&#13;&#10;    cqgl.GROUP_ORDER,&#13;&#10;    cql.QUESTION_ORDER,&#13;&#10;    cq.CUSTOM_QUESTION_ID,&#13;&#10;    cq.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    cq.QUESTION,&#13;&#10;    cq.IS_REQUIRED,&#13;&#10;    cq.QUESTION_TYPE,&#13;&#10;    cq.NOTE,&#13;&#10;    cq.DEFAULT_ANSWER,&#13;&#10;    cq.TITLE,&#13;&#10;    cq.ANSWER_FORMAT,&#13;&#10;    cq.IS_RETIRED,&#13;&#10;    cq.HIDE_ON_INTERNET,&#13;&#10;    cq.ADD_TO_NEW_ACTIVITIES,&#13;&#10;    cq.QUESTION_SCOPE,&#13;&#10;    cq.HIDE_ON_ADMIN,&#13;&#10;    cq.DO_NOT_SHOW_AFTER,&#13;&#10;    cq.DO_NOT_EDIT_AFTER,&#13;&#10;    cq.USE_ANSWER_CODE,&#13;&#10;    cq.QUESTION_HINT,&#13;&#10;    cq.MESSAGE_FOR_USED_UP_ANSWERS,&#13;&#10;    cq.ANSWER_MAX_LENGTH,&#13;&#10;    cq.EXTRA_ANSWER_TEXT,&#13;&#10;    cq.CUSTOM_QUESTION_TYPE_ID,&#13;&#10;    cct.CUSTOM_QUESTION_TYPE_NAME AS CUSTOM_QUESTION_TYPE,&#13;&#10;    cq.APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS,&#13;&#10;    cq.IS_DEMOGRAPHIC_RELATED_QUESTION,&#13;&#10;    cql.IS_FAMILY_LEVEL&#13;&#10;FROM&#13;&#10;    hub.CUSTOM_QUESTION_GROUP_LINKS cqgl&#13;&#10;    JOIN hub.CUSTOM_QUESTION_LINKS cql ON cql.CUSTOM_QUESTION_GROUP_ID = cqgl.CUSTOM_QUESTION_GROUP_ID AND cql.GROUPCUSTOMQUESTION_ID IS NOT NULL&#13;&#10;    JOIN hub.CUSTOM_QUESTIONS cq ON cq.CUSTOM_QUESTION_ID = cql.CUSTOM_QUESTION_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.SITE_ID = cq.SITE_ID&#13;&#10;    LEFT JOIN hub.CUSTOM_QUESTION_TYPES cct ON (cct.CUSTOM_QUESTION_TYPE_ID = cq.CUSTOM_QUESTION_TYPE_ID)&#13;&#10;WHERE&#13;&#10;    cqgl.CUSTOMERCUSTOM_QUESTION_GROUP_ID IS NOT NULL;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOM_QUESTION_GROUP_ID" nullable="true" remarks="Custom question group ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="GROUP_DESCRIPTION" nullable="true" remarks="Custom question group description" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="GROUP_HEADER_TEXT" nullable="true" remarks="Custom question group heading text" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="GROUP_ORDER" nullable="true" remarks="Custom question group display order" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="QUESTION_ORDER" nullable="true" remarks="The order number that the question should be presented in" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOM_QUESTION_ID" nullable="true" remarks="Custom question ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SITE_ID" nullable="true" remarks="Site ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SITE_NAME" nullable="true" remarks="Site name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="QUESTION" nullable="true" remarks="The text of the question to be asked" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="IS_REQUIRED" nullable="true" remarks="Whether an answer is required for the custom question (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="QUESTION_TYPE" nullable="true" remarks="The type of control to be used to answer the question (User Entry / Single Selection - Dropdown / Single Selection - Radio / Multi Selection - Checkbox / Multi Selection - Listbox / Auto-fill Conditional)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="NOTE" nullable="true" remarks="A user note related to the custom question" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="DEFAULT_ANSWER" nullable="true" remarks="The optional default answer for the user entry question" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="TITLE" nullable="true" remarks="The title of the custom question" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ANSWER_FORMAT" nullable="true" remarks="The answer format of the user entry question (Free Form / Phone Number / Date / Time / SSN / Postal Code / Upper-case Alpha / Lower-case Alpha / Numbers Only / Alpha Only / Duration)" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="IS_RETIRED" nullable="true" remarks="Whether the custom question has been retired (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether the custom question should be excluded from display on the internet site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ADD_TO_NEW_ACTIVITIES" nullable="true" remarks="Whether the custom question should be automatically added to new activities (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="QUESTION_SCOPE" nullable="true" remarks="The scope of the custom question (Ask for every transaction / Ask once per receipt)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="HIDE_ON_ADMIN" nullable="true" remarks="Whether the custom question should be excluded from display on the admin site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="DO_NOT_SHOW_AFTER" nullable="true" remarks="The last date that the custom question should be displayed" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="DO_NOT_EDIT_AFTER" nullable="true" remarks="The last date that the custom question should allow edits" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="USE_ANSWER_CODE" nullable="true" remarks="Whether the custom question uses answer codes (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="QUESTION_HINT" nullable="true" remarks="A hint to be displayed for the custom question" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="MESSAGE_FOR_USED_UP_ANSWERS" nullable="true" remarks="A message to be displayed for the custom question for answers that have reached their use count limit" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ANSWER_MAX_LENGTH" nullable="true" remarks="The maximum answer length for user entry questions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="EXTRA_ANSWER_TEXT" nullable="true" remarks="Additional instruction text to be displayed for a multiple-choice question" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="CUSTOM_QUESTION_TYPE_ID" nullable="true" remarks="Custom question type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="CUSTOM_QUESTION_TYPE" nullable="true" remarks="Custom question type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS" nullable="true" remarks="Whether the answer given should replace prior answers to the same question for the customer (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="IS_DEMOGRAPHIC_RELATED_QUESTION" nullable="true" remarks="Whether the custom question is related to demographics (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="IS_FAMILY_LEVEL" nullable="true" remarks="Whether the question is presented at the family level (Yes/No)" size="5" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_INTEREST_LISTS" numRows="0" remarks="Customer interest lists for facilities, packages, activities and programs" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CUSTOMER_INTEREST_LISTS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    il.CUSTOMER_ID,&#13;&#10;    CONCAT(cu.CUSTOMER_FIRST_NAME, ' ', cu.CUSTOMER_LAST_NAME) CUSTOMER_NAME,&#13;&#10;    il.INTEREST_LIST_ID,&#13;&#10;    il.INTEREST_LIST_NAME,&#13;&#10;    il.CATEGORY_ID,&#13;&#10;    acat.ACTIVITY_CATEGORY_NAME AS CATEGORY_NAME,&#13;&#10;    il.SUB_CATEGORY_ID,&#13;&#10;    ascat.ACTIVITY_SUB_CATEGORY_NAME AS SUB_CATEGORY_NAME&#13;&#10;FROM&#13;&#10;    hub.INTEREST_LISTS il&#13;&#10;    JOIN hub.CUSTOMERS cu ON cu.CUSTOMER_ID = il.CUSTOMER_ID&#13;&#10;    LEFT JOIN hub.ACTIVITY_CATEGORIES acat ON (acat.ACTIVITY_CATEGORY_ID = il.CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_SUB_CATEGORIES ascat ON (ascat.ACTIVITY_SUB_CATEGORY_ID = il.SUB_CATEGORY_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOMER_ID" nullable="true" remarks="The ID of the customer who has signed up for the interest list" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_NAME" nullable="false" remarks="The name of the customer who has signed up for the interest list" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="INTEREST_LIST_ID" nullable="true" remarks="The interest list ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="INTEREST_LIST_NAME" nullable="true" remarks="Name of the interest list" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CATEGORY_ID" nullable="true" remarks="The category ID of the interest list" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CATEGORY_NAME" nullable="true" remarks="The category name of the interest list." size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SUB_CATEGORY_ID" nullable="true" remarks="The sub-category ID of the interest list" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SUB_CATEGORY_NAME" nullable="true" remarks="The sub-category name of the interest list." size="40" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_MERGE_LOG" numRows="0" remarks="Information on previously merged customers" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CUSTOMER_MERGE_LOG&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.CUSTOMER_MERGE_LOG_ID,&#13;&#10;    src.MERGED_CUSTOMER_ID,&#13;&#10;    src.MERGED_FIRST_NAME,&#13;&#10;    src.MERGED_LAST_NAME,&#13;&#10;    src.MERGED_ADDRESS_1,&#13;&#10;    src.MERGED_ADDRESS_2,&#13;&#10;    src.MERGED_CITY,&#13;&#10;    src.MERGED_STATE,&#13;&#10;    src.MERGED_ZIP_CODE,&#13;&#10;    src.MERGED_HOME_PHONE,&#13;&#10;    src.MERGED_WORK_PHONE,&#13;&#10;    src.NEW_CUSTOMER_ID,&#13;&#10;    src.NEW_CUSTOMER_FIRST_NAME,&#13;&#10;    src.NEW_CUSTOMER_LAST_NAME,&#13;&#10;    src.MERGED_DATE_TIME,&#13;&#10;    CAST(src.MERGED_DATE_TIME AS DATE) AS MERGED_DATE_ONLY,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOMER_MERGE_LOG src&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID ;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="CUSTOMER_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOMER_MERGE_LOG_ID" nullable="true" remarks="Merged customer log ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="MERGED_CUSTOMER_ID" nullable="true" remarks="The prior ID of the customer that was merged into a different or new customer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="MERGED_FIRST_NAME" nullable="true" remarks="The merged customer's first name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="MERGED_LAST_NAME" nullable="true" remarks="The merged customer's last name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="MERGED_ADDRESS_1" nullable="true" remarks="The merged customer's address line 1" size="75" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="MERGED_ADDRESS_2" nullable="true" remarks="The merged customer's address line 2" size="75" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="MERGED_CITY" nullable="true" remarks="The merged customer's city" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="MERGED_STATE" nullable="true" remarks="The merged customer's state" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="MERGED_ZIP_CODE" nullable="true" remarks="The merged customer's zip or postal code" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="MERGED_HOME_PHONE" nullable="true" remarks="The merged customer's home phone number" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="MERGED_WORK_PHONE" nullable="true" remarks="The merged customer's work phone number" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="NEW_CUSTOMER_ID" nullable="true" remarks="The ID of the customer that the merged customer was merged in to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="NEW_CUSTOMER_FIRST_NAME" nullable="true" remarks="The new customer first name (at the time of the merge)" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="NEW_CUSTOMER_LAST_NAME" nullable="true" remarks="The new customer last name (at the time of the merge)" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="14" name="MERGED_DATE_TIME" nullable="true" remarks="The date and time that the merge occurred" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="MERGED_DATE_ONLY" nullable="true" remarks="The date that the merge occurred (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who performed the merge" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="SYSTEM_USER_NAME" nullable="false" remarks="The name of the system user who performed the merge" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="19" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CUSTOMER_MERGE_LOG_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_NOTES" numRows="0" remarks="Customer notes and alerts" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CUSTOMER_NOTES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CUSTOMER_NOTE_ID,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    src.IS_ALERT,&#13;&#10;    src.ALERT_START_DATE,&#13;&#10;    src.ALERT_END_DATE,&#13;&#10;    src.CONTACT_DESCRIPTION,&#13;&#10;    src.CONTACT_NOTE,&#13;&#10;    src.NOTE_ALERT_TYPE_ID,&#13;&#10;    nat.NOTE_ALERT_TYPE_NAME,&#13;&#10;    src.UPDATED_DATE_TIME,&#13;&#10;    src.UPDATED_DATE_ONLY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOMER_NOTES src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (src.SITE_ID = si1.SITE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (src.SYSTEMUSER_ID = su1.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.NOTE_ALERT_TYPES nat ON (nat.NOTE_ALERT_TYPE_ID = src.NOTE_ALERT_TYPE_ID);&#13;&#10;(CONVERT([date],[UPDATED_DATE_TIME]))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_NOTE_ID" nullable="true" remarks="Customer note ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_ID" nullable="true" remarks="Customer ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_ID" nullable="true" remarks="Customer note site ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SITE_NAME" nullable="true" remarks="Customer note site name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="WORKSTATION_ID" nullable="true" remarks="Customer note workstation ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="WORKSTATION_NAME" nullable="true" remarks="Customer note workstation name" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SYSTEMUSER_ID" nullable="true" remarks="Customer note user ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SYSTEM_USER_NAME" nullable="false" remarks="Customer note user name" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="IS_ALERT" nullable="true" remarks="Whether this customer note is an alert (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ALERT_START_DATE" nullable="true" remarks="Starting date that an alert notification should be displayed" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ALERT_END_DATE" nullable="true" remarks="Ending date that an alert notification should be displayed" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CONTACT_DESCRIPTION" nullable="true" remarks="Short description of the contact with the customer" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="CONTACT_NOTE" nullable="true" remarks="Detailed notes of the contact with the customer" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="NOTE_ALERT_TYPE_ID" nullable="true" remarks="Customer note type ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="NOTE_ALERT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="NOTE_ALERT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="NOTE_ALERT_TYPE_NAME" nullable="true" remarks="Customer note type name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="UPDATED_DATE_TIME" nullable="true" remarks="Date and time the customer note was created or last updated" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="UPDATED_DATE_ONLY" nullable="true" remarks="Date the customer note was created or last updated (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CUSTOMER_NOTE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_PHOTOS" numRows="0" remarks="Customer photos for passes" schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21458&#13;&#10;--FileName=dbo.CUSTOMER_PHOTOS.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.CUSTOMER_PHOTOS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    src.PHOTO_TAKEN_DATE_TIME,&#13;&#10;    src.PHOTO_TAKEN_DATE_ONLY,&#13;&#10;    src.PHOTO_IMAGE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOMER_PHOTOS src;&#13;&#10;(CONVERT([date],[PHOTO_TAKEN_DATE_TIME]))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_ID" nullable="true" remarks="Customer ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="2" name="PHOTO_TAKEN_DATE_TIME" nullable="true" remarks="Date and time the photo was taken" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PHOTO_TAKEN_DATE_ONLY" nullable="true" remarks="Date and time the photo was taken (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PHOTO_IMAGE" nullable="true" remarks="The customer photo image" size="2147483647" type="varbinary" typeCode="2004"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CUSTOMER_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_PROSPECTS" numRows="0" remarks="Columns dynamically generated for each customer prospect question, populated with the answer to that question" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE   VIEW dbo.CUSTOMER_PROSPECTS AS&#13;&#10;SELECT &#13;&#10;    src.*,&#13;&#10;(SELECT TOP(1) cq1.ANSWER FROM hub.CUSTOM_QUESTION_ANSWERS cq1 WHERE cq1.CUSTOMER_ID = src.CUSTOMER_ID AND cq1.TITLE = 'QUESTION_COLUMNS_BUILT_DYNAMICALLY' ORDER BY cq1.DATESTAMP DESC) AS [QUESTION_COLUMNS_BUILT_DYNAMICALLY]&#13;&#10;FROM &#13;&#10;    (&#13;&#10;SELECT&#13;&#10;    cu1.CUSTOMER_ID,&#13;&#10;    cu1.CUSTOMER_FIRST_NAME,&#13;&#10;    cu1.CUSTOMER_LAST_NAME,&#13;&#10;    cu1.CUSTOMER_EMAIL,&#13;&#10;    ISNULL(cu1.CELLPHONE, cu1.HOMEPHONE) AS CUSTOMER_PHONE,&#13;&#10;    cu1.ENTRY_DATE AS ENTRY_DATE_TIME,&#13;&#10;    cu1.ENTRY_DATE_ONLY&#13;&#10;FROM hub.CUSTOMERS cu1&#13;&#10;WHERE cu1.IS_PROSPECT = 'Yes'&#13;&#10;AND EXISTS (&#13;&#10;    SELECT 1&#13;&#10;    FROM hub.CUSTOM_QUESTION_ANSWERS cqa&#13;&#10;    JOIN hub.CUSTOM_QUESTIONS cq1 ON cq1.CUSTOM_QUESTION_ID = cqa.CUSTOMQUESTION_ID&#13;&#10;    WHERE cqa.CUSTOMER_ID = cu1.CUSTOMER_ID&#13;&#10;    AND cqa.QUESTION_TYPE = 'CUSTOMER'&#13;&#10;    AND cq1.CUSTOM_QUESTION_FOR = 'Prospect Form')&#13;&#10;    ) src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOMER_ID" nullable="true" remarks="Customer ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_FIRST_NAME" nullable="true" remarks="Customer's first name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_LAST_NAME" nullable="true" remarks="Customer's last name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMER_EMAIL" nullable="true" remarks="Customer's email address" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOMER_PHONE" nullable="true" remarks="Customer's phone number" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="ENTRY_DATE_TIME" nullable="true" remarks="The customer record creation date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ENTRY_DATE_ONLY" nullable="true" remarks="The customer record creation date (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="QUESTION_COLUMNS_BUILT_DYNAMICALLY" nullable="true" remarks="Columns for each custom question will be dynamically generated" size="500" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_SCHOLARSHIP_CHARGE_QUALIFICATIONS" numRows="0" remarks="Master table containing defined customer scholarship charge qualifications" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CUSTOMER_SCHOLARSHIP_CHARGE_QUALIFICATIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CHARGE_QUALIFICATION_LINK_ID,&#13;&#10;    src.QUALIFICATION_TYPE_ID,&#13;&#10;    src.QUALIFICATION_TYPE,&#13;&#10;    src.CUSTOMER_SCHOLARSHIP_ID,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    src.ACTIVITY_CATEGORY_ID,&#13;&#10;    acat.ACTIVITY_CATEGORY_NAME,&#13;&#10;    src.ACTIVITY_SUB_CATEGORY_ID,&#13;&#10;    ascat.ACTIVITY_SUB_CATEGORY_NAME,&#13;&#10;    src.ACTIVITY_DEPARTMENT_ID,&#13;&#10;    adep.ACTIVITY_DEPARTMENT_NAME,&#13;&#10;    src.PROGRAM_ID,&#13;&#10;    pr1.PROGRAM_NAME,&#13;&#10;    src.PROGRAM_TYPE_ID,&#13;&#10;    pt1.PROGRAM_TYPE_NAME,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    src.PACKAGE_CATEGORY_ID,&#13;&#10;    pc1.CATEGORY_NAME AS PACKAGE_CATEGORY_NAME,&#13;&#10;    src.PRODUCT_ID,&#13;&#10;    ppr.PRODUCT_NAME,&#13;&#10;    src.PRODUCT_DEPARTMENT_ID,&#13;&#10;    pd1.PRODUCT_DEPARTMENT_NAME,&#13;&#10;    src.PRODUCT_CLASS_ID,&#13;&#10;    pc2.PRODUCT_CLASS_NAME,&#13;&#10;    src.PRODUCT_SUB_CLASS_ID,&#13;&#10;    psc1.PRODUCT_SUBCLASS_NAME AS PRODUCT_SUB_CLASS_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM&#13;&#10;    hub.CHARGE_QUALIFICATION_LINKS src&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON ac1.ACTIVITY_ID = src.ACTIVITY_ID&#13;&#10;    LEFT JOIN hub.PROGRAMS pr1 ON pr1.PROGRAM_ID = src.PROGRAM_ID&#13;&#10;    LEFT JOIN hub.PACKAGES pa1 ON pa1.PACKAGE_ID = src.PACKAGE_ID&#13;&#10;    LEFT JOIN hub.PACKAGE_CATEGORIES pc1 ON pc1.PACKAGE_CATEGORY_ID = src.PACKAGE_CATEGORY_ID&#13;&#10;    LEFT JOIN hub.POS_PRODUCTS ppr ON ppr.POSPRODUCT_ID = src.PRODUCT_ID&#13;&#10;    LEFT JOIN hub.PRODUCT_DEPARTMENTS pd1 ON (pd1.PRODUCT_DEPARTMENT_ID = src.PRODUCT_DEPARTMENT_ID)&#13;&#10;    LEFT JOIN hub.PROGRAM_TYPES pt1 ON (pt1.PROGRAM_TYPE_ID = src.PROGRAM_TYPE_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_CATEGORIES acat ON (acat.ACTIVITY_CATEGORY_ID = src.ACTIVITY_CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_SUB_CATEGORIES ascat ON (ascat.ACTIVITY_SUB_CATEGORY_ID = src.ACTIVITY_SUB_CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_DEPARTMENTS adep ON (adep.ACTIVITY_DEPARTMENT_ID = src.ACTIVITY_DEPARTMENT_ID)&#13;&#10;    LEFT JOIN hub.PRODUCT_CLASSES pc2 ON (pc2.PRODUCT_CLASS_ID = src.PRODUCT_CLASS_ID)&#13;&#10;    LEFT JOIN hub.PRODUCT_SUBCLASSES psc1 ON (psc1.PRODUCT_SUBCLASS_ID = src.PRODUCT_SUB_CLASS_ID)&#13;&#10;WHERE&#13;&#10;    src.QUALIFICATION_TYPE_ID = 3; -- KeyType.customer_scholarship = 3&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CHARGE_QUALIFICATION_LINK_ID" nullable="true" remarks="Charge qualification link ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="QUALIFICATION_TYPE_ID" nullable="true" remarks="Qualification type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="QUALIFICATION_TYPE" nullable="true" remarks="Qualification type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOMER_SCHOLARSHIP_ID" nullable="true" remarks="Customer scholarship ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVITY_ID" nullable="true" remarks="Activity ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVITY_NAME" nullable="true" remarks="Activity name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVITY_CATEGORY_ID" nullable="true" remarks="Activity category ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVITY_CATEGORY_NAME" nullable="true" remarks="Activity category name" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVITY_SUB_CATEGORY_ID" nullable="true" remarks="Activity subcategory ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ACTIVITY_SUB_CATEGORY_NAME" nullable="true" remarks="Activity subcategory name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVITY_DEPARTMENT_ID" nullable="true" remarks="Activity department ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ACTIVITY_DEPARTMENT_NAME" nullable="true" remarks="Activity department name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="PROGRAM_ID" nullable="true" remarks="Program ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PROGRAM_NAME" nullable="true" remarks="Program name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="PROGRAM_TYPE_ID" nullable="true" remarks="Program type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="PROGRAM_TYPE_NAME" nullable="true" remarks="Program type name" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="PACKAGE_ID" nullable="true" remarks="Package ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="PACKAGE_NAME" nullable="true" remarks="Package name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package category ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package category name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="PRODUCT_ID" nullable="true" remarks="Product ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="PRODUCT_NAME" nullable="true" remarks="Product name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="PRODUCT_DEPARTMENT_ID" nullable="true" remarks="Product department ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="PRODUCT_DEPARTMENT_NAME" nullable="true" remarks="Product department name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="PRODUCT_CLASS_ID" nullable="true" remarks="Product class ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="PRODUCT_CLASS_NAME" nullable="true" remarks="Product class name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="PRODUCT_SUB_CLASS_ID" nullable="true" remarks="Product subclass ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="PRODUCT_SUB_CLASS_NAME" nullable="true" remarks="Product subclass name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="29" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS" numRows="0" remarks="Customers' data for granted scholarship qualifications" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CUSTOMER_SCHOLARSHIP_QUALIFICATIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    src.FAMILY_ID,&#13;&#10;    src.AMOUNT,&#13;&#10;    src.PERCENTAGE,&#13;&#10;    src.UNIT_OF_MEASURE,&#13;&#10;    src.QUALIFY_TYPE_ID,&#13;&#10;    src.QUALIFY_TYPE_NAME,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    src.ACTIVITY_DEPARTMENT_ID,&#13;&#10;    adep.ACTIVITY_DEPARTMENT_NAME,&#13;&#10;    src.ACTIVITY_CATEGORY_ID,&#13;&#10;    acat.ACTIVITY_CATEGORY_NAME,&#13;&#10;    src.ACTIVITY_SUB_CATEGORY_ID,&#13;&#10;    ascat.ACTIVITY_SUB_CATEGORY_NAME,&#13;&#10;    src.ACTIVITY_GROUP_NUMBER,&#13;&#10;    src.PROGRAM_ID,&#13;&#10;    pr1.PROGRAM_NAME,&#13;&#10;    src.PROGRAM_TYPE_ID,&#13;&#10;    pt1.PROGRAM_TYPE_NAME,&#13;&#10;    src.PROGRAM_GROUP_NUMBER,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    src.PACKAGE_CATEGORY_ID,&#13;&#10;    pa2.CATEGORY_NAME AS PACKAGE_CATEGORY_NAME,&#13;&#10;    src.CUSTOMER_SCHOLARSHIP_DISCOUNT_ID,&#13;&#10;    src.CUSTOMER_SCHOLARSHIP_RESTRICTION_ID,&#13;&#10;    src.SCHOLARSHIP_QUALIFICATION_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOMER_SCHOLARSHIP_QUALIFICATIONS src&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON ac1.ACTIVITY_ID = src.ACTIVITY_ID&#13;&#10;    LEFT JOIN hub.PROGRAMS pr1 ON pr1.PROGRAM_ID = src.PROGRAM_ID&#13;&#10;    LEFT JOIN hub.PACKAGES pa1 ON pa1.PACKAGE_ID = src.PACKAGE_ID&#13;&#10;    LEFT JOIN hub.PACKAGE_CATEGORIES pa2 ON pa2.PACKAGE_CATEGORY_ID = src.PACKAGE_CATEGORY_ID&#13;&#10;    LEFT JOIN hub.PROGRAM_TYPES pt1 ON (pt1.PROGRAM_TYPE_ID = src.PROGRAM_TYPE_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_DEPARTMENTS adep ON (adep.ACTIVITY_DEPARTMENT_ID = src.ACTIVITY_DEPARTMENT_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_CATEGORIES acat ON (acat.ACTIVITY_CATEGORY_ID = src.ACTIVITY_CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_SUB_CATEGORIES ascat ON (ascat.ACTIVITY_SUB_CATEGORY_ID = src.ACTIVITY_SUB_CATEGORY_ID);&#13;&#10;(CONVERT([bigint],[CHARGE_ID])*(10000000)+isnull([FAMILY_ID],[CUSTOMER_ID]))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CHARGE_ID" nullable="true" remarks="Scholarship charge ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_ID" nullable="true" remarks="Scholarship customer ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FAMILY_ID" nullable="true" remarks="Scholarship family ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="4" name="AMOUNT" nullable="true" remarks="Qualification amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="5" name="PERCENTAGE" nullable="true" remarks="Qualification percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="UNIT_OF_MEASURE" nullable="true" remarks="Qualification unit of measure for daycare programs" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="QUALIFY_TYPE_ID" nullable="true" remarks="Qualification type ID (1: All Activities, 2: Individual Activities, 3: By Activity Department, 4: By Activity Category, 5: By Activity Sub-Category, 6: By Activity Group Number, 7: No Programs, 8: All Programs, 9: Individual Programs, 10: By Program Type, 11: By Program Group Number, 12: No Packages, 13: AllPackages, 14: Individual Packages, 15: By Package Category, 16: No Activities)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="QUALIFY_TYPE_NAME" nullable="true" remarks="Qualification type name (No Activities / All Activities / Individual Activities / By Activity Department / By Activity Category / By Activity Sub-Category / By Activity Group Number / No Programs / All Programs / Individual Programs / By Program Type / By Program Group Number / No Packages / All Packages / Individual Packages / By Package Category)" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVITY_ID" nullable="true" remarks="Qualified activity ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ACTIVITY_NUMBER" nullable="true" remarks="Qualified activity number" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVITY_NAME" nullable="true" remarks="Qualified activity name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ACTIVITY_DEPARTMENT_ID" nullable="true" remarks="Qualified activity department ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ACTIVITY_DEPARTMENT_NAME" nullable="true" remarks="Qualified activity department name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ACTIVITY_CATEGORY_ID" nullable="true" remarks="Qualified activity category ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ACTIVITY_CATEGORY_NAME" nullable="true" remarks="Qualified activity category name" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ACTIVITY_SUB_CATEGORY_ID" nullable="true" remarks="Qualified activity subcategory ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ACTIVITY_SUB_CATEGORY_NAME" nullable="true" remarks="Qualified activity subcategory name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ACTIVITY_GROUP_NUMBER" nullable="true" remarks="Qualified activity group number" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="PROGRAM_ID" nullable="true" remarks="Qualified program ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="PROGRAM_NAME" nullable="true" remarks="Qualified program name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="PROGRAM_TYPE_ID" nullable="true" remarks="Qualified program type ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="PROGRAM_TYPE_NAME" nullable="true" remarks="Qualified program type name" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="PROGRAM_GROUP_NUMBER" nullable="true" remarks="Qualified program group number" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="PACKAGE_ID" nullable="true" remarks="Qualified membership package ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="PACKAGE_NAME" nullable="true" remarks="Qualified membership package name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Qualified membership package category ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Qualified membership package category name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="CUSTOMER_SCHOLARSHIP_DISCOUNT_ID" nullable="true" remarks="Customer scholarship discount ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="CUSTOMER_SCHOLARSHIP_RESTRICTION_ID" nullable="true" remarks="Customer scholarship restriction ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="SCHOLARSHIP_QUALIFICATION_ID" nullable="true" remarks="Qualification ID for linking to the customer scholarships" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="31" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="SCHOLARSHIP_QUALIFICATION_ID" sequenceNumberInPK="1"/>
         <primaryKey column="QUALIFY_TYPE_ID" sequenceNumberInPK="2"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_SCHOLARSHIPS" numRows="0" remarks="Customers' data for granted scholarships" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CUSTOMER_SCHOLARSHIPS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.SCHOLARSHIP_TYPE,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    sc1.CHARGE_NAME,&#13;&#10;    src.CUSTOMER_SCHOLARSHIP_ID,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    src.IS_PRIMARY_CUSTOMER,&#13;&#10;    src.FAMILY_ID,&#13;&#10;    src.FAMILYSCHOLARSHIPMEMBERS_ID,&#13;&#10;    src.GRANT_DATE,&#13;&#10;    src.EXPIRATION_DATE,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    src.AMOUNT_UNSPECIFIED,&#13;&#10;    src.AWARD_AMOUNT,&#13;&#10;    src.AWARDED_AT_ENROLLMENT,&#13;&#10;    src.AMOUNT_USED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.ACTIVATE_QUALIFYING,&#13;&#10;    src.ACTIVITY_QUALIFY_TYPE_ID,&#13;&#10;    src.ACTIVITY_QUALIFY_TYPE_NAME,&#13;&#10;    src.PROGRAM_QUALIFY_TYPE_ID,&#13;&#10;    src.PROGRAM_QUALIFY_TYPE_NAME,&#13;&#10;    src.PACKAGE_QUALIFY_TYPE_ID,&#13;&#10;    src.PACKAGE_QUALIFY_TYPE_NAME,&#13;&#10;    src.SCHOLARSHIP_QUALIFICATION_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOMER_SCHOLARSHIPS src&#13;&#10;    INNER JOIN hub.CHARGES sc1 ON (src.CHARGE_ID = sc1.CHARGE_ID);&#13;&#10;(CONVERT([bigint],[CHARGE_ID])*(10000000)+isnull([FAMILY_ID],[CUSTOMER_ID]))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SCHOLARSHIP_TYPE" nullable="true" remarks="The type of scholarship (Individual / Family)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CHARGE_ID" nullable="true" remarks="Scholarship charge ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CHARGE_NAME" nullable="true" remarks="Scholarship charge name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOMER_SCHOLARSHIP_ID" nullable="true" remarks="Customer scholarship ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CUSTOMER_SCHOLARSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="CUSTOMER_SCHOLARSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMER_ID" nullable="true" remarks="Scholarship customer ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="IS_PRIMARY_CUSTOMER" nullable="true" remarks="Whether this is the primary customer for this scholarship (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="FAMILY_ID" nullable="true" remarks="Scholarship family ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="FAMILYSCHOLARSHIPMEMBERS_ID" nullable="true" remarks="Scholarship family member ID (if no transactions for the member)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="GRANT_DATE" nullable="true" remarks="The first available date for this scholarship" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="EXPIRATION_DATE" nullable="true" remarks="The last available date for this scholarship" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="SYSTEMUSER_ID" nullable="true" remarks="System user ID who granted the scholarship" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="AMOUNT_UNSPECIFIED" nullable="true" remarks="Whether the scholarship is for an unspecified amount (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="13" name="AWARD_AMOUNT" nullable="true" remarks="The amount that was awarded for this scholarship" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="AWARDED_AT_ENROLLMENT" nullable="true" remarks="Whether this scholarship was awarded at time of enrollment (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="15" name="AMOUNT_USED" nullable="true" remarks="The amount that has been used for this customer for this scholarship" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ACTIVATE_QUALIFYING" nullable="true" remarks="Whether qualifications have been activated for this customer scholarship (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ACTIVITY_QUALIFY_TYPE_ID" nullable="true" remarks="The activity qualification type ID (16: No Activities, 1: All Activities, 2: Individual Activities, 3: By Activity Department, 4: By Activity Category, 5: By Activity Sub-Category, 6: By Activity Group Number)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ACTIVITY_QUALIFY_TYPE_NAME" nullable="true" remarks="The activity qualification type name (No Activities / All Activities / Individual Activities / By Activity Department / By Activity Category / By Activity Sub-Category / By Activity Group Number)" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="PROGRAM_QUALIFY_TYPE_ID" nullable="true" remarks="The program qualification type ID (7: No Programs, 8: All Programs, 9: Individual Programs, 10: By Program Type, 11: By Program Group Number)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="PROGRAM_QUALIFY_TYPE_NAME" nullable="true" remarks="The program qualification type name (No Programs / All Programs / Individual Programs / By Program Type / By Program Group Number)" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="PACKAGE_QUALIFY_TYPE_ID" nullable="true" remarks="The package qualification type ID (12: No Packages, 13: All Packages, 14: Individual Packages, 15: By Package Category)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="PACKAGE_QUALIFY_TYPE_NAME" nullable="true" remarks="The package qualification type name (No Packages / All Packages / Individual Packages / By Package Category)" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="SCHOLARSHIP_QUALIFICATION_ID" nullable="true" remarks="Qualification ID for linking to the customer scholarship qualifications" size="8" type="bigint" typeCode="-5"/>
         <primaryKey column="CUSTOMER_SCHOLARSHIP_ID" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOMER_ID" sequenceNumberInPK="2"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_SIGNED_WAIVERS" numRows="0" remarks="Your organization's defined customer waivers" schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21461&#13;&#10;--FileName=dbo.CUSTOMER_SIGNED_WAIVERS.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.CUSTOMER_SIGNED_WAIVERS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CUSTOMER_SIGNED_WAIVER_ID,&#13;&#10;    src.CUSTOMER_WAIVER_ID,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    src.DESCRIPTION,&#13;&#10;    src.WAIVER_STATUS,&#13;&#10;    src.WAIVER_TEXT,&#13;&#10;    src.UPLOADED_FILE_ID,&#13;&#10;    src.UPLOADED_FILE_NAME,&#13;&#10;    src.UPLOADED_FILE_TYPE,&#13;&#10;    src.REQUIRE_INITIALS_ONLINE,&#13;&#10;    src.CREATION_DATE_TIME,&#13;&#10;    src.LAST_MODIFY_DATE_TIME,&#13;&#10;    src.SIGNED_BY_CUSTOMER_ID,&#13;&#10;    src.ONLINE_WAIVER_INITIALS,&#13;&#10;    src.SIGNED_WAIVER_FILE_ID,&#13;&#10;    src.SIGNATURE_BASE64,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOMER_SIGNED_WAIVERS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="8" type="bigint identity" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_SIGNED_WAIVER_ID" nullable="true" remarks="Customer signed waiver ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_WAIVER_ID" nullable="true" remarks="Customer waiver ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_WAIVER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_WAIVERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMER_ID" nullable="true" remarks="The ID of the customer who the waiver is for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who performed the transaction that resulted in the waiver being accepted or signed" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="DESCRIPTION" nullable="true" remarks="The description of the waiver" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="WAIVER_STATUS" nullable="true" remarks="The status of the waiver (Active / Deactivated)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="WAIVER_TEXT" nullable="true" remarks="The text body of the waiver" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="UPLOADED_FILE_ID" nullable="true" remarks="The file ID of the uploaded waiver document if one exists" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="UPLOADED_FILE_NAME" nullable="true" remarks="The file name of the uploaded waiver document if one exists" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="UPLOADED_FILE_TYPE" nullable="true" remarks="The file type of the uploaded waiver document if one exists" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="REQUIRE_INITIALS_ONLINE" nullable="true" remarks="Whether the customer must provide their initials for this waiver during online transactions (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="12" name="CREATION_DATE_TIME" nullable="true" remarks="The date and time that this waiver was created" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="LAST_MODIFY_DATE_TIME" nullable="true" remarks="The date and time that this waiver was last updated" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="SIGNED_BY_CUSTOMER_ID" nullable="true" remarks="The ID of the customer who signed the waiver" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ONLINE_WAIVER_INITIALS" nullable="true" remarks="The initials provided online when signing the waiver" size="4" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SIGNED_WAIVER_FILE_ID" nullable="true" remarks="The file ID of the uploaded signed waiver document if one exists" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="SIGNATURE_BASE64" nullable="true" remarks="The BASE64 image of the customer signature" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CUSTOMER_SIGNED_WAIVER_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_SKILLS" numRows="0" remarks="Data for Customers that have skills applied to their account as can be seen in the ACTIVENet Customer Skills Report" schema="dbo" type="VIEW" viewSql="&#9;&#9;&#9;&#9;&#9;&#13;&#10;CREATE VIEW dbo.CUSTOMER_SKILLS &#13;&#10;AS &#9;&#13;&#10;SELECT &#13;&#10;    cuss.ACTIVE_HUB_KEY,&#13;&#10;&#9;cuss.ORG_ID,&#13;&#10;&#9;cuss.CUSTOMERSKILL_ID,&#13;&#10;&#9;cuss.CUSTOMER_ID,&#13;&#10;&#9;cus.CUSTOMER_FIRST_NAME,&#13;&#10;&#9;cus.CUSTOMER_LAST_NAME,&#13;&#10;&#9;cuss.SKILL_ID,&#13;&#10;&#9;ski.SKILL_NAME,&#13;&#10;&#9;cuss.EVALUATOR_ID,&#13;&#10;&#9;sus.USER_FIRST_NAME AS EVALUATOR_FIRST_NAME,&#13;&#10;&#9;sus.USER_LAST_NAME AS EVALUATOR_LAST_NAME,&#9;&#13;&#10;&#9;cuss.EVALUATION_DATE,&#13;&#10;&#9;cuss.QUALIFICATION_DATE,&#13;&#10;&#9;cuss.EXPIRY_DATE,&#13;&#10;&#9;cuss.COMMENTS,&#13;&#10;&#9;cuss.LAST_SYNC_TIME,&#13;&#10;&#9;cuss.ACTIVE_HUB_PROCESS_ID&#9;&#13;&#10;FROM &#13;&#10;    hub.CUSTOMER_SKILLS cuss&#13;&#10;LEFT JOIN hub.CUSTOMERS cus ON cuss.CUSTOMER_ID = cus.CUSTOMER_ID AND cuss.ORG_ID = cus.ORG_ID&#13;&#10;LEFT JOIN hub.SYSTEM_USERS sus ON cuss.EVALUATOR_ID = sus.SYSTEMUSER_ID AND cuss.ORG_ID = sus.ORG_ID&#13;&#10;LEFT JOIN hub.SKILLS ski ON cuss.SKILL_ID = ski.SKILL_ID AND cuss.ORG_ID = ski.ORG_ID&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The dbo record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMERSKILL_ID" nullable="false" remarks="Customer skills table primary key" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMER_ID" nullable="true" remarks="Customer ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOMER_FIRST_NAME" nullable="true" remarks="Customer First Name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMER_LAST_NAME" nullable="true" remarks="Customer Last Name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SKILL_ID" nullable="true" remarks="ID of the Skill evaluated" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SKILL_NAME" nullable="true" remarks="Name of the Skill evaluated" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="EVALUATOR_ID" nullable="true" remarks="CUSTOMER ID of the person evaluating" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="EVALUATOR_FIRST_NAME" nullable="true" remarks="Evaluator First Name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="EVALUATOR_LAST_NAME" nullable="true" remarks="Evaluator Last Name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="11" name="EVALUATION_DATE" nullable="true" remarks="Date of evaluation" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="12" name="QUALIFICATION_DATE" nullable="true" remarks="Date the Customer met the necessary criteria or standards for the skill" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="EXPIRY_DATE" nullable="true" remarks="Date the Skill can no longer be used for qualification" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="COMMENTS" nullable="true" remarks="Evaluatore comments" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="15" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time dbo record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The dbo sync process ID" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_SUBSIDIES" numRows="0" remarks="Customer subsidies setup VIEW" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.CUSTOMER_SUBSIDIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    ACTIVE_HUB_KEY,&#13;&#10;&#9;ORG_ID,&#13;&#10;&#9;CUSTOMER_SUBSIDY_ID,&#13;&#10;&#9;CUSTOMER_ID,&#13;&#10;&#9;SUBSIDY_ID,&#13;&#10;&#9;STATUS,&#13;&#10;&#9;CREATETIME,&#13;&#10;&#9;UPDATETIME,&#13;&#10;&#9;LAST_SYNC_TIME,&#13;&#10;&#9;ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOMER_SUBSIDIES&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The dbo record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_SUBSIDY_ID" nullable="false" remarks="Customer subsidies table primary key" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMER_ID" nullable="true" remarks="Customer pk" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SUBSIDY_ID" nullable="true" remarks="Related subsidy table foreign key" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="STATUS" nullable="true" remarks="Subsidy usage status" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="CREATETIME" nullable="true" remarks="Customerâ€˜s subsidies create time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="UPDATETIME" nullable="true" remarks="Customerâ€˜s subsidies update time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time dbo record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The dbo sync process ID" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_SUBSIDY_ALLOCATIONS" numRows="0" remarks="Customer subsidy allocations VIEW" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.CUSTOMER_SUBSIDY_ALLOCATIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    ACTIVE_HUB_KEY,&#13;&#10;&#9;ORG_ID,&#9;&#13;&#10;&#9;CUSTOMER_SUBSIDY_ALLOCATION_ID,&#13;&#10;&#9;CUSTOMER_SUBSIDY_ID,&#13;&#10;&#9;START_DATE,&#13;&#10;&#9;END_DATE,&#13;&#10;&#9;ALLOCATION_AMOUNT,&#13;&#10;&#9;LAST_SYNC_TIME,&#13;&#10;&#9;ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOMER_SUBSIDY_ALLOCATIONS&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The dbo record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_SUBSIDY_ALLOCATION_ID" nullable="false" remarks="Customer subsidy allocations table primary key" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMER_SUBSIDY_ID" nullable="true" remarks="Related customer subsidy table foreign key" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="START_DATE" nullable="true" remarks="Customer subsidy allocation start date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="END_DATE" nullable="true" remarks="Customer subsidy allocation end date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="6" name="ALLOCATION_AMOUNT" nullable="true" remarks="Customer subsidy allocation amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time dbo record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The dbo sync process ID" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_THIRD_PARTY_BILLING_LINKS" numRows="0" remarks="Contains the amounts that have been billed to third parties for customer transactions" schema="dbo" type="VIEW" viewSql="&#13;&#10;&#13;&#10;CREATE VIEW dbo.CUSTOMER_THIRD_PARTY_BILLING_LINKS &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.CUSTOMER_THIRD_PARTY_BILLING_LINK_ID,&#13;&#10;    src.CUSTOMER_THIRD_PARTY_BILLING_ID,&#13;&#10;    ctpb.PAYER_COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME AS PAYER_COMPANY_NAME,&#13;&#10;    src.AMOUNT,&#13;&#10;    src.TRANSACTION_CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS TRANSACTION_CUSTOMER_NAME,&#13;&#10;    src.RECEIPT_HEADER_ID,&#13;&#10;    FORMAT(rh1.RECEIPT_NUMBER, '#.0000') AS RECEIPT_NUMBER,&#13;&#10;    src.TRANSACTION_ID,&#13;&#10;    tr1.ROOT_TRANSACTION_ID,&#13;&#10;    tr1.MODULE_NAME AS TRANSACTION_MODULE_NAME,&#13;&#10;    tr1.EVENT_NAME AS TRANSACTION_EVENT_NAME,&#13;&#10;    src.RECEIPT_DETAIL_ID,&#13;&#10;    rd1.DESCRIPTION AS RECEIPT_DETAIL_DESCRIPTION,&#13;&#10;    tr1.TRANSACTION_SITE_ID,&#13;&#10;    si1.SITE_NAME AS TRANSACTION_SITE_NAME,&#13;&#10;    tr1.REVENUE_SITE_ID,&#13;&#10;    si2.SITE_NAME AS REVENUE_SITE_NAME,&#13;&#10;    tr1.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    tr1.PROGRAM_ID,&#13;&#10;    pr1.PROGRAM_NAME,&#13;&#10;    tr1.PERMIT_ID,&#13;&#10;    pe1.PERMIT_NUMBER,&#13;&#10;    tr1.MEMBERSHIP_ID,&#13;&#10;    tr1.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    tr1.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    ac1.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    tr1.POSPRODUCT_ID,&#13;&#10;    ppr.PRODUCT_NAME,&#13;&#10;    src.AR_SCHEDULED_HEADER_ID,&#13;&#10;    src.AR_SCHEDULED_DETAIL_ID,&#13;&#10;    src.CREATION_DATE_TIME,&#13;&#10;    CAST(src.CREATION_DATE_TIME AS DATE) AS CREATION_DATE_ONLY,&#13;&#10;    src.CREATION_WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME AS CREATION_WORKSTATION_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.CUSTOMER_THIRD_PARTY_BILLING_LINK_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.CUSTOMER_THIRD_PARTY_BILLING_LINKS src&#13;&#10;    LEFT JOIN hub.CUSTOMER_THIRD_PARTY_BILLINGS ctpb ON (ctpb.ORG_ID = src.ORG_ID AND ctpb.CUSTOMER_THIRD_PARTY_BILLING_ID = src.CUSTOMER_THIRD_PARTY_BILLING_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.ORG_ID = src.ORG_ID AND co1.COMPANY_ID = ctpb.PAYER_COMPANY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = src.TRANSACTION_CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON (rh1.ORG_ID = src.ORG_ID AND rh1.RECEIPT_HEADER_ID = src.RECEIPT_HEADER_ID)&#13;&#10;    LEFT JOIN hub.RECEIPT_DETAILS rd1 ON (rd1.ORG_ID = src.ORG_ID AND rd1.RECEIPT_DETAIL_ID = src.RECEIPT_DETAIL_ID)&#13;&#10;    LEFT JOIN hub.TRANSACTIONS tr1 ON (tr1.ORG_ID = src.ORG_ID AND tr1.TRANSACTION_ID = src.TRANSACTION_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.CREATION_WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.ORG_ID = tr1.ORG_ID AND si1.SITE_ID = tr1.TRANSACTION_SITE_ID&#13;&#10;    LEFT JOIN hub.SITES si2 ON si2.ORG_ID = tr1.ORG_ID AND si2.SITE_ID = tr1.REVENUE_SITE_ID&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON fa1.ORG_ID = tr1.ORG_ID AND fa1.FACILITY_ID = tr1.FACILITY_ID&#13;&#10;    LEFT JOIN hub.PROGRAMS pr1 ON pr1.ORG_ID = tr1.ORG_ID AND pr1.PROGRAM_ID = tr1.PROGRAM_ID&#13;&#10;    LEFT JOIN hub.PACKAGES pa1 ON pa1.ORG_ID = tr1.ORG_ID AND pa1.PACKAGE_ID = tr1.PACKAGE_ID&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON ac1.ORG_ID = tr1.ORG_ID AND ac1.ACTIVITY_ID = tr1.ACTIVITY_ID&#13;&#10;    LEFT JOIN hub.PERMITS pe1 ON pe1.ORG_ID = tr1.ORG_ID AND pe1.PERMIT_ID = tr1.PERMIT_ID&#13;&#10;    LEFT JOIN hub.POS_PRODUCTS ppr ON ppr.ORG_ID = tr1.ORG_ID AND ppr.POSPRODUCT_ID = tr1.POSPRODUCT_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOMER_THIRD_PARTY_BILLING_LINK_ID" nullable="false" remarks="The customer third-party billing link ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_THIRD_PARTY_BILLING_ID" nullable="true" remarks="The customer third-party billing ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_THIRD_PARTY_BILLING_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_THIRD_PARTY_BILLINGS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PAYER_COMPANY_ID" nullable="true" remarks="The ID of the third-party payer company" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PAYER_COMPANY_NAME" nullable="true" remarks="The name of the third-party payer company" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="4" name="AMOUNT" nullable="true" remarks="The amount that has been billed to the third party" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="TRANSACTION_CUSTOMER_ID" nullable="true" remarks="The ID of the customer whose transaction charge has been billed to the third party" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="TRANSACTION_CUSTOMER_NAME" nullable="true" remarks="The name of the customer whose transaction charge has been billed to the third party" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="RECEIPT_HEADER_ID" nullable="true" remarks="The ID of the receipt that contains the customer charge that has been billed to the third party" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="RECEIPT_NUMBER" nullable="true" remarks="The number of the receipt that contains the customer charge that has been billed to the third party" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="TRANSACTION_ID" nullable="true" remarks="The ID of the transaction that contains the customer charge that has been billed to the third party" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ROOT_TRANSACTION_ID" nullable="true" remarks="The root transaction ID for a chain of transactions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="TRANSACTION_MODULE_NAME" nullable="true" remarks="The system module that the transaction belongs to" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="TRANSACTION_EVENT_NAME" nullable="true" remarks="The event or item description for this transaction" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="RECEIPT_DETAIL_ID" nullable="true" remarks="The ID of the receipt detail that contains the customer charge that has been billed to the third party" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="RECEIPT_DETAIL_DESCRIPTION" nullable="true" remarks="The description of the receipt detail that contains the customer charge that has been billed to the third party" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="TRANSACTION_SITE_ID" nullable="true" remarks="The site ID where the customer transaction was created" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="TRANSACTION_SITE_NAME" nullable="true" remarks="The site name where the customer transaction was created" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="REVENUE_SITE_ID" nullable="true" remarks="The site ID for the item that the customer transaction is for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="REVENUE_SITE_NAME" nullable="true" remarks="The site name for the item that the customer transaction is for" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="FACILITY_ID" nullable="true" remarks="The facility ID for the customer transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="FACILITY_NAME" nullable="true" remarks="The facility name for the customer transaction" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="PROGRAM_ID" nullable="true" remarks="The program ID for the customer transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="PROGRAM_NAME" nullable="true" remarks="The program name for the customer transaction" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="PERMIT_ID" nullable="true" remarks="The ID of the permit for the customer transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="PERMIT_NUMBER" nullable="true" remarks="The permit number for the customer transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="MEMBERSHIP_ID" nullable="true" remarks="The ID of the membership for the customer transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="PACKAGE_ID" nullable="true" remarks="The package ID for the customer transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="PACKAGE_NAME" nullable="true" remarks="The package name for the customer transaction" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="ACTIVITY_ID" nullable="true" remarks="The activity ID for the customer transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="ACTIVITY_NAME" nullable="true" remarks="The activity name for the customer transaction" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="ACTIVITY_NUMBER" nullable="true" remarks="The activity number for the customer transaction" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="POSPRODUCT_ID" nullable="true" remarks="The POS product ID for the customer transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="PRODUCT_NAME" nullable="true" remarks="The POS product name for the customer transaction" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="AR_SCHEDULED_HEADER_ID" nullable="true" remarks="The ID of the AR schedule header for the payment plan that contains the billed charge" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="AR_SCHEDULED_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="AR_SCHEDULED_DETAIL_ID" nullable="true" remarks="The ID of the AR schedule detail for the payment plan that contains the billed charge" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="AR_SCHEDULED_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="35" name="CREATION_DATE_TIME" nullable="true" remarks="The date and time that the amount was billed to the third party" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="CREATION_DATE_ONLY" nullable="true" remarks="The date that the amount was billed to the third party (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="CREATION_WORKSTATION_ID" nullable="true" remarks="The ID of the workstation that generated the third-party billing" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="CREATION_WORKSTATION_NAME" nullable="true" remarks="The name of the workstation that generated the third-party billing" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="39" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="source_id" nullable="false" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CUSTOMER_THIRD_PARTY_BILLING_LINK_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_THIRD_PARTY_BILLINGS" numRows="0" remarks="Your organization's configured customer third-party billings" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.CUSTOMER_THIRD_PARTY_BILLINGS &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.CUSTOMER_THIRD_PARTY_BILLING_ID,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS CUSTOMER_NAME,&#13;&#10;    src.PAYER_COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME AS PAYER_COMPANY_NAME,&#13;&#10;    src.APPROVAL_DATE,&#13;&#10;    src.EFFECTIVE_DATE,&#13;&#10;    src.EXPIRY_DATE,&#13;&#10;    src.RECEIVE_PERIOD_DURATION,&#13;&#10;    src.RECEIVE_AMOUNT,&#13;&#10;    src.RECEIVE_PERCENT,&#13;&#10;    src.RECEIVE_TYPE,&#13;&#10;    src.ELIGIBILITY_REVIEW_PERIOD,&#13;&#10;    src.ELIGIBILITY_REVIEW_DATE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOMER_THIRD_PARTY_BILLINGS src&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON co1.COMPANY_ID = src.PAYER_COMPANY_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOMER_THIRD_PARTY_BILLING_ID" nullable="false" remarks="The customer third-party billing ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CUSTOMER_THIRD_PARTY_BILLING_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_THIRD_PARTY_BILLING_LINKS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_ID" nullable="true" remarks="The ID of the customer" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_NAME" nullable="true" remarks="The name of the customer" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PAYER_COMPANY_ID" nullable="true" remarks="The ID of the third-party payer company" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PAYER_COMPANY_NAME" nullable="true" remarks="The name of the third-party payer company" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="APPROVAL_DATE" nullable="true" remarks="The date of the approval if specified" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="EFFECTIVE_DATE" nullable="true" remarks="The effective date of the third-party billing" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="EXPIRY_DATE" nullable="true" remarks="The expiration date of the third-party billing" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="RECEIVE_PERIOD_DURATION" nullable="true" remarks="The duration period for the third-party billing (None / Monthly / 3 Months / 6 Months / Annual / Until Expiry)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="9" name="RECEIVE_AMOUNT" nullable="true" remarks="The third-party billing amount to receive" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="10" name="RECEIVE_PERCENT" nullable="true" remarks="The third-party billing percent to receive" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="RECEIVE_TYPE" nullable="true" remarks="How the amount is to be calculated and billed to the third-party (Per Customer / Per Family / Per Month Per Customer / Percentage)" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ELIGIBILITY_REVIEW_PERIOD" nullable="true" remarks="The eligibility review period for the third-party billing (None / Monthly / 3 Months / 6 Months / Annual / Custom Review Date)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ELIGIBILITY_REVIEW_DATE" nullable="true" remarks="The custom eligibility review date)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="14" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CUSTOMER_THIRD_PARTY_BILLING_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_TITLES" numRows="0" remarks="Your organization's defined customer titles" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CUSTOMER_TITLES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.CUSTOMER_TITLE_ID,&#13;&#10;    src.CUSTOMER_TITLE_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOMER_TITLES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOMER_TITLE_ID" nullable="false" remarks="The customer title ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CUSTOMER_TITLE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_TITLE_NAME" nullable="true" remarks="The customer title name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="2" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CUSTOMER_TITLE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_TYPES" numRows="0" remarks="Your organization's defined customer types" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.CUSTOMER_TYPES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.CUSTOMER_TYPE_ID,&#13;&#10;    src.CUSTOMER_TYPE_NAME,&#13;&#10;    src.HIDE_FROM_CUSTOMERS,&#13;&#10;    src.ALLOWED_ONLINE,&#13;&#10;    src.USED_FOR,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOMER_TYPES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOMER_TYPE_ID" nullable="false" remarks="The customer type ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_FEES"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_FEES"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_FEES"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PERMITS"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_FEES"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RESERVATION_GROUPS"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGE_SEQUENCE_LINKS"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STANDARD_CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_TYPE_NAME" nullable="true" remarks="The customer type name" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="HIDE_FROM_CUSTOMERS" nullable="true" remarks="Whether this customer type should be hidden from display to customers (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ALLOWED_ONLINE" nullable="true" remarks="Whether this customer type should be available to be selected online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="USED_FOR" nullable="true" remarks="Who this customer type can be used for (Customers / Companies / Customers and Companies)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CUSTOMER_TYPE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_WAIVERS" numRows="0" remarks="Your organization's defined customer waivers" schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21462&#13;&#10;--FileName=dbo.CUSTOMER_WAIVERS.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.CUSTOMER_WAIVERS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CUSTOMER_WAIVER_ID,&#13;&#10;    src.DESCRIPTION,&#13;&#10;    src.WAIVER_STATUS,&#13;&#10;    src.WAIVER_TEXT,&#13;&#10;    src.UPLOADED_FILE_ID,&#13;&#10;    src.UPLOADED_FILE_NAME,&#13;&#10;    src.UPLOADED_FILE_TYPE,&#13;&#10;    src.IS_REQUIRED,&#13;&#10;    src.REQUIRE_INITIALS_ONLINE,&#13;&#10;    src.LOWER_AGE,&#13;&#10;    src.UPPER_AGE,&#13;&#10;    src.CREATION_DATE_TIME,&#13;&#10;    src.LAST_MODIFY_DATE_TIME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CUSTOMER_WAIVERS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="8" type="bigint identity" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_WAIVER_ID" nullable="true" remarks="Customer waiver ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CUSTOMER_WAIVER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SIGNED_WAIVERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="DESCRIPTION" nullable="true" remarks="The description of the waiver" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="WAIVER_STATUS" nullable="true" remarks="The status of the waiver (Active / Deactivated)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="WAIVER_TEXT" nullable="true" remarks="The text body of the waiver" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="UPLOADED_FILE_ID" nullable="true" remarks="The file ID of the uploaded waiver document if one exists" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="UPLOADED_FILE_NAME" nullable="true" remarks="The file name of the uploaded waiver document if one exists" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="UPLOADED_FILE_TYPE" nullable="true" remarks="The file type of the uploaded waiver document if one exists" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="IS_REQUIRED" nullable="true" remarks="Whether this waiver must be agreed to (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="REQUIRE_INITIALS_ONLINE" nullable="true" remarks="Whether the customer must provide their initials for this waiver during online transactions (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="LOWER_AGE" nullable="true" remarks="The minimum customer age that this waiver should be applied to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="UPPER_AGE" nullable="true" remarks="The maximum customer age that this waiver should be applied to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="12" name="CREATION_DATE_TIME" nullable="true" remarks="The date and time that this waiver was created" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="LAST_MODIFY_DATE_TIME" nullable="true" remarks="The date and time that this waiver was last updated" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="14" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CUSTOMER_WAIVER_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMERLOG" numRows="0" remarks="Audit records showing what, when and who made changes to CUSTOMER table data." schema="dbo" type="VIEW" viewSql="&#9;&#9;&#9;&#9;&#9;&#13;&#10;CREATE VIEW dbo.CUSTOMERLOG &#13;&#10;AS &#9;&#13;&#10;SELECT &#13;&#10;&#9;ca.ORG_ID,&#13;&#10;&#9;ca.CUSTOMERLOG_ID,&#13;&#10;&#9;ca.CUSTOMER_ID,&#13;&#10;&#9;CONCAT(cus.CUSTOMER_FIRST_NAME, ' ', cus.CUSTOMER_LAST_NAME) AS CUSTOMER_NAME,&#13;&#10;&#9;ca.SITE_ID,&#13;&#10;&#9;si.SITE_NAME,&#13;&#10;&#9;ca.WORKSTATION_ID,&#13;&#10;&#9;ws.WORKSTATION_NAME,&#13;&#10;&#9;ca.SYSTEMUSER_ID,&#13;&#10;&#9;CONCAT(su.USER_FIRST_NAME, ' ', su.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;&#9;ca.DATESTAMP,&#13;&#10;&#9;ca.ITEMNAME,&#13;&#10;&#9;ca.CHANGETYPE,&#13;&#10;&#9;ca.ITEMTYPE,&#13;&#10;&#9;ca.CHANGE_DESCRIPTION,&#13;&#10;&#9;ca.ROW_VERSION,&#13;&#10;&#9;ca.LAST_SYNC_TIME&#13;&#10;FROM hub.CUSTOMERLOG ca&#13;&#10;LEFT JOIN hub.SITES si ON si.SITE_ID = ca.SITE_ID AND si.ORG_ID = ca.ORG_ID&#13;&#10;LEFT JOIN hub.WORKSTATIONS WS ON WS.WORKSTATION_ID = ca.WORKSTATION_ID AND ws.ORG_ID = ca.ORG_ID&#13;&#10;LEFT JOIN hub.SYSTEM_USERS su ON su.SYSTEMUSER_ID = ca.SYSTEMUSER_ID AND su.ORG_ID = ca.ORG_ID&#13;&#10;LEFT JOIN hub.CUSTOMERS cus ON cus.CUSTOMER_ID = ca.CUSTOMER_ID AND cus.ORG_ID = ca.ORG_ID&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMERLOG_ID" nullable="false" remarks="Unique ID of the table" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_ID" nullable="true" remarks="The ID of the customer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMER_NAME" nullable="false" remarks="The name of the Customer associated with the account" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SITE_ID" nullable="true" remarks="ID of the Site where the Customer Account was processed" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SITE_NAME" nullable="true" remarks="Name of the Site where the Customer Account was processed" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="WORKSTATION_ID" nullable="true" remarks="ID of workstation where this Customer Account was processed" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="WORKSTATION_NAME" nullable="true" remarks="Name of workstation where this Customer Account was processedd" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the system user who created the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the system user who created the transaction" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="DATESTAMP" nullable="true" remarks="The date and time the customer log was created" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ITEMNAME" nullable="true" remarks="xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CHANGETYPE" nullable="true" remarks="xxxxxxxxxxxxxxxxxxxxxx" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ITEMTYPE" nullable="true" remarks="xxxxxxxxxxxxxxxxxxxxxxx" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="CHANGE_DESCRIPTION" nullable="true" remarks="xxxxxxxxxxxxxxxxxxxxxxx" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time dbo record was last modified" size="16" type="datetime" typeCode="93"/>
      </table>
      <table catalog="ActiveHub" name="CUSTOMERS" numRows="0" remarks="Customers' details" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.CUSTOMERS&#13;&#10;AS&#13;&#10;WITH cte_CreditBalance (ORG_ID,CUSTOMER_ID, CREDIT_BALANCE_AVAILABLE) AS (&#13;&#10;    SELECT ach.ORG_ID, ach.CUSTOMER_ID, SUM(ach.CREDIT_AMOUNT) AS CREDIT_BALANCE_AVAILABLE&#13;&#10;    FROM hub.ACCOUNT_CREDIT_HISTORY ach&#13;&#10;    WHERE ach.COMPANY_ID IS NULL&#13;&#10;    GROUP BY ach.ORG_ID,ach.CUSTOMER_ID)&#13;&#10;SELECT&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    ct2.CUSTOMER_TYPE_NAME AS CUSTOMER_TYPE,&#13;&#10;    ga1.GEOGRAPHIC_AREA_NAME AS GEOGRAPHIC_AREA,&#13;&#10;    src.LAST_PAYEE_ID,&#13;&#10;    si1.SITE_NAME AS SITE,&#13;&#10;    src.CUSTOMER_FIRST_NAME,&#13;&#10;    src.CUSTOMER_LAST_NAME,&#13;&#10;    src.CUSTOMER_ADDRESS1,&#13;&#10;    src.CUSTOMER_ADDRESS2,&#13;&#10;    src.CITY,&#13;&#10;    src.STATE_PROVINCE,&#13;&#10;    src.ZIP_POSTALCODE,&#13;&#10;    src.LATITUDE_NB,&#13;&#10;    src.LONGITUDE_NB,&#13;&#10;    src.HOMEPHONE,&#13;&#10;    src.WORKPHONE,&#13;&#10;    src.CELLPHONE,&#13;&#10;    src.FAXPHONE,&#13;&#10;    src.PAGERPHONE,&#13;&#10;    src.OTHERPHONE,&#13;&#10;    src.CUSTOMER_EMAIL,&#13;&#10;    ac1.AGE_CATEGORY_NAME AS AGE_CATEGORY,&#13;&#10;    src.ENTRY_DATE,&#13;&#10;    src.CUSTOMER_GENDER,&#13;&#10;&#9;src.GENDER,&#13;&#10;&#9;gen.GENDER_NAME,&#13;&#10;&#9;gen.GENDER_SHORT_NAME,&#13;&#10;&#9;gen.GENDER_NAME_PLURAL,&#13;&#10;    src.HEADOFHOUSEHOLD,&#13;&#10;    src.LAST_WAIVER_DATE,&#13;&#10;    src.MAILING_ADDRESS1,&#13;&#10;    src.MAILING_ADDRESS2,&#13;&#10;    src.MAILING_CITY,&#13;&#10;    src.MAILING_STATE_PROVINCE,&#13;&#10;    src.MAILING_ZIP_POSTALCODE,&#13;&#10;    src.MAILING_COUNTRY,&#13;&#10;    src.MAILING_NAME,&#13;&#10;    oc1.OCCUPATION_NAME AS OCCUPATION,&#13;&#10;    src.RESIDENT_STATUS,&#13;&#10;    src.SPECIAL_HANDLING,&#13;&#10;    src.EMERGENCY_CONTACT1_FIRST_NAME,&#13;&#10;    src.EMERGENCY_CONTACT1_LAST_NAME,&#13;&#10;    src.EMERGENCY_CONTACT1_PHONE_NO,&#13;&#10;    src.EMERGENCY_CONTACT1_RELATION,&#13;&#10;    src.EMERGENCY_OTHER_PHONE1,&#13;&#10;    src.EMERGENCY_CONTACT2_FIRST_NAME,&#13;&#10;    src.EMERGENCY_CONTACT2_LAST_NAME,&#13;&#10;    src.EMERGENCY_CONTACT2_PHONE_NO,&#13;&#10;    src.EMERGENCY_CONTACT2_RELATION,&#13;&#10;    src.EMERGENCY_OTHER_PHONE2,&#13;&#10;    src.DATE_MODIFIED,&#13;&#10;    src.RETIRED_STATUS,&#13;&#10;    src.NOT_ONLINE_ACTIVATED,&#13;&#10;    src.LOGIN_CREATED,&#13;&#10;    src.LOGIN_USED,&#13;&#10;    src.INTEREST_DATE,&#13;&#10;    src.COUNTY,&#13;&#10;    src.CAN_BE_SCHEDULED,&#13;&#10;    src.MIDDLE_NAME,&#13;&#10;    src.RESIDENCY_EXPIRES_DATE,&#13;&#10;    src.LEGAL_NAME,&#13;&#10;    src.ADDITIONAL_EMAIL,&#13;&#10;    src.LATE_FEE_DATE,&#13;&#10;    src.AGREE_RECEIVE_TEXT_MESSAGE,&#13;&#10;    src.CREATED_ON,&#13;&#10;    src.AGREE_RECEIVE_EMAIL,&#13;&#10;    src.AGREE_RECEIVE_POSTAL_MAIL,&#13;&#10;    src.MODIFIED_DATE_ONLY,&#13;&#10;    src.ENTRY_DATE_ONLY,&#13;&#10;    src.INTEREST_DATE_ONLY,&#13;&#10;    src.LAST_WAIVER_DATE_ONLY,&#13;&#10;    src.LATE_FEE_DATE_ONLY,&#13;&#10;    src.LOGIN_CREATED_DATE_ONLY,&#13;&#10;    src.LOGIN_USED_DATE_ONLY,&#13;&#10;    src.RESIDENCY_EXPIRES_DATE_ONLY,&#13;&#10;    src.CUSTOMER_GENERAL_ALERT,&#13;&#10;    src.DATE_OF_BIRTH,&#13;&#10;    hub.udf_AgeInYearsMonths(src.DATE_OF_BIRTH, GETDATE()) AS AGE,&#13;&#10;    src.CUSTOMER_NOTES,&#13;&#10;    src.EXTERNALIDTEXT,&#13;&#10;    ct1.CUSTOMER_TITLE_NAME AS CUSTOMER_TITLE,&#13;&#10;    src.COUNTRY,&#13;&#10;    gr1.GRADE_NAME AS GRADE,&#13;&#10;    src.GRADEAGEDELTA,&#13;&#10;    src.LOGIN_NAME,&#13;&#10;    src.BALANCE_DUE,&#13;&#10;    ISNULL(cb1.CREDIT_BALANCE_AVAILABLE, 0) AS CREDIT_BALANCE_AVAILABLE,&#13;&#10;    src.PREFERRED_LANGUAGE,&#13;&#10;    src.AGE_CATEGORY_ID,&#13;&#10;    src.CUSTOMER_TITLE_ID,&#13;&#10;    src.CUSTOMER_TYPE_ID,&#13;&#10;    src.GEOGRAPHIC_AREA_ID,&#13;&#10;    src.GRADE_ID,&#13;&#10;    src.OCCUPATION_ID,&#13;&#10;    src.SITE_ID,&#13;&#10;    src.HAS_ACTIVE_QUALIFIED_MEMBERSHIP,&#13;&#10;    IIF(hub.udf_ValidateEmailFormat(src.CUSTOMER_EMAIL) = 1, 'Yes', 'No') AS IS_CUSTOMER_EMAIL_VALID,&#13;&#10;    IIF(hub.udf_ValidateEmailFormat(src.ADDITIONAL_EMAIL) = 1, 'Yes', 'No') AS IS_ADDITIONAL_EMAIL_VALID,&#13;&#10;    src.IS_PROSPECT,&#13;&#10;    src.IS_DROP_IN,&#13;&#10;    src.DROP_IN_EMAIL,&#13;&#10;    src.LOGIN_FIRST_USED,&#13;&#10;    CAST(LOGIN_FIRST_USED AS DATE) AS LOGIN_FIRST_USED_DATE_ONLY,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.CUSTOMER_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.CUSTOMERS src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND src.SITE_ID = si1.SITE_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMER_TITLES ct1 ON (ct1.ORG_ID = src.ORG_ID AND ct1.CUSTOMER_TITLE_ID = src.CUSTOMER_TITLE_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMER_TYPES ct2 ON (ct2.ORG_ID = src.ORG_ID AND ct2.CUSTOMER_TYPE_ID = src.CUSTOMER_TYPE_ID)&#13;&#10;    LEFT JOIN hub.GEOGRAPHIC_AREAS ga1 ON (ga1.ORG_ID = src.ORG_ID AND ga1.GEOGRAPHIC_AREA_ID = src.GEOGRAPHIC_AREA_ID)&#13;&#10;    LEFT JOIN hub.AGE_CATEGORIES ac1 ON (ac1.ORG_ID = src.ORG_ID AND ac1.AGE_CATEGORY_ID = src.AGE_CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.OCCUPATIONS oc1 ON (oc1.ORG_ID = src.ORG_ID AND oc1.OCCUPATION_ID = src.OCCUPATION_ID)&#13;&#10;    LEFT JOIN hub.GRADES gr1 ON (gr1.ORG_ID = src.ORG_ID AND gr1.GRADE_ID = src.GRADE_ID)&#13;&#10;    LEFT JOIN cte_CreditBalance cb1 ON cb1.ORG_ID = src.ORG_ID AND cb1.CUSTOMER_ID = src.CUSTOMER_ID&#13;&#10;&#9;LEFT JOIN hub.GENDERS gen ON gen.ORG_ID = src.ORG_ID AND gen.GENDER_INDEX = src.GENDER;&#13;&#10;(CONVERT([date],[DATE_MODIFIED]))(CONVERT([date],[ENTRY_DATE]))(CONVERT([date],[INTEREST_DATE]))(CONVERT([date],[LAST_WAIVER_DATE]))(CONVERT([date],[LATE_FEE_DATE]))(CONVERT([date],[LOGIN_CREATED]))(CONVERT([date],[LOGIN_USED]))(CONVERT([date],[RESIDENCY_EXPIRES_DATE]))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOMER_ID" nullable="true" remarks="Customer's ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACCOUNT_CREDIT_HISTORY"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_ENROLLMENTS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_PRIVATE_LESSONS"/>
            <child catalog="ActiveHub" column="PAYER_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="TRANSACTION_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="PAYER_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_HEADERS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHILD_WATCH_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="DROP_OFF_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHILD_WATCH_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="PICK_UP_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHILD_WATCH_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANY_AUTHORIZED_AGENTS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_USAGE"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CREDIT_CARD_PROCESSING_LOG"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_ALTERNATE_KEYS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_MERGE_LOG"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_NOTES"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_PHOTOS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SCHOLARSHIPS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SIGNED_WAIVERS"/>
            <child catalog="ActiveHub" column="SIGNED_BY_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SIGNED_WAIVERS"/>
            <child catalog="ActiveHub" column="TRANSACTION_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_THIRD_PARTY_BILLING_LINKS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_THIRD_PARTY_BILLINGS"/>
            <child catalog="ActiveHub" column="CHILDCUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="DCPICKUPAUTHORIZATIONS"/>
            <child catalog="ActiveHub" column="PICKUPCUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="DCPICKUPAUTHORIZATIONS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FAMILY_MEMBERS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GIFT_CARDS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="INSTRUCTORS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="INTEREST_LISTS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_CONTACTS"/>
            <child catalog="ActiveHub" column="PRIMARYMEMBERCUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="PRIMARY_MEMBER_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="OFFICIALS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PERMITS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_SALES_DETAILS"/>
            <child catalog="ActiveHub" column="PAYER_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRELIMINARY_DRAFTS"/>
            <child catalog="ActiveHub" column="DROP_OFF_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_ATTENDANCE_HISTORY"/>
            <child catalog="ActiveHub" column="PICK_UP_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_ATTENDANCE_HISTORY"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="DROP_OFF_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="PICK_UP_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="ONLINE_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_HEADERS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SAVED_CREDIT_CARD_HISTORY"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SAVED_CREDIT_CARDS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SUPERVISORS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USAGE_LOG"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAM_CONTACTS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAM_PLAYERS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WISHLISTS"/>
            <child catalog="ActiveHub" column="PARTICIPANT_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WISHLISTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_TYPE" nullable="true" remarks="Customer type description (For example, Employee, Individual, Non-profit)" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="GEOGRAPHIC_AREA" nullable="true" remarks="Geographic Area description" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="LAST_PAYEE_ID" nullable="true" remarks="The ID of the customer who last paid a charge on behalf of this customer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SITE" nullable="true" remarks="The site to which the customer belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMER_FIRST_NAME" nullable="true" remarks="Customer's first name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOMER_LAST_NAME" nullable="true" remarks="Customer's last name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CUSTOMER_ADDRESS1" nullable="true" remarks="Customer's address 1" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CUSTOMER_ADDRESS2" nullable="true" remarks="Customer's address 2" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CITY" nullable="true" remarks="Customer's residential address city" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="STATE_PROVINCE" nullable="true" remarks="Customer's residential address province" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ZIP_POSTALCODE" nullable="true" remarks="Customer's zip code" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="LATITUDE_NB" nullable="true" remarks="The latitude of the customer's address." size="11" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="LONGITUDE_NB" nullable="true" remarks="The longitude of the customer's address." size="11" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="HOMEPHONE" nullable="true" remarks="Customer's home phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="WORKPHONE" nullable="true" remarks="Customer's work phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="CELLPHONE" nullable="true" remarks="Customer's cell phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="FAXPHONE" nullable="true" remarks="Customer's fax phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="PAGERPHONE" nullable="true" remarks="Customer's pager phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="OTHERPHONE" nullable="true" remarks="Customer's other phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="CUSTOMER_EMAIL" nullable="true" remarks="Customers email address" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="AGE_CATEGORY" nullable="true" remarks="Customer's age category, when used as an alternative to entering a birthdate" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="22" name="ENTRY_DATE" nullable="true" remarks="The customer record creation date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="CUSTOMER_GENDER" nullable="true" remarks="Customer Gender (Male, Female, Other)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="GENDER" nullable="true" remarks="The index of this gender for linking to other records" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="GENDER_NAME" nullable="true" remarks="The gender name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="GENDER_SHORT_NAME" nullable="true" remarks="The gender short name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="GENDER_NAME_PLURAL" nullable="true" remarks="The plural form of the gender name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="HEADOFHOUSEHOLD" nullable="true" remarks="Whether the customer is the head of household" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="29" name="LAST_WAIVER_DATE" nullable="true" remarks="The most recent date of sign a waiver" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="MAILING_ADDRESS1" nullable="true" remarks="Customers mailing address 1" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="MAILING_ADDRESS2" nullable="true" remarks="Customers mailing address 2" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="MAILING_CITY" nullable="true" remarks="The city of the customer's mailing address" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="MAILING_STATE_PROVINCE" nullable="true" remarks="The state of the customer's mailing address" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="MAILING_ZIP_POSTALCODE" nullable="true" remarks="The zip code of the customer's mailing address" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="MAILING_COUNTRY" nullable="true" remarks="The country of the customer's mailing address" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="MAILING_NAME" nullable="true" remarks="The mailing name used on mail-outs and statements" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="OCCUPATION" nullable="true" remarks="Customers occupation" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="RESIDENT_STATUS" nullable="true" remarks="Customer's resident status (&quot;Resident&quot; or &quot;Non-resident&quot;)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="SPECIAL_HANDLING" nullable="true" remarks="Whether the customer needs special handling (Yes or No)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="EMERGENCY_CONTACT1_FIRST_NAME" nullable="true" remarks="The first name of the customers emergency contact1" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="EMERGENCY_CONTACT1_LAST_NAME" nullable="true" remarks="The last name of the customers emergency contact1" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="EMERGENCY_CONTACT1_PHONE_NO" nullable="true" remarks="The phone number of the customers emergency contact1" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="EMERGENCY_CONTACT1_RELATION" nullable="true" remarks="The customers relation to their emergency contact1" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="EMERGENCY_OTHER_PHONE1" nullable="true" remarks="The other phone number of the customers emergency contact1" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="EMERGENCY_CONTACT2_FIRST_NAME" nullable="true" remarks="The first name of the customers emergency contact2" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="EMERGENCY_CONTACT2_LAST_NAME" nullable="true" remarks="The last name of the customers emergency contact2" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="EMERGENCY_CONTACT2_PHONE_NO" nullable="true" remarks="The phone number of the customers emergency contact2" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="EMERGENCY_CONTACT2_RELATION" nullable="true" remarks="The customers relation to their emergency contact2" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="EMERGENCY_OTHER_PHONE2" nullable="true" remarks="The other phone number of the customers emergency contact2" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="50" name="DATE_MODIFIED" nullable="true" remarks="The date and time of the last modification to the customer information" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="RETIRED_STATUS" nullable="true" remarks="Customer's retired status (&quot;Retired&quot; or &quot;Active&quot;)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="NOT_ONLINE_ACTIVATED" nullable="true" remarks="Whether the customer is activated on the CUI" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="53" name="LOGIN_CREATED" nullable="true" remarks="Customers CUI account creation time and date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="54" name="LOGIN_USED" nullable="true" remarks="Customers most recent CUI login time and date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="55" name="INTEREST_DATE" nullable="true" remarks="The date on which the customers interest charge is calculated" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="COUNTY" nullable="true" remarks="Customers county" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="CAN_BE_SCHEDULED" nullable="true" remarks="Displays Yes or No" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="MIDDLE_NAME" nullable="true" remarks="Customers middle name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="59" name="RESIDENCY_EXPIRES_DATE" nullable="true" remarks="Customers residency expiration date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="LEGAL_NAME" nullable="true" remarks="Customers legal name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="61" name="ADDITIONAL_EMAIL" nullable="true" remarks="Customers additional email address" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="62" name="LATE_FEE_DATE" nullable="true" remarks="The date on which the customers late fee is calculated." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="AGREE_RECEIVE_TEXT_MESSAGE" nullable="true" remarks="Whether the customer agreed to receive text messages" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="CREATED_ON" nullable="true" remarks="Where the customer account was created (Online / Staff side / Connect / Unknown)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="65" name="AGREE_RECEIVE_EMAIL" nullable="true" remarks="Whether the customer agreed to receive emails" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="66" name="AGREE_RECEIVE_POSTAL_MAIL" nullable="true" remarks="Whether the customer agreed to receive postal mail" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="67" name="MODIFIED_DATE_ONLY" nullable="true" remarks="The date and time of the last modification to the customer information" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="68" name="ENTRY_DATE_ONLY" nullable="true" remarks="The customer record creation date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="69" name="INTEREST_DATE_ONLY" nullable="true" remarks="The date on which the customers interest charge is calculated" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="70" name="LAST_WAIVER_DATE_ONLY" nullable="true" remarks="The most recent date of sign a waiver" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="71" name="LATE_FEE_DATE_ONLY" nullable="true" remarks="The date on which the customers late fee is calculated." size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="72" name="LOGIN_CREATED_DATE_ONLY" nullable="true" remarks="Customers CUI account creation time and date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="73" name="LOGIN_USED_DATE_ONLY" nullable="true" remarks="Customers most recent CUI login time and date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="74" name="RESIDENCY_EXPIRES_DATE_ONLY" nullable="true" remarks="Customers residency expiration date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="75" name="CUSTOMER_GENERAL_ALERT" nullable="true" remarks="General alert text for this customer." size="2147483647" type="varchar" typeCode="2005"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="76" name="DATE_OF_BIRTH" nullable="true" remarks="Customer's date of birth." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="77" name="AGE" nullable="true" remarks="Age of the customer (years.months)" size="8" type="float" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="78" name="CUSTOMER_NOTES" nullable="true" remarks="General notes for this customer." size="2147483647" type="varchar" typeCode="2005"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="79" name="EXTERNALIDTEXT" nullable="true" remarks="Customer's external ID text." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="80" name="CUSTOMER_TITLE" nullable="true" remarks="Customer's salutation." size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="81" name="COUNTRY" nullable="true" remarks="Customer's country of residence." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="82" name="GRADE" nullable="true" remarks="Customer's current school grade." size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="83" name="GRADEAGEDELTA" nullable="true" remarks="Customer's grade to age delta." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="84" name="LOGIN_NAME" nullable="true" remarks="Customer's CUI login name." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="85" name="BALANCE_DUE" nullable="true" remarks="The current balance due for this customer." size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="86" name="CREDIT_BALANCE_AVAILABLE" nullable="false" remarks="The current credit balance available for this customer." size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="87" name="PREFERRED_LANGUAGE" nullable="true" remarks="The customer's preferred language." size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="88" name="AGE_CATEGORY_ID" nullable="true" remarks="The ID of the customer's age category, when used as an alternative to entering a birthdate" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="AGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="89" name="CUSTOMER_TITLE_ID" nullable="true" remarks="The ID of the customer's salutation." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_TITLE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_TITLES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="90" name="CUSTOMER_TYPE_ID" nullable="true" remarks="The ID of the customer's type" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="91" name="GEOGRAPHIC_AREA_ID" nullable="true" remarks="The ID of the customer's geographic area" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GEOGRAPHIC_AREA_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GEOGRAPHIC_AREAS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="92" name="GRADE_ID" nullable="true" remarks="The ID of the customer's current school grade." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GRADE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GRADES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="93" name="OCCUPATION_ID" nullable="true" remarks="The ID of the customer's occupation" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="OCCUPATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="OCCUPATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="94" name="SITE_ID" nullable="true" remarks="The ID of the site to which the customer belongs" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="95" name="HAS_ACTIVE_QUALIFIED_MEMBERSHIP" nullable="true" remarks="Whether the customer currently has an active membership which qualifies them for member fees and discounts (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="96" name="IS_CUSTOMER_EMAIL_VALID" nullable="false" remarks="Whether the customer email address has been provided and is a validly formatted email address (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="97" name="IS_ADDITIONAL_EMAIL_VALID" nullable="false" remarks="Whether the additional email address has been provided and is a validly formatted email address (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="98" name="IS_PROSPECT" nullable="true" remarks="Whether the customer is a prospect entered via the prospects form (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="99" name="IS_DROP_IN" nullable="true" remarks="Whether the customer is a drop-in customer (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="100" name="DROP_IN_EMAIL" nullable="true" remarks="The email address of the drop-in customer if entered" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="101" name="LOGIN_FIRST_USED" nullable="true" remarks="Customers first CUI login time and date. NOTE: This value can be guaranteed valid for customers created after November 2024." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="102" name="LOGIN_FIRST_USED_DATE_ONLY" nullable="true" remarks="" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="103" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="104" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="105" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="106" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="107" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CUSTOMER_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="DCPICKUPAUTHORIZATIONS" numRows="0" remarks="Record of who is authorized to pick up who" schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21464&#13;&#10;--FileName=dbo.DCPICKUPAUTHORIZATIONS.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.DCPICKUPAUTHORIZATIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.DCPICKUPAUTHORIZATION_ID,&#13;&#10;    src.PICKUPCUSTOMER_ID,&#13;&#10;    src.CHILDCUSTOMER_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.DCPICKUPAUTHORIZATIONS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="DCPICKUPAUTHORIZATION_ID" nullable="false" remarks="the source table PRIMARY key" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PICKUPCUSTOMER_ID" nullable="false" remarks="The customer id who is authorized to pick up another customer" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CHILDCUSTOMER_ID" nullable="false" remarks="The customer id who is authorized to be picked up" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="DCPICKUPAUTHORIZATION_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="DEFERRED_REVENUE_PROJECTIONS" numRows="0" remarks="Contains detailed projections of future revenue to be recognized for current deferred revenue postings. The data is generated daily for an as-of date of the end of day yesterday." schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.DEFERRED_REVENUE_PROJECTIONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.AS_OF_DATE,&#13;&#10;    src.ORIGINAL_TRANSACTION_ID,&#13;&#10;    src.ORIGINAL_RECEIPT_DETAIL_ID,&#13;&#10;    src.GL_LEDGER_ID,&#13;&#10;    src.DEFERRED_GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS DEFERRED_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS DEFERRED_ACCOUNT_NUMBER,&#13;&#10;    src.REVENUE_GLACCOUNT_ID,&#13;&#10;    gl2.ACCOUNTNAME AS REVENUE_ACCOUNT_NAME,&#13;&#10;    gl2.ACCOUNTNUMBER AS REVENUE_ACCOUNT_NUMBER,&#13;&#10;    src.RECOGNIZE_DATE,&#13;&#10;    src.RECOGNIZE_AMOUNT,&#13;&#10;    src.FISCAL_PERIOD_TYPE_ID,&#13;&#10;    (CASE src.FISCAL_PERIOD_TYPE_ID&#13;&#10;        WHEN 1 THEN 'Daily'&#13;&#10;        WHEN 2 THEN 'Weekly'&#13;&#10;        WHEN 3 THEN 'Monthly'&#13;&#10;        WHEN 4 THEN 'Quarterly'&#13;&#10;        WHEN 5 THEN 'Yearly'&#13;&#10;        WHEN 6 THEN 'At Item Start Date'&#13;&#10;        WHEN 7 THEN 'At Item Start Date and Fiscal Year End'&#13;&#10;        ELSE 'When Payment Received'&#13;&#10;        END) AS FISCAL_PERIOD_TYPE_NAME,&#13;&#10;    src.MODULE_NAME,&#13;&#10;    src.TRANSACTION_SITE_ID,&#13;&#10;    si1.SITE_NAME AS TRANSACTION_SITE_NAME,&#13;&#10;    src.REVENUE_SITE_ID,&#13;&#10;    si2.SITE_NAME AS REVENUE_SITE_NAME,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    ac1.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    src.PROGRAM_ID,&#13;&#10;    pr1.PROGRAM_NAME,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS CUSTOMER_NAME,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_LAST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ', ', ''), cu1.CUSTOMER_FIRST_NAME), '') AS CUSTOMER_NAME_LAST_FIRST,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.DEFERRED_REVENUE_PROJECTIONS src&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.SITE_ID = src.TRANSACTION_SITE_ID&#13;&#10;    LEFT JOIN hub.SITES si2 ON si2.SITE_ID = src.REVENUE_SITE_ID&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON gl1.GLACCOUNT_ID = src.DEFERRED_GLACCOUNT_ID&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl2 ON gl2.GLACCOUNT_ID = src.REVENUE_GLACCOUNT_ID&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON ac1.ACTIVITY_ID = src.ACTIVITY_ID&#13;&#10;    LEFT JOIN hub.PROGRAMS pr1 ON pr1.PROGRAM_ID = src.PROGRAM_ID&#13;&#10;    LEFT JOIN hub.PACKAGES pa1 ON pa1.PACKAGE_ID = src.PACKAGE_ID&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON fa1.FACILITY_ID = src.FACILITY_ID&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.COMPANY_ID = src.COMPANY_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AS_OF_DATE" nullable="true" remarks="The effective date that the revenue recognition has been calculated as of" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORIGINAL_TRANSACTION_ID" nullable="true" remarks="The original transaction ID that the revenue is related to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ORIGINAL_RECEIPT_DETAIL_ID" nullable="true" remarks="The original receipt detail ID that the revenue is related to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="GL_LEDGER_ID" nullable="true" remarks="The GL ledger ID for the deferred revenue posting" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GL_LEDGER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_GL_POSTINGS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="DEFERRED_GLACCOUNT_ID" nullable="true" remarks="The deferred revenue GL account ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="DEFERRED_ACCOUNT_NAME" nullable="true" remarks="The deferred revenue GL account name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="DEFERRED_ACCOUNT_NUMBER" nullable="true" remarks="The deferred revenue GL account number" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="REVENUE_GLACCOUNT_ID" nullable="true" remarks="The revenue GL account ID that will be posted to when the revenue is recognized" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="REVENUE_ACCOUNT_NAME" nullable="true" remarks="The revenue GL account name that will be posted to when the revenue is recognized" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="REVENUE_ACCOUNT_NUMBER" nullable="true" remarks="The revenue GL account number that will be posted to when the revenue is recognized" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="RECOGNIZE_DATE" nullable="true" remarks="The date that the revenue is scheduled to be recognized" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="11" name="RECOGNIZE_AMOUNT" nullable="true" remarks="The amount of revenue that is scheduled to be recognized" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="FISCAL_PERIOD_TYPE_ID" nullable="true" remarks="The fiscal period type ID (0=When Payment Received, 1=Daily, 2=Weekly, 3=Monthly, 4=Quarterly, 5=Yearly, 6=At Item Start Date, 7=At Item Start Date and Fiscal Year End)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="FISCAL_PERIOD_TYPE_NAME" nullable="false" remarks="The fiscal period type name (When Payment Received / Daily / Weekly / Monthly / Quarterly / Yearly / At Item Start Date / At Item Start Date and Fiscal Year End)" size="38" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="MODULE_NAME" nullable="true" remarks="The name of the module that the revenue applies to (Activities / Programs / Facilities / Memberships / Other)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="TRANSACTION_SITE_ID" nullable="true" remarks="The site ID where the transaction took place" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="TRANSACTION_SITE_NAME" nullable="true" remarks="The site name where the transaction took place" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="REVENUE_SITE_ID" nullable="true" remarks="The site ID that the revenue applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="REVENUE_SITE_NAME" nullable="true" remarks="The site name that the revenue applies to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ACTIVITY_ID" nullable="true" remarks="The activity ID that the revenue applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ACTIVITY_NAME" nullable="true" remarks="The activity name that the revenue applies to" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ACTIVITY_NUMBER" nullable="true" remarks="The activity number that the revenue applies to" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="PROGRAM_ID" nullable="true" remarks="The program ID that the revenue applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="PROGRAM_NAME" nullable="true" remarks="The program name that the revenue applies to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="PACKAGE_ID" nullable="true" remarks="The package ID that the revenue applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="PACKAGE_NAME" nullable="true" remarks="The package name that the revenue applies to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="FACILITY_ID" nullable="true" remarks="The facility ID that the revenue applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="FACILITY_NAME" nullable="true" remarks="The facility name that the revenue applies to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="CUSTOMER_ID" nullable="true" remarks="The customer ID that the revenue applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="CUSTOMER_NAME" nullable="true" remarks="The customer's name that the revenue applies to" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="CUSTOMER_NAME_LAST_FIRST" nullable="true" remarks="The customer's name that the revenue applies to (last name, first name)" size="512" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="COMPANY_ID" nullable="true" remarks="The company ID that the revenue applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="COMPANY_NAME" nullable="true" remarks="The company name that the revenue applies to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="34" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="AS_OF_DATE" sequenceNumberInPK="1"/>
         <primaryKey column="GL_LEDGER_ID" sequenceNumberInPK="2"/>
         <primaryKey column="REVENUE_GLACCOUNT_ID" sequenceNumberInPK="3"/>
         <primaryKey column="RECOGNIZE_DATE" sequenceNumberInPK="4"/>
      </table>
      <table catalog="ActiveHub" name="DEMOGRAPHICS" numRows="0" remarks="Your organization's defined demographics" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.DEMOGRAPHICS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.DEMOGRAPHIC_ID,&#13;&#10;    src.DEMOGRAPHIC_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.DEMOGRAPHICS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="DEMOGRAPHIC_ID" nullable="false" remarks="The demographic ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="DEMOGRAPHIC_NAME" nullable="true" remarks="The demographic name" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="2" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="DEMOGRAPHIC_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="DISCLAIMERS" numRows="0" remarks="Contains information on configured disclaimers" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.DISCLAIMERS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.DISCLAIMER_ID,&#13;&#10;    src.DISCLAIMER_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.DISCLAIMER_TEXT,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.DISCLAIMERS src&#13;&#10;    JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="DISCLAIMER_ID" nullable="true" remarks="The disclaimer ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="DISCLAIMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
            <child catalog="ActiveHub" column="DISCLAIMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="DISCLAIMER_NAME" nullable="true" remarks="The disclaimer name" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_ID" nullable="true" remarks="The ID of the site that the disclaimer belongs to (NULL for all sites)" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_NAME" nullable="true" remarks="The name of the site that the disclaimer belongs to (NULL for all sites)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="DISCLAIMER_TEXT" nullable="true" remarks="The disclaimer text" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="DISCLAIMER_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="ENTRY_POINTS" numRows="0" remarks="Your organization's defined entry points" schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21465&#13;&#10;--FileName=dbo.ENTRY_POINTS.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.ENTRY_POINTS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.ENTRYPOINT_ID,&#13;&#10;    src.ENTRY_POINT_NAME,&#13;&#10;    src.ENTRY_POINT_DESCRIPTION,&#13;&#10;    src.ENTRY_POINT_TYPE,&#13;&#10;    src.VALIDATION_TYPE,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    src.OPEN_24_HOURS,&#13;&#10;    src.DEFAULT_OPEN_TIME,&#13;&#10;    src.DEFAULT_CLOSE_TIME,&#13;&#10;    src.MONDAY_CLOSED,&#13;&#10;    src.TUESDAY_CLOSED,&#13;&#10;    src.WEDNESDAY_CLOSED,&#13;&#10;    src.THURSDAY_CLOSED,&#13;&#10;    src.FRIDAY_CLOSED,&#13;&#10;    src.SATURDAY_CLOSED,&#13;&#10;    src.SUNDAY_CLOSED,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM &#13;&#10;    hub.ENTRY_POINTS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ENTRYPOINT_ID" nullable="true" remarks="The ID of the entry point" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CHECKOUT_ENTRY_POINT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="ENTRYPOINT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="ENTRYPOINT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_ENTRY_POINTS"/>
            <child catalog="ActiveHub" column="ENTRYPOINT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ENTRY_POINT_NAME" nullable="true" remarks="The name of the entry point" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ENTRY_POINT_DESCRIPTION" nullable="true" remarks="The description of the entry point" size="125" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ENTRY_POINT_TYPE" nullable="true" remarks="The type of entry point (Standard / Check-in Only / Check-out Only / Check-in and Check-out)" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="VALIDATION_TYPE" nullable="true" remarks="How validation will be performed at this entry point (Membership Only / Membership then Alternate Key / Alternate Key then Membership)" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="FACILITY_ID" nullable="true" remarks="The ID of the facility that the entry point belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="OPEN_24_HOURS" nullable="true" remarks="Whether the entry point is open 24 hours per day (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="DEFAULT_OPEN_TIME" nullable="true" remarks="The default daily opening time of the entry point" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="DEFAULT_CLOSE_TIME" nullable="true" remarks="The default daily closing time of the entry point" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="MONDAY_CLOSED" nullable="true" remarks="Whether the entry point is closed on Mondays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="TUESDAY_CLOSED" nullable="true" remarks="Whether the entry point is closed on Tuesdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="WEDNESDAY_CLOSED" nullable="true" remarks="Whether the entry point is closed on Wednesdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="THURSDAY_CLOSED" nullable="true" remarks="Whether the entry point is closed on Thursdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="FRIDAY_CLOSED" nullable="true" remarks="Whether the entry point is closed on Fridays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="SATURDAY_CLOSED" nullable="true" remarks="Whether the entry point is closed on Saturdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SUNDAY_CLOSED" nullable="true" remarks="Whether the entry point is closed on Sundays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <primaryKey column="ENTRYPOINT_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="EQUIPMENT" numRows="0" remarks="Master table showing equipment details" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.EQUIPMENT &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_ID AS EQUIPMENT_ID,&#13;&#10;    src.FACILITY_NAME AS EQUIPMENT_NAME,&#13;&#10;    src.FACILITY_NUMBER AS EQUIPMENT_NUMBER,&#13;&#10;    src.ITEM_TYPE_ID,&#13;&#10;    src.RESOURCE_TYPE,&#13;&#10;    src.FACILITY_TYPE_ID AS EQUIPMENT_TYPE_ID,&#13;&#10;    ft1.FACILITY_TYPE_NAME AS EQUIPMENT_TYPE,&#13;&#10;    src.CENTER_ID,&#13;&#10;    ce1.CENTER_NAME,&#13;&#10;    src.FACILITY_DESCRIPTION AS EQUIPMENT_DESCRIPTION,&#13;&#10;    src.FACILITY_NOTES AS EQUIPMENT_NOTES,&#13;&#10;    src.OPEN_24_HOURS,&#13;&#10;    src.DEFAULT_OPEN_TIME,&#13;&#10;    src.DEFAULT_CLOSE_TIME,&#13;&#10;    src.MONDAY_CLOSED,&#13;&#10;    src.TUESDAY_CLOSED,&#13;&#10;    src.WEDNESDAY_CLOSED,&#13;&#10;    src.THURSDAY_CLOSED,&#13;&#10;    src.FRIDAY_CLOSED,&#13;&#10;    src.SATURDAY_CLOSED,&#13;&#10;    src.SUNDAY_CLOSED,&#13;&#10;    src.RESERVATION_PERIOD_UNIT,&#13;&#10;    src.MINIMUM_RESERVATION_TIME_UNITS,&#13;&#10;    src.MAXIMUM_RESERVATION_TIME_UNITS,&#13;&#10;    src.WEEKLY_RESERVATION_STARTS_ON,&#13;&#10;    src.DISCLAIMER_ID,&#13;&#10;    di1.DISCLAIMER_NAME,&#13;&#10;    src.PREP_CODE_ID,&#13;&#10;    pc1.PREP_CODE_NAME,&#13;&#10;    src.SEND_SUPERVISOR_EMAIL_RESERVATION_NOTIFICATION,&#13;&#10;    src.RESERVATION_NOTIFICATION_EMAIL_ADDRESS,&#13;&#10;    src.DEFAULT_CHECKIN_TIME,&#13;&#10;    src.DEFAULT_CHECKOUT_TIME,&#13;&#10;    src.FIXED_DEFAULT_CHECKIN_TIME,&#13;&#10;    src.FIXED_DEFAULT_CHECKOUT_TIME,&#13;&#10;    src.HIDE_ON_INTERNET,&#13;&#10;    src.PROHIBIT_INTERNET_PERMITS,&#13;&#10;    src.INTERNET_RESERVATION_TYPE,&#13;&#10;    src.INTERNET_RESERVATION_PROCESS,&#13;&#10;    src.OVERRIDE_SYSTEM_ONLINE_SETTINGS,&#13;&#10;    src.ONLINE_MIN_RESERVATION_ADVANCE_UNITS,&#13;&#10;    src.ONLINE_MIN_RESERVATION_ADVANCE_UNIT_TYPE,&#13;&#10;    src.ONLINE_NON_RESIDENT_MIN_RESERVATION_ADVANCE_UNITS,&#13;&#10;    src.ONLINE_NON_RESIDENT_MIN_RESERVATION_ADVANCE_UNIT_TYPE,&#13;&#10;    src.ONLINE_MAX_RESERVATION_ADVANCE_UNITS,&#13;&#10;    src.ONLINE_MAX_RESERVATION_ADVANCE_UNIT_TYPE,&#13;&#10;    src.ONLINE_NON_RESIDENT_MAX_RESERVATION_ADVANCE_UNITS,&#13;&#10;    src.ONLINE_NON_RESIDENT_MAX_RESERVATION_ADVANCE_UNIT_TYPE,&#13;&#10;    src.ONLINE_MAX_RESERVATION_EXTEND_UNITS,&#13;&#10;    src.ONLINE_MAX_RESERVATION_EXTEND_UNIT_TYPE,&#13;&#10;    src.ONLINE_NON_RESIDENT_MAX_RESERVATION_EXTEND_UNITS,&#13;&#10;    src.ONLINE_NON_RESIDENT_MAX_RESERVATION_EXTEND_UNIT_TYPE,&#13;&#10;    src.OVERRIDE_SYSTEM_STAFF_SETTINGS,&#13;&#10;    src.STAFF_MIN_RESERVATION_ADVANCE_UNITS,&#13;&#10;    src.STAFF_MIN_RESERVATION_ADVANCE_UNIT_TYPE,&#13;&#10;    src.STAFF_MAX_RESERVATION_ADVANCE_UNITS,&#13;&#10;    src.STAFF_MAX_RESERVATION_ADVANCE_UNIT_TYPE,&#13;&#10;    src.ONLINE_ADVANCE_RESERVATION_DAILY_OPEN_TIME,&#13;&#10;    src.EQUIPMENT_STATUS,&#13;&#10;    src.DEFAULT_LENDING_QUANTITY,&#13;&#10;    src.LENDING_LIMIT_PER_CUSTOMER,&#13;&#10;    src.DEFAULT_CHECK_OUT_OPTION,&#13;&#10;    src.DEFAULT_CHECK_IN_OPTION,&#13;&#10;    src.DEFAULT_LENDING_SIGN_IN_STATUS,&#13;&#10;    src.ALLOW_USE_BY_ACTIVITIES,&#13;&#10;    src.QUANTITY_USABLE_BY_ACTIVITIES,&#13;&#10;    src.ALLOW_USE_BY_PUBLIC,&#13;&#10;    src.QUANTITY_USABLE_BY_PUBLIC,&#13;&#10;    src.TOTAL_QUANTITY,&#13;&#10;    src.QUANTITY_PENDING,&#13;&#10;    src.QUANTITY_ON_LOAN,&#13;&#10;    src.SHOW_ON_CAPTIVATE_APP,&#13;&#10;    src.MODIFIED_DATE,&#13;&#10;    src.MODIFIED_DATE_ONLY,&#13;&#10;    src.RETIRED,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITIES src&#13;&#10;    LEFT JOIN hub.CENTERS ce1 ON (ce1.CENTER_ID = src.CENTER_ID)&#13;&#10;    LEFT JOIN hub.FACILITY_TYPES ft1 ON (ft1.FACILITY_TYPE_ID = src.FACILITY_TYPE_ID)&#13;&#10;    LEFT JOIN hub.PREP_CODES pc1 ON (pc1.PREP_CODE_ID = src.PREP_CODE_ID)&#13;&#10;    LEFT JOIN hub.DISCLAIMERS di1 ON (di1.DISCLAIMER_ID = src.DISCLAIMER_ID)&#13;&#10;WHERE&#13;&#10;    src.ITEM_TYPE_ID = 1;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="EQUIPMENT_ID" nullable="true" remarks="Equipment ID." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="EQUIPMENT_NAME" nullable="true" remarks="Equipment name." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="EQUIPMENT_NUMBER" nullable="true" remarks="Equipment number." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ITEM_TYPE_ID" nullable="true" remarks="The type of resource that this facility is (0=facility, 1=equipment, 2=human resource)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="RESOURCE_TYPE" nullable="true" remarks="Facility resource type (Facility, Equipment or Instructor)." size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="EQUIPMENT_TYPE_ID" nullable="true" remarks="The ID of the equipment type of this equipment." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="EQUIPMENT_TYPE" nullable="true" remarks="Equipment type." size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CENTER_ID" nullable="true" remarks="The ID of the center to which this equipment belongs." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CENTER_NAME" nullable="true" remarks="Name of the center to which this equipment belongs." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="EQUIPMENT_DESCRIPTION" nullable="true" remarks="The equipment description" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="EQUIPMENT_NOTES" nullable="true" remarks="Notes related to the equipment" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="OPEN_24_HOURS" nullable="true" remarks="Whether the equipment is available 24 hours per day (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="DEFAULT_OPEN_TIME" nullable="true" remarks="The default opening time for the equipment" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DEFAULT_CLOSE_TIME" nullable="true" remarks="The default closing time for the equipment" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="MONDAY_CLOSED" nullable="true" remarks="Whether the equipment is closed on Mondays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="TUESDAY_CLOSED" nullable="true" remarks="Whether the equipment is closed on Tuesdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="WEDNESDAY_CLOSED" nullable="true" remarks="Whether the equipment is closed on Wednesdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="THURSDAY_CLOSED" nullable="true" remarks="Whether the equipment is closed on Thursdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="FRIDAY_CLOSED" nullable="true" remarks="Whether the equipment is closed on Fridays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="SATURDAY_CLOSED" nullable="true" remarks="Whether the equipment is closed on Saturdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="SUNDAY_CLOSED" nullable="true" remarks="Whether the equipment is closed on Sundays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="RESERVATION_PERIOD_UNIT" nullable="true" remarks="The reservation period unit to be used when booking this equipment of this type (Use Default / Minute / Hour / Day / Week / Month / Defined Date Range / Rental Block / Overnight)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="MINIMUM_RESERVATION_TIME_UNITS" nullable="true" remarks="The minimum number of reservation time units that may be booked" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="MAXIMUM_RESERVATION_TIME_UNITS" nullable="true" remarks="The maximum number of reservation time units that may be booked" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="WEEKLY_RESERVATION_STARTS_ON" nullable="true" remarks="Day of the week that weekly reservations start on" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="DISCLAIMER_ID" nullable="true" remarks="The ID of the disclaimer required for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="DISCLAIMER_NAME" nullable="true" remarks="The name of the disclaimer required for this equipment" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="PREP_CODE_ID" nullable="true" remarks="The prep code ID for required setup and teardown time" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="PREP_CODE_NAME" nullable="true" remarks="The prep code name for required setup and teardown time" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="SEND_SUPERVISOR_EMAIL_RESERVATION_NOTIFICATION" nullable="true" remarks="Whether the supervisor should be sent a notification email for reservations created for this equipment (Yes, No, Use Default)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="RESERVATION_NOTIFICATION_EMAIL_ADDRESS" nullable="true" remarks="Additional email addresses that should be included in the reservation notification email" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="DEFAULT_CHECKIN_TIME" nullable="true" remarks="The default check-in time for the equipment" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="DEFAULT_CHECKOUT_TIME" nullable="true" remarks="The default checkout time for the equipment" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="FIXED_DEFAULT_CHECKIN_TIME" nullable="true" remarks="Whether there is a fixed check-in time for online reservations (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="FIXED_DEFAULT_CHECKOUT_TIME" nullable="true" remarks="Whether there is a fixed checkout time for online reservations (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether the equipment should be hidden from display online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="PROHIBIT_INTERNET_PERMITS" nullable="true" remarks="Whether the equipment should prohibit permit bookings (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="INTERNET_RESERVATION_TYPE" nullable="true" remarks="The type of reservation process that should be used online for this equipment (Regular Reservation, Continuous Reservation, Use Site Reservation Type)" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="INTERNET_RESERVATION_PROCESS" nullable="true" remarks="The reservation process that should be used online for this equipment (Reservation Request, Permit, --No Override--)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="OVERRIDE_SYSTEM_ONLINE_SETTINGS" nullable="true" remarks="Whether system level settings should be overridden for online reservations (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="ONLINE_MIN_RESERVATION_ADVANCE_UNITS" nullable="true" remarks="The number of time units used for determining the advanced online reservation minimum period for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="ONLINE_MIN_RESERVATION_ADVANCE_UNIT_TYPE" nullable="true" remarks="The type of time unit used for determining the advanced online reservation minimum period for this equipment (Days, Hours)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="ONLINE_NON_RESIDENT_MIN_RESERVATION_ADVANCE_UNITS" nullable="true" remarks="The number of time units used for determining the advanced online reservation minimum period for non-residents for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="ONLINE_NON_RESIDENT_MIN_RESERVATION_ADVANCE_UNIT_TYPE" nullable="true" remarks="The type of time unit used for determining the advanced online reservation minimum period for non-residents for this equipment (Days, Hours)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="ONLINE_MAX_RESERVATION_ADVANCE_UNITS" nullable="true" remarks="The number of time units used for determining the advanced online reservation maximum period for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="ONLINE_MAX_RESERVATION_ADVANCE_UNIT_TYPE" nullable="true" remarks="The type of time unit used for determining the advanced online reservation maximum period for this equipment (Days, Hours)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="ONLINE_NON_RESIDENT_MAX_RESERVATION_ADVANCE_UNITS" nullable="true" remarks="The number of time units used for determining the advanced online reservation maximum period for non-residents for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="ONLINE_NON_RESIDENT_MAX_RESERVATION_ADVANCE_UNIT_TYPE" nullable="true" remarks="The type of time unit used for determining the advanced online reservation maximum period for non-residents for this equipment (Days, Hours)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="ONLINE_MAX_RESERVATION_EXTEND_UNITS" nullable="true" remarks="The number of time units used for determining the advanced online extended reservation period for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="ONLINE_MAX_RESERVATION_EXTEND_UNIT_TYPE" nullable="true" remarks="The type of time unit used for determining the advanced online extended reservation period for this equipment (Days, Hours)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="ONLINE_NON_RESIDENT_MAX_RESERVATION_EXTEND_UNITS" nullable="true" remarks="The number of time units used for determining the advanced online extended reservation period for non-residents for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="ONLINE_NON_RESIDENT_MAX_RESERVATION_EXTEND_UNIT_TYPE" nullable="true" remarks="The type of time unit used for determining the advanced online extended reservation period for non-residents for this equipment (Days, Hours)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="OVERRIDE_SYSTEM_STAFF_SETTINGS" nullable="true" remarks="Whether system level settings should be overridden for staff reservations (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="STAFF_MIN_RESERVATION_ADVANCE_UNITS" nullable="true" remarks="The number of time units used for determining the advanced staff reservation minimum period for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="STAFF_MIN_RESERVATION_ADVANCE_UNIT_TYPE" nullable="true" remarks="The type of time unit used for determining the advanced staff reservation minimum period for this equipment (Days, Hours)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="STAFF_MAX_RESERVATION_ADVANCE_UNITS" nullable="true" remarks="The number of time units used for determining the advanced staff reservation maximum period for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="STAFF_MAX_RESERVATION_ADVANCE_UNIT_TYPE" nullable="true" remarks="The type of time unit used for determining the advanced staff reservation maximum period for this equipment (Days, Hours)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="ONLINE_ADVANCE_RESERVATION_DAILY_OPEN_TIME" nullable="true" remarks="The start time that online reservations open on the first advanced booking day" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="EQUIPMENT_STATUS" nullable="true" remarks="The current status of this equipment (Available, Damaged, Lost, Out, Retired, Pending, Unknown)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="DEFAULT_LENDING_QUANTITY" nullable="true" remarks="The default lending quantity for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="LENDING_LIMIT_PER_CUSTOMER" nullable="true" remarks="The lending quantity limit per customer for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="61" name="DEFAULT_CHECK_OUT_OPTION" nullable="true" remarks="The default check-out option for this equipment (Free early check-out, Charge early check-out, No early check-out)" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="DEFAULT_CHECK_IN_OPTION" nullable="true" remarks="The default check-in option for this equipment (Free late check-in, Charge late check-in)" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="DEFAULT_LENDING_SIGN_IN_STATUS" nullable="true" remarks="The default status for this equipment upon check-in (Available, Pending, Unknown)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="ALLOW_USE_BY_ACTIVITIES" nullable="true" remarks="Whether this equipment can be used for activities (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="65" name="QUANTITY_USABLE_BY_ACTIVITIES" nullable="true" remarks="The quantity of this equipment can be used for activities" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="66" name="ALLOW_USE_BY_PUBLIC" nullable="true" remarks="Whether this equipment can be used by the public (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="67" name="QUANTITY_USABLE_BY_PUBLIC" nullable="true" remarks="The quantity of this equipment can be used by the public" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="68" name="TOTAL_QUANTITY" nullable="true" remarks="The total quantity of this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="69" name="QUANTITY_PENDING" nullable="true" remarks="The current quantity of this equipment that is in a pending status" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="70" name="QUANTITY_ON_LOAN" nullable="true" remarks="The current quantity of this equipment that is loaned out" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="71" name="SHOW_ON_CAPTIVATE_APP" nullable="true" remarks="Whether this equipment should be shown on the ACTIVE Net Captivate App (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="72" name="MODIFIED_DATE" nullable="true" remarks="The date and time of the last modification to the equipment information" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="73" name="MODIFIED_DATE_ONLY" nullable="true" remarks="The date of the last modification to the equipment information (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="74" name="RETIRED" nullable="true" remarks="Whether the equipment record has been retired (Yes or No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="75" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="76" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="77" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="78" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="EQUIPMENT_CATEGORIES" numRows="0" remarks="Contains information on defined equipment categories" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.EQUIPMENT_CATEGORIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.EQUIPMENT_CATEGORY_ID,&#13;&#10;    src.EQUIPMENT_CATEGORY_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.HIDE_ON_INTERNET,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.EQUIPMENT_CATEGORIES src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="EQUIPMENT_CATEGORY_ID" nullable="true" remarks="The equipment category ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="EQUIPMENT_CATEGORY_NAME" nullable="true" remarks="The equipment category name" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_ID" nullable="true" remarks="The site ID that this equipment category should be available for (null for all sites)" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_NAME" nullable="true" remarks="The site name that this equipment category should be available for (null for all sites)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether this equipment category should be hidden from display online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="IS_RETIRED" nullable="true" remarks="Whether this equipment category has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="EQUIPMENT_CATEGORY_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="EQUIPMENT_HOURS" numRows="0" remarks="Contains information on equipment hours by date range" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.EQUIPMENT_HOURS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_HOUR_ID AS EQUIPMENT_HOUR_ID,&#13;&#10;    src.FACILITY_HOUR_DESCRIPTION AS EQUIPMENT_HOUR_DESCRIPTION,&#13;&#10;    src.FACILITY_ID AS EQUIPMENT_ID,&#13;&#10;    fa1.FACILITY_NAME AS EQUIPMENT_NAME,&#13;&#10;    src.START_MONTH,&#13;&#10;    src.START_DAY,&#13;&#10;    src.START_YEAR,&#13;&#10;    src.END_MONTH,&#13;&#10;    src.END_DAY,&#13;&#10;    src.END_YEAR,&#13;&#10;    src.OPEN_24_HOURS,&#13;&#10;    src.MONDAY_CLOSED,&#13;&#10;    src.TUESDAY_CLOSED,&#13;&#10;    src.WEDNESDAY_CLOSED,&#13;&#10;    src.THURSDAY_CLOSED,&#13;&#10;    src.FRIDAY_CLOSED,&#13;&#10;    src.SATURDAY_CLOSED,&#13;&#10;    src.SUNDAY_CLOSED,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_HOURS src&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;WHERE&#13;&#10;    fa1.ITEM_TYPE_ID = 1;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="EQUIPMENT_HOUR_ID" nullable="true" remarks="The equipment hours ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="EQUIPMENT_HOUR_DESCRIPTION" nullable="true" remarks="The equipment hours description" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="EQUIPMENT_ID" nullable="true" remarks="The ID of the equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="EQUIPMENT_NAME" nullable="true" remarks="The name of the equipment" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="START_MONTH" nullable="true" remarks="The starting month number for the period that these equipment hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="START_DAY" nullable="true" remarks="The starting day number for the period that these equipment hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="START_YEAR" nullable="true" remarks="The starting year for the period that these equipment hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="END_MONTH" nullable="true" remarks="The ending month number for the period that these equipment hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="END_DAY" nullable="true" remarks="The ending day number for the period that these equipment hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="END_YEAR" nullable="true" remarks="The ending year for the period that these equipment hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="OPEN_24_HOURS" nullable="true" remarks="Whether the equipment is open 24 hours per day (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="MONDAY_CLOSED" nullable="true" remarks="Whether the equipment is closed on Mondays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="TUESDAY_CLOSED" nullable="true" remarks="Whether the equipment is closed on Tuesdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="WEDNESDAY_CLOSED" nullable="true" remarks="Whether the equipment is closed on Wednesdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="THURSDAY_CLOSED" nullable="true" remarks="Whether the equipment is closed on Thursdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="FRIDAY_CLOSED" nullable="true" remarks="Whether the equipment is closed on Fridays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SATURDAY_CLOSED" nullable="true" remarks="Whether the equipment is closed on Saturdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="SUNDAY_CLOSED" nullable="true" remarks="Whether the equipment is closed on Sundays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="19" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="EQUIPMENT_LENDING_TRANSACTIONS" numRows="0" remarks="Equipment Lending transaction history" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.EQUIPMENT_LENDING_TRANSACTIONS &#13;&#10;AS &#13;&#10;select &#13;&#10;&#9;src.EQUIPMENTLENDINGTRANSACTION_ID AS EQUIPMENT_LENDING_TRANSACTION_ID,&#13;&#10;&#9;src.EQUIPMENT_ID AS FACILITY_ID,&#13;&#10;    rv1.REFERENCE_VALUE AS TRANSACTION_TYPE,&#13;&#10;    src.TRANSACTION_ID,&#13;&#10;&#9;src.QUANTITY,&#13;&#10;&#9;src.STATUS_ID,&#13;&#10;    rv2.REFERENCE_VALUE AS STATUS,&#13;&#10;&#9;src.TIME_STAMP,&#13;&#10;&#9;src.CUSTOMER_ID,&#13;&#10;    CONCAT(c.CUSTOMER_FIRST_NAME, IIF(c.CUSTOMER_FIRST_NAME IS NOT NULL AND c.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), c.CUSTOMER_LAST_NAME) AS CUSTOMER_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;&#9;src.DESCRIPTION,&#13;&#10;&#9;src.ROOT_ID AS ROOT_EQUIPMENT_LENDING_TRANSACTION_ID,&#13;&#10;&#9;src.ORG_ID&#13;&#10;FROM hub.EQUIPMENTLENDINGTRANSACTIONS src&#13;&#10;LEFT JOIN hub.REFERENCE_VALUES rv1 ON (rv1.ORG_ID = src.ORG_ID AND rv1.REFERENCE_ID = src.TRANSACTION_TYPE AND rv1.REFERENCE_TABLE = 'TRANSACTION_TYPES' AND rv1.REFERENCE_COLUMN = 'TITLE')&#13;&#10;LEFT JOIN hub.REFERENCE_VALUES rv2 ON (rv2.ORG_ID = src.ORG_ID AND rv2.REFERENCE_ID = src.STATUS_ID AND rv2.REFERENCE_TABLE = 'EQUIPMENT_LENDING_TRANSACTION' AND rv2.REFERENCE_COLUMN = 'STATUS')&#13;&#10;LEFT join hub.customers c on (src.ORG_ID = c.ORG_ID AND src.customer_id = c.customer_id)&#13;&#10;LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="EQUIPMENT_LENDING_TRANSACTION_ID" nullable="false" remarks="Unique ID of the table" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_ID" nullable="true" remarks="Facility ID of the equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="TRANSACTION_TYPE" nullable="true" remarks="The transaction type of the transaction" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="TRANSACTION_ID" nullable="true" remarks="Transaction ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="QUANTITY" nullable="true" remarks="Quantity of the equipment checked out" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="STATUS_ID" nullable="true" remarks="Status ID" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="STATUS" nullable="true" remarks="STATUS description" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="TIME_STAMP" nullable="true" remarks="Check In/Check Out time of the Equipment" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CUSTOMER_ID" nullable="true" remarks="ID of the customer who loaned the Equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CUSTOMER_NAME" nullable="false" remarks="Name of the customer" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="SITE_ID" nullable="true" remarks="ID of the site where the transaction was created" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="WORKSTATION_ID" nullable="true" remarks="ID of the workstation where the transaction was create" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="WORKSTATION_NAME" nullable="true" remarks="Name of the workstation" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the user who created the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the user who created the transaction" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="DESCRIPTION" nullable="true" remarks="Description of the loan/return" size="2000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ROOT_EQUIPMENT_LENDING_TRANSACTION_ID" nullable="true" remarks="Root EQUIPMENTLENDINGTRANSACTION_ID. Populated when equipment is returned." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="EQUIPMENT_OPEN_TIMES" numRows="0" remarks="Contains information on equipment open and close times per day of the week" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.EQUIPMENT_OPEN_TIMES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_OPEN_TIME_ID AS EQUIPMENT_OPEN_TIME_ID,&#13;&#10;    src.FACILITY_ID AS EQUIPMENT_ID,&#13;&#10;    fa1.FACILITY_NAME AS EQUIPMENT_NAME,&#13;&#10;    src.DAY_OF_WEEK,&#13;&#10;    src.DAY_OF_WEEK_NAME,&#13;&#10;    src.START_TIME,&#13;&#10;    src.END_TIME,&#13;&#10;    src.FACILITY_HOUR_ID AS EQUIPMENT_HOUR_ID,&#13;&#10;    fh1.FACILITY_HOUR_DESCRIPTION AS EQUIPMENT_HOUR_DESCRIPTION,&#13;&#10;    fh1.START_MONTH,&#13;&#10;    fh1.START_DAY,&#13;&#10;    fh1.START_YEAR,&#13;&#10;    fh1.END_MONTH,&#13;&#10;    fh1.END_DAY,&#13;&#10;    fh1.END_YEAR,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_OPEN_TIMES src&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    LEFT JOIN hub.FACILITY_HOURS fh1 ON (fh1.FACILITY_HOUR_ID = src.FACILITY_HOUR_ID)&#13;&#10;WHERE&#13;&#10;    fa1.ITEM_TYPE_ID = 1;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="EQUIPMENT_OPEN_TIME_ID" nullable="true" remarks="The equipment open time ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="EQUIPMENT_ID" nullable="true" remarks="The equipment ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="EQUIPMENT_NAME" nullable="true" remarks="The equipment name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="DAY_OF_WEEK" nullable="true" remarks="The day of the week number (1=Sunday to 7=Saturday)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="DAY_OF_WEEK_NAME" nullable="true" remarks="The day of the week (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday)" size="60" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="START_TIME" nullable="true" remarks="The equipment open time for this period of this day of the week (there may be multiple open and close times on a given day)" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="END_TIME" nullable="true" remarks="The equipment close time for this period of this day of the week (there may be multiple open and close times on a given day)" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="EQUIPMENT_HOUR_ID" nullable="true" remarks="The equipment hours ID if for a specific date range" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="EQUIPMENT_HOUR_DESCRIPTION" nullable="true" remarks="The equipment hours description if for a specific date range" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="START_MONTH" nullable="true" remarks="The starting month number for the period that these equipment hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="START_DAY" nullable="true" remarks="The starting day number for the period that these equipment hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="START_YEAR" nullable="true" remarks="The starting year for the period that these equipment hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="END_MONTH" nullable="true" remarks="The ending month number for the period that these equipment hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="END_DAY" nullable="true" remarks="The ending day number for the period that these equipment hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="END_YEAR" nullable="true" remarks="The ending year for the period that these equipment hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="EQUIPMENT_RENTAL_BLOCKS" numRows="0" remarks="Contains information on equipment rental blocks" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.EQUIPMENT_RENTAL_BLOCKS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_RENTAL_BLOCK_ID AS EQUIPMENT_RENTAL_BLOCK_ID,&#13;&#10;    src.FACILITY_RENTAL_BLOCK_NAME AS EQUIPMENT_RENTAL_BLOCK_NAME,&#13;&#10;    src.FACILITY_ID AS EQUIPMENT_ID,&#13;&#10;    fa1.FACILITY_NAME AS EQUIPMENT_NAME,&#13;&#10;    src.START_TIME,&#13;&#10;    src.END_TIME,&#13;&#10;    src.CROSSES_DAYS,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_RENTAL_BLOCKS src&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;WHERE&#13;&#10;    fa1.ITEM_TYPE_ID = 1;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="EQUIPMENT_RENTAL_BLOCK_ID" nullable="true" remarks="The equipment rental block ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="EQUIPMENT_RENTAL_BLOCK_NAME" nullable="true" remarks="The equipment rental block name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="EQUIPMENT_ID" nullable="true" remarks="The ID of the equipment that the rental block belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="EQUIPMENT_NAME" nullable="true" remarks="The name of the equipment that the rental block belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="START_TIME" nullable="true" remarks="The start time of the rental block" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="END_TIME" nullable="true" remarks="The end time of the rental block" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CROSSES_DAYS" nullable="true" remarks="Whether the rental block time cross into the next day (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="EQUIPMENT_TYPES" numRows="0" remarks="Contains information on defined equipment types" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.EQUIPMENT_TYPES&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.FACILITY_TYPE_ID AS EQUIPMENT_TYPE_ID,&#13;&#10;    src.FACILITY_TYPE_NAME AS EQUIPMENT_TYPE_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.EQUIPMENT_CATEGORY_ID,&#13;&#10;    eq1.EQUIPMENT_CATEGORY_NAME,&#13;&#10;    src.HIDE_ON_INTERNET,&#13;&#10;    src.IS_EQUIPMENT_LENDABLE,&#13;&#10;    src.INTERNET_RESERVATION_PROCESS,&#13;&#10;    src.MODIFY_ON_INTERNET,&#13;&#10;    src.DEFAULT_CHECKIN_TIME,&#13;&#10;    src.DEFAULT_CHECKOUT_TIME,&#13;&#10;    src.FIXED_DEFAULT_CHECKIN_TIME,&#13;&#10;    src.FIXED_DEFAULT_CHECKOUT_TIME,&#13;&#10;    src.SHOW_ON_CAPTIVATE_APP,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM&#13;&#10;    hub.FACILITY_TYPES src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.EQUIPMENT_CATEGORIES eq1 ON (eq1.EQUIPMENT_CATEGORY_ID = src.EQUIPMENT_CATEGORY_ID)&#13;&#10;WHERE&#13;&#10;    src.ITEM_TYPE_ID = 1;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="EQUIPMENT_TYPE_ID" nullable="true" remarks="The equipment type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="EQUIPMENT_TYPE_NAME" nullable="true" remarks="The equipment type name" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_ID" nullable="true" remarks="The site ID that this equipment type should be available for (null for all sites)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_NAME" nullable="true" remarks="The site that this equipment type should be available for (null for all sites)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="EQUIPMENT_CATEGORY_ID" nullable="true" remarks="The equipment category ID that this equipment type applies to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="EQUIPMENT_CATEGORY_NAME" nullable="true" remarks="The equipment category that this equipment type applies to" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether equipment of this type should be hidden from display online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="IS_EQUIPMENT_LENDABLE" nullable="true" remarks="Whether equipment of this type is lendable rather than bookable (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="INTERNET_RESERVATION_PROCESS" nullable="true" remarks="The type of online reservation process for equipment of this type (--No Override-- / Reservation Request / Permit)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="MODIFY_ON_INTERNET" nullable="true" remarks="Whether reservations of equipment of this type should be modifiable in the online reservation process (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="DEFAULT_CHECKIN_TIME" nullable="true" remarks="The default check-in time for equipment of this type" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="DEFAULT_CHECKOUT_TIME" nullable="true" remarks="The default check-out time for equipment of this type" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="FIXED_DEFAULT_CHECKIN_TIME" nullable="true" remarks="Whether there is a fixed check-in time for online reservations (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="FIXED_DEFAULT_CHECKOUT_TIME" nullable="true" remarks="Whether there is a fixed check-out time for online reservations (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="SHOW_ON_CAPTIVATE_APP" nullable="true" remarks="Whether equipment of this type should be shown on the ACTIVE Net Captivate App (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="IS_RETIRED" nullable="true" remarks="Whether this equipment type has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="17" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="EVENT_TYPE_CUSTOM_QUESTIONS" numRows="0" remarks="Custom questions for membership sale transactions." schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.EVENT_TYPE_CUSTOM_QUESTIONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    cql.EVENTTYPE_ID,&#13;&#10;    NULL CUSTOM_QUESTION_GROUP_ID,&#13;&#10;    NULL GROUP_DESCRIPTION,&#13;&#10;    NULL GROUP_HEADER_TEXT,&#13;&#10;    NULL GROUP_ORDER,&#13;&#10;    cql.QUESTION_ORDER,&#13;&#10;    cq.CUSTOM_QUESTION_ID,&#13;&#10;    cq.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    cq.QUESTION,&#13;&#10;    cq.IS_REQUIRED,&#13;&#10;    cq.QUESTION_TYPE,&#13;&#10;    cq.NOTE,&#13;&#10;    cq.DEFAULT_ANSWER,&#13;&#10;    cq.TITLE,&#13;&#10;    cq.ANSWER_FORMAT,&#13;&#10;    cq.IS_RETIRED,&#13;&#10;    cq.HIDE_ON_INTERNET,&#13;&#10;    cq.ADD_TO_NEW_ACTIVITIES,&#13;&#10;    cq.QUESTION_SCOPE,&#13;&#10;    cq.HIDE_ON_ADMIN,&#13;&#10;    cq.DO_NOT_SHOW_AFTER,&#13;&#10;    cq.DO_NOT_EDIT_AFTER,&#13;&#10;    cq.USE_ANSWER_CODE,&#13;&#10;    cq.QUESTION_HINT,&#13;&#10;    cq.MESSAGE_FOR_USED_UP_ANSWERS,&#13;&#10;    cq.ANSWER_MAX_LENGTH,&#13;&#10;    cq.EXTRA_ANSWER_TEXT,&#13;&#10;    cq.CUSTOM_QUESTION_TYPE_ID,&#13;&#10;    cct.CUSTOM_QUESTION_TYPE_NAME AS CUSTOM_QUESTION_TYPE,&#13;&#10;    cq.APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS,&#13;&#10;    cq.IS_DEMOGRAPHIC_RELATED_QUESTION&#13;&#10;FROM&#13;&#10;    hub.CUSTOM_QUESTION_LINKS cql&#13;&#10;    JOIN hub.CUSTOM_QUESTIONS cq ON cq.ORG_ID = cql.ORG_ID AND cq.CUSTOM_QUESTION_ID = cql.CUSTOM_QUESTION_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.ORG_ID = cq.ORG_ID AND si1.SITE_ID = cq.SITE_ID&#13;&#10;    LEFT JOIN hub.CUSTOM_QUESTION_TYPES cct ON (cct.ORG_ID = cq.ORG_ID AND cct.CUSTOM_QUESTION_TYPE_ID = cq.CUSTOM_QUESTION_TYPE_ID)&#13;&#10;WHERE&#13;&#10;    cql.EVENTTYPECUSTOMQUESTION_ID IS NOT NULL&#13;&#10;UNION ALL&#13;&#10;SELECT&#13;&#10;    ISNULL(cql.EVENTTYPE_ID, cqgl.EVENTTYPE_ID) AS EVENTTYPE_ID,&#13;&#10;    cqgl.CUSTOM_QUESTION_GROUP_ID,&#13;&#10;    cqgl.GROUP_DESCRIPTION,&#13;&#10;    cqgl.GROUP_HEADER_TEXT,&#13;&#10;    cqgl.GROUP_ORDER,&#13;&#10;    cql.QUESTION_ORDER,&#13;&#10;    cq.CUSTOM_QUESTION_ID,&#13;&#10;    cq.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    cq.QUESTION,&#13;&#10;    cq.IS_REQUIRED,&#13;&#10;    cq.QUESTION_TYPE,&#13;&#10;    cq.NOTE,&#13;&#10;    cq.DEFAULT_ANSWER,&#13;&#10;    cq.TITLE,&#13;&#10;    cq.ANSWER_FORMAT,&#13;&#10;    cq.IS_RETIRED,&#13;&#10;    cq.HIDE_ON_INTERNET,&#13;&#10;    cq.ADD_TO_NEW_ACTIVITIES,&#13;&#10;    cq.QUESTION_SCOPE,&#13;&#10;    cq.HIDE_ON_ADMIN,&#13;&#10;    cq.DO_NOT_SHOW_AFTER,&#13;&#10;    cq.DO_NOT_EDIT_AFTER,&#13;&#10;    cq.USE_ANSWER_CODE,&#13;&#10;    cq.QUESTION_HINT,&#13;&#10;    cq.MESSAGE_FOR_USED_UP_ANSWERS,&#13;&#10;    cq.ANSWER_MAX_LENGTH,&#13;&#10;    cq.EXTRA_ANSWER_TEXT,&#13;&#10;    cq.CUSTOM_QUESTION_TYPE_ID,&#13;&#10;    cct.CUSTOM_QUESTION_TYPE_NAME AS CUSTOM_QUESTION_TYPE,&#13;&#10;    cq.APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS,&#13;&#10;    cq.IS_DEMOGRAPHIC_RELATED_QUESTION&#13;&#10;FROM&#13;&#10;    hub.CUSTOM_QUESTION_GROUP_LINKS cqgl&#13;&#10;    JOIN hub.CUSTOM_QUESTION_LINKS cql ON cql.ORG_ID = cqgl.ORG_ID AND cql.CUSTOM_QUESTION_GROUP_ID = cqgl.CUSTOM_QUESTION_GROUP_ID AND cql.GROUPCUSTOMQUESTION_ID IS NOT NULL&#13;&#10;    JOIN hub.CUSTOM_QUESTIONS cq ON cq.ORG_ID = cql.ORG_ID AND cq.CUSTOM_QUESTION_ID = cql.CUSTOM_QUESTION_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.ORG_ID = cq.ORG_ID AND si1.SITE_ID = cq.SITE_ID&#13;&#10;    LEFT JOIN hub.CUSTOM_QUESTION_TYPES cct ON (cct.ORG_ID = cq.ORG_ID AND cct.CUSTOM_QUESTION_TYPE_ID = cq.CUSTOM_QUESTION_TYPE_ID)&#13;&#10;WHERE&#13;&#10;    cqgl.EVENTTYPECUSTOM_QUESTION_GROUP_ID IS NOT NULL;&#13;&#10;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="EVENTTYPE_ID" nullable="true" remarks="Event Type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOM_QUESTION_GROUP_ID" nullable="true" remarks="Custom question group ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="GROUP_DESCRIPTION" nullable="true" remarks="Custom question group description" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="GROUP_HEADER_TEXT" nullable="true" remarks="Custom question group heading text" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GROUP_ORDER" nullable="true" remarks="Custom question group display order" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="QUESTION_ORDER" nullable="true" remarks="The order number that the question should be presented in" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOM_QUESTION_ID" nullable="true" remarks="Custom question ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SITE_ID" nullable="true" remarks="Site ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SITE_NAME" nullable="true" remarks="Site name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="QUESTION" nullable="true" remarks="The text of the question to be asked" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="IS_REQUIRED" nullable="true" remarks="Whether an answer is required for the custom question (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="QUESTION_TYPE" nullable="true" remarks="The type of control to be used to answer the question (User Entry / Single Selection - Dropdown / Single Selection - Radio / Multi Selection - Checkbox / Multi Selection - Listbox / Auto-fill Conditional)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="NOTE" nullable="true" remarks="A user note related to the custom question" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DEFAULT_ANSWER" nullable="true" remarks="The optional default answer for the user entry question" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="TITLE" nullable="true" remarks="The title of the custom question" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ANSWER_FORMAT" nullable="true" remarks="The answer format of the user entry question (Free Form / Phone Number / Date / Time / SSN / Postal Code / Upper-case Alpha / Lower-case Alpha / Numbers Only / Alpha Only / Duration)" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="IS_RETIRED" nullable="true" remarks="Whether the custom question has been retired (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether the custom question should be excluded from display on the internet site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ADD_TO_NEW_ACTIVITIES" nullable="true" remarks="Whether the custom question should be automatically added to new activities (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="QUESTION_SCOPE" nullable="true" remarks="The scope of the custom question (Ask for every transaction / Ask once per receipt)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="HIDE_ON_ADMIN" nullable="true" remarks="Whether the custom question should be excluded from display on the admin site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="DO_NOT_SHOW_AFTER" nullable="true" remarks="The last date that the custom question should be displayed" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="DO_NOT_EDIT_AFTER" nullable="true" remarks="The last date that the custom question should allow edits" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="USE_ANSWER_CODE" nullable="true" remarks="Whether the custom question uses answer codes (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="QUESTION_HINT" nullable="true" remarks="A hint to be displayed for the custom question" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="MESSAGE_FOR_USED_UP_ANSWERS" nullable="true" remarks="A message to be displayed for the custom question for answers that have reached their use count limit" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ANSWER_MAX_LENGTH" nullable="true" remarks="The maximum answer length for user entry questions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="EXTRA_ANSWER_TEXT" nullable="true" remarks="Additional instruction text to be displayed for a multiple-choice question" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="CUSTOM_QUESTION_TYPE_ID" nullable="true" remarks="Custom question type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="CUSTOM_QUESTION_TYPE" nullable="true" remarks="Custom question type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS" nullable="true" remarks="Whether the answer given should replace prior answers to the same question for the customer (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="IS_DEMOGRAPHIC_RELATED_QUESTION" nullable="true" remarks="Whether the custom question is related to demographics (Yes/No)" size="5" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="EVENT_TYPE_EQUIPMENT_TYPES" numRows="0" remarks="Contains information on equipment types that are linked to each event type that is not configured for all equipment" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.EVENT_TYPE_EQUIPMENT_TYPES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.EVENT_TYPE_ID,&#13;&#10;    et1.EVENT_TYPE_NAME,&#13;&#10;    src.FACILITY_TYPE_ID AS EQUIPMENT_TYPE_ID,&#13;&#10;    ft1.FACILITY_TYPE_NAME AS EQUIPMENT_TYPE_NAME,&#13;&#10;    src.EVENTTYPE_FACILITYTYPE_ID,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_TYPE_LINKS src&#13;&#10;    JOIN hub.FACILITY_TYPES ft1 ON (ft1.FACILITY_TYPE_ID = src.FACILITY_TYPE_ID)&#13;&#10;    JOIN hub.EVENT_TYPES et1 ON (et1.EVENT_TYPE_ID = src.EVENT_TYPE_ID)&#13;&#10;WHERE&#13;&#10;    src.EVENTTYPE_FACILITYTYPE_ID IS NOT NULL&#13;&#10;    AND ft1.ITEM_TYPE_ID = 1;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="EVENT_TYPE_ID" nullable="true" remarks="The event type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="EVENT_TYPE_NAME" nullable="true" remarks="The event type name" size="102" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="EQUIPMENT_TYPE_ID" nullable="true" remarks="The equipment type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="EQUIPMENT_TYPE_NAME" nullable="true" remarks="The equipment type name" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="EVENTTYPE_FACILITYTYPE_ID" nullable="true" remarks="The event type facility type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="EVENT_TYPE_FACILITIES" numRows="0" remarks="Contains information on facilities that are linked to each event type that is not configured for all facilities" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.EVENT_TYPE_FACILITIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.EVENT_TYPE_ID,&#13;&#10;    et1.EVENT_TYPE_NAME,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.EVENTTYPE_FACILITY_ID,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_LINKS src&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    LEFT JOIN hub.EVENT_TYPES et1 ON (et1.EVENT_TYPE_ID = src.EVENT_TYPE_ID)&#13;&#10;    WHERE src.EVENTTYPE_FACILITY_ID IS NOT NULL;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="EVENT_TYPE_ID" nullable="true" remarks="The event type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="EVENT_TYPE_NAME" nullable="true" remarks="The event type name" size="102" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FACILITY_ID" nullable="true" remarks="The facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FACILITY_NAME" nullable="true" remarks="The facility name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="EVENTTYPE_FACILITY_ID" nullable="true" remarks="The event type facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="EVENT_TYPE_FACILITY_TYPES" numRows="0" remarks="Contains information on facility types that are linked to each event type that is not configured for all facilities" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.EVENT_TYPE_FACILITY_TYPES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.EVENT_TYPE_ID,&#13;&#10;    et1.EVENT_TYPE_NAME,&#13;&#10;    src.FACILITY_TYPE_ID,&#13;&#10;    ft1.FACILITY_TYPE_NAME,&#13;&#10;    src.EVENTTYPE_FACILITYTYPE_ID,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_TYPE_LINKS src&#13;&#10;    JOIN hub.FACILITY_TYPES ft1 ON (ft1.FACILITY_TYPE_ID = src.FACILITY_TYPE_ID)&#13;&#10;    JOIN hub.EVENT_TYPES et1 ON (et1.EVENT_TYPE_ID = src.EVENT_TYPE_ID)&#13;&#10;WHERE&#13;&#10;    src.EVENTTYPE_FACILITYTYPE_ID IS NOT NULL&#13;&#10;    AND ft1.ITEM_TYPE_ID = 0;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="EVENT_TYPE_ID" nullable="true" remarks="The event type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="EVENT_TYPE_NAME" nullable="true" remarks="The event type name" size="102" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FACILITY_TYPE_ID" nullable="true" remarks="The facility type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FACILITY_TYPE_NAME" nullable="true" remarks="The facility type name" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="EVENTTYPE_FACILITYTYPE_ID" nullable="true" remarks="The event type facility type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="EVENT_TYPES" numRows="0" remarks="Contains information on defined event types for reservations" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.EVENT_TYPES&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.EVENT_TYPE_ID,&#13;&#10;    src.EVENT_TYPE_NAME,&#13;&#10;    src.EVENT_TYPE_HEADING,&#13;&#10;    src.EVENT_TYPE_NOTES,&#13;&#10;    src.PREP_CODE_ID,&#13;&#10;    pc1.PREP_CODE_NAME,&#13;&#10;    src.INCLUDE_SETUP_IN_EVENT_TIME,&#13;&#10;    src.INCLUDE_CLEANUP_IN_EVENT_TIME,&#13;&#10;    src.SCHEDULE_TYPE_ID,&#13;&#10;    st1.SCHEDULE_TYPE_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.HIDE_ON_INTERNET,&#13;&#10;    src.AVAILABLE_FOR_ALL_FACILITIES,&#13;&#10;    src.AVAILABLE_FOR_ALL_EQUIPMENT,&#13;&#10;    src.AVAILABLE_FOR_ALL_INSTRUCTORS,&#13;&#10;    src.ALLOW_NON_EXCLUSIVE_PERMIT,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.AUTO_INCLUDE_FACILITY,&#13;&#10;    src.DISPLAY_IMAGE_ID,&#13;&#10;    uf1.DISPLAY_NAME AS DISPLAY_IMAGE_NAME,&#13;&#10;    src.BOOKING_BACKGROUND_COLOR,&#13;&#10;    src.BOOKING_TEXT_COLOR,&#13;&#10;    src.AVAILABLE_FOR_ONLINE_CALENDAR,&#13;&#10;    src.SHOW_ONLINE_LANDING_PAGE,&#13;&#10;    src.LANDING_PAGE_FIELD_ORDER,&#13;&#10;    src.APPLY_ONLINE_COLOR_THEME,&#13;&#10;    src.ONLINE_BACKGROUND_COLOR,&#13;&#10;    src.ONLINE_TEXT_COLOR,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM&#13;&#10;    hub.EVENT_TYPES src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.SCHEDULE_TYPES st1 ON (st1.SCHEDULE_TYPE_ID = src.SCHEDULE_TYPE_ID)&#13;&#10;    LEFT JOIN hub.PREP_CODES pc1 ON (pc1.PREP_CODE_ID = src.PREP_CODE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf1 ON (uf1.UPLOADED_FILE_ID = src.DISPLAY_IMAGE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="EVENT_TYPE_ID" nullable="true" remarks="The event type ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_LINKS"/>
            <child catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_TYPE_LINKS"/>
            <child catalog="ActiveHub" column="DEFAULT_EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_TYPES"/>
            <child catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_USAGE_REVENUE"/>
            <child catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RESERVATION_GROUPS"/>
            <child catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGE_SEQUENCE_LINKS"/>
            <child catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STANDARD_CHARGES"/>
            <child catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="EVENT_TYPE_NAME" nullable="true" remarks="The event type name" size="102" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="EVENT_TYPE_HEADING" nullable="true" remarks="The event type heading" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="EVENT_TYPE_NOTES" nullable="true" remarks="The event type notes" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PREP_CODE_ID" nullable="true" remarks="The prep code ID for required setup and teardown time" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PREP_CODE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PREP_CODES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PREP_CODE_NAME" nullable="true" remarks="The prep code name for required setup and teardown time" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="INCLUDE_SETUP_IN_EVENT_TIME" nullable="true" remarks="Whether the setup time in the related prep code should be applied to reservations of this event type" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="INCLUDE_CLEANUP_IN_EVENT_TIME" nullable="true" remarks="Whether the cleanup time in the related prep code should be applied to reservations of this event type" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SCHEDULE_TYPE_ID" nullable="true" remarks="The schedule type ID to be used for this event type" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SCHEDULE_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SCHEDULE_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="SCHEDULE_TYPE_NAME" nullable="true" remarks="The schedule type name to be used for this event type" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="SITE_ID" nullable="true" remarks="The site ID that this event type should be available for (null for all sites)" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="SITE_NAME" nullable="true" remarks="The site name that this event type should be available for (null for all sites)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether this event type should be hidden from display online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="AVAILABLE_FOR_ALL_FACILITIES" nullable="true" remarks="Whether this event type should be available for all facilities (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="AVAILABLE_FOR_ALL_EQUIPMENT" nullable="true" remarks="Whether this event type should be available for all equipment (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="AVAILABLE_FOR_ALL_INSTRUCTORS" nullable="true" remarks="Whether this event type should be available for all instructors (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ALLOW_NON_EXCLUSIVE_PERMIT" nullable="true" remarks="Whether this event type should allow non-exclusive permits (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="IS_RETIRED" nullable="true" remarks="Whether this event type has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="AUTO_INCLUDE_FACILITY" nullable="true" remarks="Whether this event type should automatically include facilities and equipment during reservation (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="DISPLAY_IMAGE_ID" nullable="true" remarks="The ID of the image file that is associated with this event type" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="DISPLAY_IMAGE_NAME" nullable="true" remarks="The name of the image file that is associated with this event type" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="BOOKING_BACKGROUND_COLOR" nullable="true" remarks="The background color code that reservations of this event type should be displayed on the reservations calendar" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="BOOKING_TEXT_COLOR" nullable="true" remarks="The text color code that reservations of this event type should be displayed on the reservations calendar" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="AVAILABLE_FOR_ONLINE_CALENDAR" nullable="true" remarks="Whether this event type should be available for assignment on the online calendar (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="SHOW_ONLINE_LANDING_PAGE" nullable="true" remarks="Whether this event type should be displayed on the online landing page (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="LANDING_PAGE_FIELD_ORDER" nullable="true" remarks="The order position where this event type should be displayed on the online landing page" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="APPLY_ONLINE_COLOR_THEME" nullable="true" remarks="Whether a specific color scheme should be used for this event type on the online calendar (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="ONLINE_BACKGROUND_COLOR" nullable="true" remarks="The background color code that reservations of this event type should be displayed on the online calendar" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="ONLINE_TEXT_COLOR" nullable="true" remarks="The text color code that reservations of this event type should be displayed on the online calendar" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="30" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="EVENT_TYPE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="EXTERNAL_CLIENT_API_REQUEST_LOG" numRows="0" remarks="LOG of External clients api calls" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.EXTERNAL_CLIENT_API_REQUEST_LOG&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.LOG_RECORD_ID AS LOG_RECORD_ID,&#13;&#10;&#9;src.DATESTAMP,&#13;&#10;&#9;src.SERVICE_TYPE_ID,&#13;&#10;&#9;src.REQUEST_TYPE_ID,&#13;&#10;&#9;src.REQUEST_DESCRIPTION,&#13;&#10;&#9;src.REQUEST_START_DATESTAMP,&#13;&#10;&#9;src.REQUEST_END_DATESTAMP,&#13;&#10;&#9;src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;&#9;src.OVERRIDE_SYSTEMUSER_ID,&#13;&#10;&#9;src.WORKSTATION_ID,&#13;&#10;&#9;src.TRANSACTION_ID,&#13;&#10;&#9;src.CLIENT_API_URL,&#13;&#10;&#9;src.REQUEST_STR,&#13;&#10;&#9;src.RESPONSE_STR,&#13;&#10;&#9;src.IS_ERROR,&#13;&#10;&#9;src.ERRORMSG,&#13;&#10;&#9;src.ERRORCODE,&#13;&#10;&#9;src.REASON_ID,&#13;&#10;&#9;src.REASON_TEXT,&#13;&#10;&#9;src.QUANTITY,&#13;&#10;&#9;src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.LOG_RECORD_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.EXTERNAL_CLIENT_API_REQUEST_LOG src&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LOG_RECORD_ID" nullable="false" remarks="Log record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="1" name="DATESTAMP" nullable="true" remarks="Datestamp for log record insert" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SERVICE_TYPE_ID" nullable="true" remarks="Service type from ClientApiLog (0=unknown, 1=ski lift ticket printer)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="REQUEST_TYPE_ID" nullable="true" remarks="Request type ID from the ANET service integration implementation (0=unknown,1=print,2=reprint,3=print all)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="REQUEST_DESCRIPTION" nullable="true" remarks="Optional request description string" size="2000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="REQUEST_START_DATESTAMP" nullable="true" remarks="Datestamp when request to the client was sent" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="REQUEST_END_DATESTAMP" nullable="true" remarks="Datestamp when request response was received" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SYSTEMUSER_ID" nullable="true" remarks="Id of staff user that initiated the request" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SYSTEM_USER_NAME" nullable="false" remarks="" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="OVERRIDE_SYSTEMUSER_ID" nullable="true" remarks="Id of staff user that provided override credentials if logged on user did not have permission" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="WORKSTATION_ID" nullable="true" remarks="Id of the ANET workstation where staff user was logged on" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="TRANSACTION_ID" nullable="true" remarks="Id of the transaction (for example, ski lift ticket sale transaction ID)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CLIENT_API_URL" nullable="true" remarks="Client API URL where the request was sent" size="500" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="REQUEST_STR" nullable="true" remarks="Request sent to the client API URL (as string)" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="RESPONSE_STR" nullable="true" remarks="Response received from the client API URL (as string)" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="IS_ERROR" nullable="true" remarks="Did the request get an error or exception" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ERRORMSG" nullable="true" remarks="Error or exception message (if any)" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ERRORCODE" nullable="true" remarks="Error code returned from the API (if any)" size="80" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="REASON_ID" nullable="true" remarks="Id of record in the Anet REASONS table (if applicable)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="REASON_TEXT" nullable="true" remarks="Reason text provided by the staff user" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="QUANTITY" nullable="true" remarks="Override quantity for API call if less than transaction quantity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="21" name="LAST_SYNC_TIME" nullable="true" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="source_id" nullable="false" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="FACILITIES" numRows="0" remarks="Master table showing facility details" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.FACILITIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_ID,&#13;&#10;    src.FACILITY_NAME,&#13;&#10;    src.FACILITY_NUMBER,&#13;&#10;    src.ITEM_TYPE_ID,&#13;&#10;    src.RESOURCE_TYPE,&#13;&#10;    src.FACILITY_TYPE_ID,&#13;&#10;    ft1.FACILITY_TYPE_NAME AS FACILITY_TYPE,&#13;&#10;    src.CENTER_ID,&#13;&#10;    ce1.CENTER_NAME,&#13;&#10;    src.OVERRIDE_CENTER_ADDRESS,&#13;&#10;    src.ADDRESS1,&#13;&#10;    src.ADDRESS2,&#13;&#10;    src.CITY,&#13;&#10;    src.STATE,&#13;&#10;    src.ZIPCODE,&#13;&#10;    src.COUNTRY,&#13;&#10;    src.GEOGRAPHIC_AREA_ID,&#13;&#10;    ga1.GEOGRAPHIC_AREA_NAME AS GEOGRAPHIC_AREA,&#13;&#10;    src.LATITUDE,&#13;&#10;    src.LONGITUDE,&#13;&#10;    src.FACILITY_DESCRIPTION,&#13;&#10;    src.FACILITY_NOTES,&#13;&#10;    src.OPEN_24_HOURS,&#13;&#10;    src.DEFAULT_OPEN_TIME,&#13;&#10;    src.DEFAULT_CLOSE_TIME,&#13;&#10;    src.MONDAY_CLOSED,&#13;&#10;    src.TUESDAY_CLOSED,&#13;&#10;    src.WEDNESDAY_CLOSED,&#13;&#10;    src.THURSDAY_CLOSED,&#13;&#10;    src.FRIDAY_CLOSED,&#13;&#10;    src.SATURDAY_CLOSED,&#13;&#10;    src.SUNDAY_CLOSED,&#13;&#10;    src.MAXIMUM_CAPACITY,&#13;&#10;    src.MINIMUM_CAPACITY,&#13;&#10;    src.ALLOW_DOUBLE_BOOKING,&#13;&#10;    src.DOUBLE_BOOKING_RESTRICTIONS,&#13;&#10;    src.RESERVATION_PERIOD_UNIT,&#13;&#10;    src.MINIMUM_RESERVATION_TIME_UNITS,&#13;&#10;    src.MAXIMUM_RESERVATION_TIME_UNITS,&#13;&#10;    src.WEEKLY_RESERVATION_STARTS_ON,&#13;&#10;    src.EXCLUDE_FROM_LEAGUE_SCHEDULING,&#13;&#10;    src.ALLOW_CONFLICTS,&#13;&#10;    src.DISPLAY_FULL_DAY_SWITCH_ONLINE,&#13;&#10;    src.ALLOW_OVERLAPPED_RENTAL_BLOCKS,&#13;&#10;    src.TOTAL_QUANTITY AS MAX_ATTENDANCE_AT_ONE_TIME,&#13;&#10;    src.MAX_RESERVATIONS_PER_CUSTOMER_PER_DAY,&#13;&#10;    src.DISCLAIMER_ID,&#13;&#10;    di1.DISCLAIMER_NAME,&#13;&#10;    src.PREP_CODE_ID,&#13;&#10;    pc1.PREP_CODE_NAME,&#13;&#10;    src.INCLUDE_SETUP,&#13;&#10;    src.INCLUDE_CLEANUP,&#13;&#10;    src.SEND_SUPERVISOR_EMAIL_RESERVATION_NOTIFICATION,&#13;&#10;    src.RESERVATION_NOTIFICATION_EMAIL_ADDRESS,&#13;&#10;    src.DEFAULT_CHECKIN_TIME,&#13;&#10;    src.DEFAULT_CHECKOUT_TIME,&#13;&#10;    src.FIXED_DEFAULT_CHECKIN_TIME,&#13;&#10;    src.FIXED_DEFAULT_CHECKOUT_TIME,&#13;&#10;    src.LIGHTING_ID,&#13;&#10;    src.CENTER_LIGHTING_ID_OVERRIDE,&#13;&#10;    src.MAX_DRESSING_ROOM_NUMBER,&#13;&#10;    src.HIDE_ON_INTERNET,&#13;&#10;    src.PROHIBIT_INTERNET_PERMITS,&#13;&#10;    src.INTERNET_RESERVATION_TYPE,&#13;&#10;    src.INTERNET_RESERVATION_PROCESS,&#13;&#10;    src.OVERRIDE_SYSTEM_ONLINE_SETTINGS,&#13;&#10;    src.ONLINE_MIN_RESERVATION_ADVANCE_UNITS,&#13;&#10;    src.ONLINE_MIN_RESERVATION_ADVANCE_UNIT_TYPE,&#13;&#10;    src.ONLINE_NON_RESIDENT_MIN_RESERVATION_ADVANCE_UNITS,&#13;&#10;    src.ONLINE_NON_RESIDENT_MIN_RESERVATION_ADVANCE_UNIT_TYPE,&#13;&#10;    src.ONLINE_MAX_RESERVATION_ADVANCE_UNITS,&#13;&#10;    src.ONLINE_MAX_RESERVATION_ADVANCE_UNIT_TYPE,&#13;&#10;    src.ONLINE_NON_RESIDENT_MAX_RESERVATION_ADVANCE_UNITS,&#13;&#10;    src.ONLINE_NON_RESIDENT_MAX_RESERVATION_ADVANCE_UNIT_TYPE,&#13;&#10;    src.ONLINE_MAX_RESERVATION_EXTEND_UNITS,&#13;&#10;    src.ONLINE_MAX_RESERVATION_EXTEND_UNIT_TYPE,&#13;&#10;    src.ONLINE_NON_RESIDENT_MAX_RESERVATION_EXTEND_UNITS,&#13;&#10;    src.ONLINE_NON_RESIDENT_MAX_RESERVATION_EXTEND_UNIT_TYPE,&#13;&#10;    src.OVERRIDE_SYSTEM_STAFF_SETTINGS,&#13;&#10;    src.STAFF_MIN_RESERVATION_ADVANCE_UNITS,&#13;&#10;    src.STAFF_MIN_RESERVATION_ADVANCE_UNIT_TYPE,&#13;&#10;    src.STAFF_MAX_RESERVATION_ADVANCE_UNITS,&#13;&#10;    src.STAFF_MAX_RESERVATION_ADVANCE_UNIT_TYPE,&#13;&#10;    src.ONLINE_ADVANCE_RESERVATION_DAILY_OPEN_TIME,&#13;&#10;    src.SHOW_ON_CAPTIVATE_APP,&#13;&#10;    src.CAPTIVATE_APP_IMAGE_ID,&#13;&#10;    uf1.DISPLAY_NAME AS CAPTIVATE_APP_IMAGE,&#13;&#10;    src.HAS_RESERVATION_DATE_RANGES,&#13;&#10;    src.MODIFIED_DATE,&#13;&#10;    src.MODIFIED_DATE_ONLY,&#13;&#10;    src.RETIRED,&#13;&#10;&#9;src.RESOURCE_ALERT_CONTENT,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.FACILITY_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.FACILITIES src&#13;&#10;    LEFT JOIN hub.CENTERS ce1 ON (ce1.ORG_ID = src.ORG_ID AND ce1.CENTER_ID = src.CENTER_ID)&#13;&#10;    LEFT JOIN hub.FACILITY_TYPES ft1 ON (ft1.ORG_ID = src.ORG_ID AND ft1.FACILITY_TYPE_ID = src.FACILITY_TYPE_ID)&#13;&#10;    LEFT JOIN hub.PREP_CODES pc1 ON (pc1.ORG_ID = src.ORG_ID AND pc1.PREP_CODE_ID = src.PREP_CODE_ID)&#13;&#10;    LEFT JOIN hub.DISCLAIMERS di1 ON (di1.ORG_ID = src.ORG_ID AND di1.DISCLAIMER_ID = src.DISCLAIMER_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf1 ON (uf1.ORG_ID = src.ORG_ID AND uf1.UPLOADED_FILE_ID = src.CAPTIVATE_APP_IMAGE_ID)&#13;&#10;    LEFT JOIN hub.GEOGRAPHIC_AREAS ga1 ON (ga1.ORG_ID = src.ORG_ID AND ga1.GEOGRAPHIC_AREA_ID = src.GEOGRAPHIC_AREA_ID)&#13;&#10;WHERE&#13;&#10;    src.ITEM_TYPE_ID = 0;&#13;&#10;(CONVERT([date],[MODIFIED_DATE]))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="FACILITY_ID" nullable="true" remarks="Facility ID." size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_DATES"/>
            <child catalog="ActiveHub" column="INSTRUCTOR_FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_PRIVATE_LESSONS"/>
            <child catalog="ActiveHub" column="LOCATION_FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_PRIVATE_LESSONS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_RESERVATION_PATTERNS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ENTRY_POINTS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_AVAILABILITY"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_HOURS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_LINKS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_OPEN_TIMES"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_OVERLAPS"/>
            <child catalog="ActiveHub" column="PARENT_FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_OVERLAPS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_PREREQUISITES"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_RENTAL_BLOCKS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_USAGE_REVENUE"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_USERS"/>
            <child catalog="ActiveHub" column="INSTRUCTOR_FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="INSTRUCTORS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="INTEREST_LISTS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_FACILITIES"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULE_FACILITIES"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULE_PAIRINGS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULE_TIMESLOTS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_ENTRY_POINTS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RESERVATION_DATE_RANGES"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SESSIONS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGE_SEQUENCE_LINKS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STANDARD_CHARGES"/>
            <child catalog="ActiveHub" column="HOME_FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAMS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_NAME" nullable="true" remarks="Facility name." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FACILITY_NUMBER" nullable="true" remarks="Facility number." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ITEM_TYPE_ID" nullable="true" remarks="The type of resource that this facility is (0=facilities, 1=equipment, 2=human resource)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="RESOURCE_TYPE" nullable="true" remarks="Facility resource type (Facility, Equipment or Instructor)." size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="FACILITY_TYPE_ID" nullable="true" remarks="The ID of the facility type of this facility." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="FACILITY_TYPE" nullable="true" remarks="Facility type." size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CENTER_ID" nullable="true" remarks="The ID of the center to which this facility belongs." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CENTERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CENTER_NAME" nullable="true" remarks="Name of the center to which this facility belongs." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="OVERRIDE_CENTER_ADDRESS" nullable="true" remarks="Whether this facility has an address that is distinct from its center (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ADDRESS1" nullable="true" remarks="The first address line of the facility" size="35" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ADDRESS2" nullable="true" remarks="The second address line of the facility" size="35" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CITY" nullable="true" remarks="The city of the facility address" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="STATE" nullable="true" remarks="The state of the facility address" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ZIPCODE" nullable="true" remarks="The postal code of the facility address" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="COUNTRY" nullable="true" remarks="The country code of the facility address" size="2" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="GEOGRAPHIC_AREA_ID" nullable="true" remarks="The ID of the geographic area of this facility" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GEOGRAPHIC_AREA_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GEOGRAPHIC_AREAS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="GEOGRAPHIC_AREA" nullable="true" remarks="Geographic Area description" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="18" name="LATITUDE" nullable="true" remarks="The latitude for the facility location" size="11" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="19" name="LONGITUDE" nullable="true" remarks="The longitude for the facility location" size="11" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="FACILITY_DESCRIPTION" nullable="true" remarks="The facility description" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="FACILITY_NOTES" nullable="true" remarks="Notes related to the facility" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="OPEN_24_HOURS" nullable="true" remarks="Whether the facility is open 24 hours per day (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="DEFAULT_OPEN_TIME" nullable="true" remarks="The default opening time for the facility" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="DEFAULT_CLOSE_TIME" nullable="true" remarks="The default closing time for the facility" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="MONDAY_CLOSED" nullable="true" remarks="Whether the facility is closed on Mondays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="TUESDAY_CLOSED" nullable="true" remarks="Whether the facility is closed on Tuesdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="WEDNESDAY_CLOSED" nullable="true" remarks="Whether the facility is closed on Wednesdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="THURSDAY_CLOSED" nullable="true" remarks="Whether the facility is closed on Thursdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="FRIDAY_CLOSED" nullable="true" remarks="Whether the facility is closed on Fridays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="SATURDAY_CLOSED" nullable="true" remarks="Whether the facility is closed on Saturdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="SUNDAY_CLOSED" nullable="true" remarks="Whether the facility is closed on Sundays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="MAXIMUM_CAPACITY" nullable="true" remarks="The maximum attendance allowed for rentals in this facility." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="MINIMUM_CAPACITY" nullable="true" remarks="The minimum attendance required before this facility can be rented." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="ALLOW_DOUBLE_BOOKING" nullable="true" remarks="Whether double booking is allowed for this facility (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="DOUBLE_BOOKING_RESTRICTIONS" nullable="true" remarks="Whether double booking restrictions should be enforced (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="RESERVATION_PERIOD_UNIT" nullable="true" remarks="The reservation period unit to be used when booking this facility of this type (Use Default / Minute / Hour / Day / Week / Month / Defined Date Range / Rental Block / Overnight)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="MINIMUM_RESERVATION_TIME_UNITS" nullable="true" remarks="The minimum number of reservation time units that may be booked" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="MAXIMUM_RESERVATION_TIME_UNITS" nullable="true" remarks="The maximum number of reservation time units that may be booked" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="WEEKLY_RESERVATION_STARTS_ON" nullable="true" remarks="Day of the week that weekly reservations start on" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="EXCLUDE_FROM_LEAGUE_SCHEDULING" nullable="true" remarks="Whether this facility should be excluded from league scheduling (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="ALLOW_CONFLICTS" nullable="true" remarks="Whether this facility should allow conflicting bookings (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="DISPLAY_FULL_DAY_SWITCH_ONLINE" nullable="true" remarks="Whether the 'Full day booking' switch should be displayed online for this facility (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="ALLOW_OVERLAPPED_RENTAL_BLOCKS" nullable="true" remarks="Whether this facility should allow overlapping rental blocks (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="MAX_ATTENDANCE_AT_ONE_TIME" nullable="true" remarks="The total quantity of this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="MAX_RESERVATIONS_PER_CUSTOMER_PER_DAY" nullable="true" remarks="Maximum reservations per customer per day at this facility" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="DISCLAIMER_ID" nullable="true" remarks="The ID of the disclaimer required for this facility" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="DISCLAIMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="DISCLAIMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="DISCLAIMER_NAME" nullable="true" remarks="The name of the disclaimer required for this facility" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="PREP_CODE_ID" nullable="true" remarks="The prep code ID for required setup and teardown time" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PREP_CODE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PREP_CODES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="PREP_CODE_NAME" nullable="true" remarks="The prep code name for required setup and teardown time" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="INCLUDE_SETUP" nullable="true" remarks="Whether the setup time in the related preparation code should be applied to reservations in this facility (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="INCLUDE_CLEANUP" nullable="true" remarks="Whether the cleanup time in the related preparation code should be applied to reservations in this facility (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="SEND_SUPERVISOR_EMAIL_RESERVATION_NOTIFICATION" nullable="true" remarks="Whether the supervisor should be sent a notification email for reservations created at this facility (Yes, No, Use Default)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="RESERVATION_NOTIFICATION_EMAIL_ADDRESS" nullable="true" remarks="Additional email addresses that should be included in the reservation notification email" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="DEFAULT_CHECKIN_TIME" nullable="true" remarks="The default check-in time for the facility" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="DEFAULT_CHECKOUT_TIME" nullable="true" remarks="The default checkout time for facilities for the facility" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="FIXED_DEFAULT_CHECKIN_TIME" nullable="true" remarks="Whether there is a fixed check-in time for online reservations (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="FIXED_DEFAULT_CHECKOUT_TIME" nullable="true" remarks="Whether there is a fixed checkout time for online reservations (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="LIGHTING_ID" nullable="true" remarks="The lighting system integration ID for this facility" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="CENTER_LIGHTING_ID_OVERRIDE" nullable="true" remarks="The lighting system integration ID to be used for the center, rather than the one defined at the center" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="MAX_DRESSING_ROOM_NUMBER" nullable="true" remarks="The maximum dressing room number for this facility" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="61" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether the facility should be hidden from display online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="PROHIBIT_INTERNET_PERMITS" nullable="true" remarks="Whether the facility should prohibit permit bookings (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="INTERNET_RESERVATION_TYPE" nullable="true" remarks="The type of reservation process that should be used online for this facility (Regular Reservation, Continuous Reservation, Use Site Reservation Type)" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="INTERNET_RESERVATION_PROCESS" nullable="true" remarks="The reservation process that should be used online for this facility (Reservation Request, Permit, --No Override--)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="65" name="OVERRIDE_SYSTEM_ONLINE_SETTINGS" nullable="true" remarks="Whether system level settings should be overridden for online reservations (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="66" name="ONLINE_MIN_RESERVATION_ADVANCE_UNITS" nullable="true" remarks="The number of time units used for determining the advanced online reservation minimum period for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="67" name="ONLINE_MIN_RESERVATION_ADVANCE_UNIT_TYPE" nullable="true" remarks="The type of time unit used for determining the advanced online reservation minimum period for this equipment (Days, Hours)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="68" name="ONLINE_NON_RESIDENT_MIN_RESERVATION_ADVANCE_UNITS" nullable="true" remarks="The number of time units used for determining the advanced online reservation minimum period for non-residents for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="69" name="ONLINE_NON_RESIDENT_MIN_RESERVATION_ADVANCE_UNIT_TYPE" nullable="true" remarks="The type of time unit used for determining the advanced online reservation minimum period for non-residents for this equipment (Days, Hours)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="70" name="ONLINE_MAX_RESERVATION_ADVANCE_UNITS" nullable="true" remarks="The number of time units used for determining the advanced online reservation maximum period for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="71" name="ONLINE_MAX_RESERVATION_ADVANCE_UNIT_TYPE" nullable="true" remarks="The type of time unit used for determining the advanced online reservation maximum period for this equipment (Days, Hours)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="72" name="ONLINE_NON_RESIDENT_MAX_RESERVATION_ADVANCE_UNITS" nullable="true" remarks="The number of time units used for determining the advanced online reservation maximum period for non-residents for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="73" name="ONLINE_NON_RESIDENT_MAX_RESERVATION_ADVANCE_UNIT_TYPE" nullable="true" remarks="The type of time unit used for determining the advanced online reservation maximum period for non-residents for this equipment (Days, Hours)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="74" name="ONLINE_MAX_RESERVATION_EXTEND_UNITS" nullable="true" remarks="The number of time units used for determining the advanced online extended reservation period for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="75" name="ONLINE_MAX_RESERVATION_EXTEND_UNIT_TYPE" nullable="true" remarks="The type of time unit used for determining the advanced online extended reservation period for this equipment (Days, Hours)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="76" name="ONLINE_NON_RESIDENT_MAX_RESERVATION_EXTEND_UNITS" nullable="true" remarks="The number of time units used for determining the advanced online extended reservation period for non-residents for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="77" name="ONLINE_NON_RESIDENT_MAX_RESERVATION_EXTEND_UNIT_TYPE" nullable="true" remarks="The type of time unit used for determining the advanced online extended reservation period for non-residents for this equipment (Days, Hours)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="78" name="OVERRIDE_SYSTEM_STAFF_SETTINGS" nullable="true" remarks="Whether system level settings should be overridden for staff reservations (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="79" name="STAFF_MIN_RESERVATION_ADVANCE_UNITS" nullable="true" remarks="The number of time units used for determining the advanced staff reservation minimum period for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="80" name="STAFF_MIN_RESERVATION_ADVANCE_UNIT_TYPE" nullable="true" remarks="The type of time unit used for determining the advanced staff reservation minimum period for this equipment (Days, Hours)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="81" name="STAFF_MAX_RESERVATION_ADVANCE_UNITS" nullable="true" remarks="The number of time units used for determining the advanced staff reservation maximum period for this equipment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="82" name="STAFF_MAX_RESERVATION_ADVANCE_UNIT_TYPE" nullable="true" remarks="The type of time unit used for determining the advanced staff reservation maximum period for this equipment (Days, Hours)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="83" name="ONLINE_ADVANCE_RESERVATION_DAILY_OPEN_TIME" nullable="true" remarks="The start time that online reservations open on the first advanced booking day" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="84" name="SHOW_ON_CAPTIVATE_APP" nullable="true" remarks="Whether this facility should be shown on the ACTIVE Net Captivate App (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="85" name="CAPTIVATE_APP_IMAGE_ID" nullable="true" remarks="The ID of the image that should be shown on the ACTIVE Net Captivate App for this facility" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="86" name="CAPTIVATE_APP_IMAGE" nullable="true" remarks="The name of the image that should be shown on the ACTIVE Net Captivate App for this facility" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="87" name="HAS_RESERVATION_DATE_RANGES" nullable="true" remarks="Whether this facility is reserved using reservation date range blocks (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="88" name="MODIFIED_DATE" nullable="true" remarks="The date and time of the last modification to the facility information" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="89" name="MODIFIED_DATE_ONLY" nullable="true" remarks="The date of the last modification to the facility information (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="90" name="RETIRED" nullable="true" remarks="Whether the facility record has been retired (Yes or No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="91" name="RESOURCE_ALERT_CONTENT" nullable="true" remarks="The Pop-up alert content for facility and equipment" size="4000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="92" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="93" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="94" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="95" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="96" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="FACILITY_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="FACILITY_AVAILABILITY" numRows="0" remarks="Contains facility availability information by date, calculated for the past 36 months and into the future for the next 12 months." schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FACILITY_AVAILABILITY&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.FACILITY_DATE,&#13;&#10;    DATEPART(WEEKDAY, src.FACILITY_DATE) AS DAY_OF_WEEK,&#13;&#10;    DATENAME(WEEKDAY, src.FACILITY_DATE) AS DAY_OF_WEEK_NAME,&#13;&#10;    src.IS_CLOSED,&#13;&#10;    src.IS_OPEN_24_HOURS,&#13;&#10;    src.MIN_OPEN_TIME,&#13;&#10;    src.MAX_CLOSE_TIME,&#13;&#10;    src.OPEN_MINUTES,&#13;&#10;    src.SKIP_MINUTES,&#13;&#10;    (src.OPEN_MINUTES - src.SKIP_MINUTES) AS AVAILABLE_MINUTES,&#13;&#10;    CAST((CAST(src.OPEN_MINUTES AS NUMERIC(10, 2)) / 60) AS NUMERIC(10, 2)) AS  OPEN_HOURS,&#13;&#10;    CAST((CAST(src.SKIP_MINUTES AS NUMERIC(10, 2)) / 60) AS NUMERIC(10, 2)) AS SKIP_HOURS,&#13;&#10;    CAST((CAST((src.OPEN_MINUTES - src.SKIP_MINUTES) AS NUMERIC(10, 2)) / 60) AS NUMERIC(10, 2)) AS AVAILABLE_HOURS,&#13;&#10;    src.OPEN_TIMES_FROM,&#13;&#10;    src.FACILITY_HOUR_ID,&#13;&#10;    fh1.FACILITY_HOUR_DESCRIPTION AS FACILITY_HOUR,&#13;&#10;    src.SKIP_DATE_ID,&#13;&#10;    sd1.SKIP_DATE_NAME AS SKIP_DATE,&#13;&#10;    src.RESERVATION_DATE_RANGE_ID,&#13;&#10;    rdr.RESERVATION_DATE_RANGE_NAME AS RESERVATION_DATE_RANGE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM&#13;&#10;    hub.FACILITY_AVAILABILITY src&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    LEFT JOIN hub.FACILITY_HOURS fh1 ON (fh1.FACILITY_HOUR_ID = src.FACILITY_HOUR_ID)&#13;&#10;    LEFT JOIN hub.SKIP_DATES sd1 ON (sd1.SKIP_DATE_ID = src.SKIP_DATE_ID)&#13;&#10;    LEFT JOIN hub.RESERVATION_DATE_RANGES rdr ON (rdr.RESERVATION_DATE_RANGE_ID = src.RESERVATION_DATE_RANGE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_ID" nullable="true" remarks="The ID of the facility" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FACILITY_NAME" nullable="true" remarks="The name of the facility" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FACILITY_DATE" nullable="true" remarks="The date that the availability is calculated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="DAY_OF_WEEK" nullable="true" remarks="The day of week number (1=Sunday to 7=Saturday)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="DAY_OF_WEEK_NAME" nullable="true" remarks="The day of week name (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday)" size="60" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="IS_CLOSED" nullable="true" remarks="Whether the facility is configured as closed on this day of the week (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="IS_OPEN_24_HOURS" nullable="true" remarks="Whether the facility is configured as open 24 hours per day (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="MIN_OPEN_TIME" nullable="true" remarks="The minimum open time for the facility on this date" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="MAX_CLOSE_TIME" nullable="true" remarks="The maximum close time for the facility on this date" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="OPEN_MINUTES" nullable="true" remarks="The number of minutes the facility is open on this date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="SKIP_MINUTES" nullable="true" remarks="The number of minutes the facility is closed on this date due to a skip date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="AVAILABLE_MINUTES" nullable="true" remarks="The number of minutes the facility is available for reservation on this date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="13" name="OPEN_HOURS" nullable="true" remarks="The number of hours the facility is open on this date" size="12" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="14" name="SKIP_HOURS" nullable="true" remarks="The number of hours the facility is closed on this date due to a skip date" size="12" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="15" name="AVAILABLE_HOURS" nullable="true" remarks="The number of hours the facility is available for reservation on this date" size="12" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="OPEN_TIMES_FROM" nullable="true" remarks="The level of configuration that the facility availability is obtained from for this date (Center / Center Default Times / Facility / Facility Open Times / Facility Default Times / Facility Hours / Facility Hours Open Times)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="FACILITY_HOUR_ID" nullable="true" remarks="The ID of the facility hour record that the facility availability is obtained from for this date" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_HOUR_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_HOURS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="FACILITY_HOUR" nullable="true" remarks="The name of the facility hour record that the facility availability is obtained from for this date" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="SKIP_DATE_ID" nullable="true" remarks="The ID of the skip date record that affects the availability for this date" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SKIP_DATE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SKIP_DATES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="SKIP_DATE" nullable="true" remarks="The name of the skip date record that affects the availability for this date" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="RESERVATION_DATE_RANGE_ID" nullable="true" remarks="The ID of the reservation date range record that this facility date falls within" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RESERVATION_DATE_RANGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RESERVATION_DATE_RANGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="RESERVATION_DATE_RANGE" nullable="true" remarks="The name of the reservation date range record that this facility date falls within" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="23" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="FACILITY_ID" sequenceNumberInPK="1"/>
         <primaryKey column="FACILITY_DATE" sequenceNumberInPK="2"/>
      </table>
      <table catalog="ActiveHub" name="FACILITY_EVENT_TYPE_CAPACITIES" numRows="0" remarks="Contains information on event type capacity per facility" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FACILITY_EVENT_TYPE_CAPACITIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.EVENT_TYPE_ID,&#13;&#10;    et1.EVENT_TYPE_NAME,&#13;&#10;    src.MINIMUM_CAPACITY,&#13;&#10;    src.MAXIMUM_CAPACITY,&#13;&#10;    src.FACILITYEVENTCAPACITY_ID,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_LINKS src&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    LEFT JOIN hub.EVENT_TYPES et1 ON (et1.EVENT_TYPE_ID = src.EVENT_TYPE_ID)&#13;&#10;    WHERE src.FACILITYEVENTCAPACITY_ID IS NOT NULL;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="FACILITY_ID" nullable="true" remarks="The facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_NAME" nullable="true" remarks="The facility name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="EVENT_TYPE_ID" nullable="true" remarks="The event type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="EVENT_TYPE_NAME" nullable="true" remarks="The event type name" size="102" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="MINIMUM_CAPACITY" nullable="true" remarks="The minimum capacity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="MAXIMUM_CAPACITY" nullable="true" remarks="The maximum capacity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="FACILITYEVENTCAPACITY_ID" nullable="true" remarks="The facility event type capacity ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="FACILITY_HOURS" numRows="0" remarks="Contains information on facility hours by date range" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FACILITY_HOURS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_HOUR_ID,&#13;&#10;    src.FACILITY_HOUR_DESCRIPTION,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.START_MONTH,&#13;&#10;    src.START_DAY,&#13;&#10;    src.START_YEAR,&#13;&#10;    src.END_MONTH,&#13;&#10;    src.END_DAY,&#13;&#10;    src.END_YEAR,&#13;&#10;    src.OPEN_24_HOURS,&#13;&#10;    src.MONDAY_CLOSED,&#13;&#10;    src.TUESDAY_CLOSED,&#13;&#10;    src.WEDNESDAY_CLOSED,&#13;&#10;    src.THURSDAY_CLOSED,&#13;&#10;    src.FRIDAY_CLOSED,&#13;&#10;    src.SATURDAY_CLOSED,&#13;&#10;    src.SUNDAY_CLOSED,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_HOURS src&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;WHERE&#13;&#10;    fa1.ITEM_TYPE_ID = 0;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="FACILITY_HOUR_ID" nullable="true" remarks="The facility hours ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="FACILITY_HOUR_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_AVAILABILITY"/>
            <child catalog="ActiveHub" column="FACILITY_HOUR_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_OPEN_TIMES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_HOUR_DESCRIPTION" nullable="true" remarks="The facility hours description" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FACILITY_ID" nullable="true" remarks="The ID of the facility" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FACILITY_NAME" nullable="true" remarks="The name of the facility" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="START_MONTH" nullable="true" remarks="The starting month number for the period that these facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="START_DAY" nullable="true" remarks="The starting day number for the period that these facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="START_YEAR" nullable="true" remarks="The starting year for the period that these facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="END_MONTH" nullable="true" remarks="The ending month number for the period that these facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="END_DAY" nullable="true" remarks="The ending day number for the period that these facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="END_YEAR" nullable="true" remarks="The ending year for the period that these facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="OPEN_24_HOURS" nullable="true" remarks="Whether the facility is open 24 hours per day (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="MONDAY_CLOSED" nullable="true" remarks="Whether the facility is closed on Mondays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="TUESDAY_CLOSED" nullable="true" remarks="Whether the facility is closed on Tuesdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="WEDNESDAY_CLOSED" nullable="true" remarks="Whether the facility is closed on Wednesdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="THURSDAY_CLOSED" nullable="true" remarks="Whether the facility is closed on Thursdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="FRIDAY_CLOSED" nullable="true" remarks="Whether the facility is closed on Fridays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SATURDAY_CLOSED" nullable="true" remarks="Whether the facility is closed on Saturdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="SUNDAY_CLOSED" nullable="true" remarks="Whether the facility is closed on Sundays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="19" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="FACILITY_HOUR_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="FACILITY_INTEREST_LISTS" numRows="0" remarks="Contains the interest lists that are assigned to each facility" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FACILITY_INTEREST_LISTS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    il.FACILITY_ID,&#13;&#10;    fa.FACILITY_NAME,&#13;&#10;    il.INTEREST_LIST_ID,&#13;&#10;    il.INTEREST_LIST_NAME,&#13;&#10;    il.CATEGORY_ID,&#13;&#10;    acat.ACTIVITY_CATEGORY_NAME AS CATEGORY_NAME,&#13;&#10;    il.SUB_CATEGORY_ID,&#13;&#10;    ascat.ACTIVITY_SUB_CATEGORY_NAME AS SUB_CATEGORY_NAME&#13;&#10;FROM&#13;&#10;    hub.INTEREST_LISTS il&#13;&#10;    JOIN hub.FACILITIES fa ON fa.FACILITY_ID = il.FACILITY_ID&#13;&#10;    LEFT JOIN hub.ACTIVITY_CATEGORIES acat ON (acat.ACTIVITY_CATEGORY_ID = il.CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_SUB_CATEGORIES ascat ON (ascat.ACTIVITY_SUB_CATEGORY_ID = il.SUB_CATEGORY_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="FACILITY_ID" nullable="true" remarks="The ID of the facility that is assigned to the interest list" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_NAME" nullable="true" remarks="The name of the facility that is assigned to the interest list" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="INTEREST_LIST_ID" nullable="true" remarks="The interest list ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="INTEREST_LIST_NAME" nullable="true" remarks="Name of the interest list" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CATEGORY_ID" nullable="true" remarks="The category ID of the interest list" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CATEGORY_NAME" nullable="true" remarks="The category name of the interest list." size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SUB_CATEGORY_ID" nullable="true" remarks="The sub-category ID of the interest list" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SUB_CATEGORY_NAME" nullable="true" remarks="The sub-category name of the interest list." size="40" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="FACILITY_LINKS" numRows="0" remarks="Contains information on related records that are linked to facility records (for internal use)" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FACILITY_LINKS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.EVENTTYPE_FACILITY_ID,&#13;&#10;    src.EVENT_TYPE_ID,&#13;&#10;    et1.EVENT_TYPE_NAME,&#13;&#10;    src.FACILITYEVENTCAPACITY_ID,&#13;&#10;    src.MINIMUM_CAPACITY,&#13;&#10;    src.MAXIMUM_CAPACITY,&#13;&#10;    src.FACILITYGROUPFACILITY_ID,&#13;&#10;    src.RESERVATION_GROUP_ID,&#13;&#10;    rg1.RESERVATION_GROUP_NAME,&#13;&#10;    src.DISPLAY_ORDER,&#13;&#10;    src.SKIPDATE_FACILITY_ID,&#13;&#10;    src.SKIP_DATE_ID,&#13;&#10;    sd1.SKIP_DATE_NAME,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_LINKS src&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    LEFT JOIN hub.EVENT_TYPES et1 ON (et1.EVENT_TYPE_ID = src.EVENT_TYPE_ID)&#13;&#10;    LEFT JOIN hub.RESERVATION_GROUPS rg1 ON (rg1.RESERVATION_GROUP_ID = src.RESERVATION_GROUP_ID)&#13;&#10;    LEFT JOIN hub.SKIP_DATES sd1 ON (sd1.SKIP_DATE_ID = src.SKIP_DATE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="FACILITY_ID" nullable="true" remarks="The facility ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_NAME" nullable="true" remarks="The facility name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="EVENTTYPE_FACILITY_ID" nullable="true" remarks="The event type facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="EVENT_TYPE_ID" nullable="true" remarks="The event type ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="EVENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="EVENT_TYPE_NAME" nullable="true" remarks="The event type name" size="102" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="FACILITYEVENTCAPACITY_ID" nullable="true" remarks="The facility event type capacity ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="MINIMUM_CAPACITY" nullable="true" remarks="The minimum capacity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="MAXIMUM_CAPACITY" nullable="true" remarks="The maximum capacity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="FACILITYGROUPFACILITY_ID" nullable="true" remarks="The reservation group facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="RESERVATION_GROUP_ID" nullable="true" remarks="The reservation group ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RESERVATION_GROUP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RESERVATION_GROUPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="RESERVATION_GROUP_NAME" nullable="true" remarks="The reservation group name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="DISPLAY_ORDER" nullable="true" remarks="The order that this record should be displayed" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="SKIPDATE_FACILITY_ID" nullable="true" remarks="The skip date facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="SKIP_DATE_ID" nullable="true" remarks="The ID of the skip date" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SKIP_DATE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SKIP_DATES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="SKIP_DATE_NAME" nullable="true" remarks="The name of the skip date" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="EVENTTYPE_FACILITY_ID" sequenceNumberInPK="1"/>
         <primaryKey column="FACILITYEVENTCAPACITY_ID" sequenceNumberInPK="2"/>
         <primaryKey column="FACILITYGROUPFACILITY_ID" sequenceNumberInPK="3"/>
         <primaryKey column="SKIPDATE_FACILITY_ID" sequenceNumberInPK="4"/>
      </table>
      <table catalog="ActiveHub" name="FACILITY_OPEN_TIMES" numRows="0" remarks="Contains information on facility open and close times per day of the week" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FACILITY_OPEN_TIMES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_OPEN_TIME_ID,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.DAY_OF_WEEK,&#13;&#10;    src.DAY_OF_WEEK_NAME,&#13;&#10;    src.START_TIME,&#13;&#10;    src.END_TIME,&#13;&#10;    src.FACILITY_HOUR_ID,&#13;&#10;    fh1.FACILITY_HOUR_DESCRIPTION,&#13;&#10;    fh1.START_MONTH,&#13;&#10;    fh1.START_DAY,&#13;&#10;    fh1.START_YEAR,&#13;&#10;    fh1.END_MONTH,&#13;&#10;    fh1.END_DAY,&#13;&#10;    fh1.END_YEAR,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_OPEN_TIMES src&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    LEFT JOIN hub.FACILITY_HOURS fh1 ON (fh1.FACILITY_HOUR_ID = src.FACILITY_HOUR_ID)&#13;&#10;WHERE&#13;&#10;    fa1.ITEM_TYPE_ID = 0;&#13;&#10;(datename(weekday,[DAY_OF_WEEK]-(2)))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="FACILITY_OPEN_TIME_ID" nullable="true" remarks="The facility open time ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_ID" nullable="true" remarks="The facility ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FACILITY_NAME" nullable="true" remarks="The facility name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="DAY_OF_WEEK" nullable="true" remarks="The day of the week number (1=Sunday to 7=Saturday)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="DAY_OF_WEEK_NAME" nullable="true" remarks="The day of the week (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday)" size="60" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="START_TIME" nullable="true" remarks="The facility open time for this period of this day of the week (there may be multiple open and close times on a given day)" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="END_TIME" nullable="true" remarks="The facility close time for this period of this day of the week (there may be multiple open and close times on a given day)" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="FACILITY_HOUR_ID" nullable="true" remarks="The facility hours ID if for a specific date range" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_HOUR_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_HOURS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="FACILITY_HOUR_DESCRIPTION" nullable="true" remarks="The facility hours description if for a specific date range" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="START_MONTH" nullable="true" remarks="The starting month number for the period that these facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="START_DAY" nullable="true" remarks="The starting day number for the period that these facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="START_YEAR" nullable="true" remarks="The starting year for the period that these facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="END_MONTH" nullable="true" remarks="The ending month number for the period that these facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="END_DAY" nullable="true" remarks="The ending day number for the period that these facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="END_YEAR" nullable="true" remarks="The ending year for the period that these facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="FACILITY_OPEN_TIME_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="FACILITY_OVERLAPS" numRows="0" remarks="Contains information on configured parent and child relationships between facilities" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FACILITY_OVERLAPS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_OVERLAP_ID,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.CHILD_FACILITY_ID,&#13;&#10;    fa2.FACILITY_NAME AS CHILD_FACILITY_NAME,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_OVERLAPS src&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    JOIN hub.FACILITIES fa2 ON (fa2.FACILITY_ID = src.CHILD_FACILITY_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="FACILITY_OVERLAP_ID" nullable="true" remarks="The facility overlap ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_ID" nullable="true" remarks="The ID of the parent facility" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FACILITY_NAME" nullable="true" remarks="The name of the parent facility" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CHILD_FACILITY_ID" nullable="true" remarks="The ID of the child facility" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CHILD_FACILITY_NAME" nullable="true" remarks="The name of the child facility" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="PARENT_FACILITY_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <primaryKey column="FACILITY_OVERLAP_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="FACILITY_PREREQUISITE_ALTERNATE_KEY_STATUSES" numRows="0" remarks="Contains information on configured alternate key statuses for alternate key type facility prerequisites" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FACILITY_PREREQUISITE_ALTERNATE_KEY_STATUSES &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.FACILITY_PREREQUISITE_ALTERNATE_KEY_STATUS_ID,&#13;&#10;    src.FACILITY_PREREQUISITE_ID,&#13;&#10;    fp1.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    fp1.ALTERNATE_KEY_TYPE_ID,&#13;&#10;    akt.ALTERNATE_KEY_TYPE,&#13;&#10;    src.ALTERNATE_KEY_STATUS_ID,&#13;&#10;    aks.ALTERNATE_KEY_STATUS,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_PREREQUISITE_ALTERNATE_KEY_STATUSES src&#13;&#10;    JOIN hub.FACILITY_PREREQUISITES fp1 ON (fp1.FACILITY_PREREQUISITE_ID = src.FACILITY_PREREQUISITE_ID)&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = fp1.FACILITY_ID)&#13;&#10;    JOIN hub.ALTERNATE_KEY_TYPES akt ON (akt.ALTERNATE_KEY_TYPE_ID = fp1.ALTERNATE_KEY_TYPE_ID)&#13;&#10;    JOIN hub.ALTERNATE_KEY_STATUSES aks ON (aks.ALTERNATE_KEY_STATUS_ID = src.ALTERNATE_KEY_STATUS_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="FACILITY_PREREQUISITE_ALTERNATE_KEY_STATUS_ID" nullable="true" remarks="The facility prerequisite alternate key status ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_PREREQUISITE_ID" nullable="true" remarks="The facility prerequisite ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_PREREQUISITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_PREREQUISITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FACILITY_ID" nullable="true" remarks="The facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FACILITY_NAME" nullable="true" remarks="The facility name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ALTERNATE_KEY_TYPE_ID" nullable="true" remarks="The ID of a prerequisite alternate key type for reserving the facility" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ALTERNATE_KEY_TYPE" nullable="true" remarks="The name of a prerequisite alternate key type for reserving the facility" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ALTERNATE_KEY_STATUS_ID" nullable="true" remarks="The ID of a prerequisite membership package for reserving the facility" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ALTERNATE_KEY_STATUS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ALTERNATE_KEY_STATUSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ALTERNATE_KEY_STATUS" nullable="true" remarks="The name of a prerequisite membership package for reserving the facility" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="FACILITY_PREREQUISITE_ALTERNATE_KEY_STATUS_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="FACILITY_PREREQUISITES" numRows="0" remarks="Contains information on configured prerequisites for facility reservations" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FACILITY_PREREQUISITES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_PREREQUISITE_ID,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.GROUP_NUMBER,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    src.IMMEDIATE_SALE_PACKAGE,&#13;&#10;    src.ALTERNATE_KEY_TYPE_ID,&#13;&#10;    akt.ALTERNATE_KEY_TYPE,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_PREREQUISITES src&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    LEFT JOIN hub.PACKAGES pa1 ON (pa1.PACKAGE_ID = src.PACKAGE_ID)&#13;&#10;    LEFT JOIN hub.ALTERNATE_KEY_TYPES akt ON (akt.ALTERNATE_KEY_TYPE_ID = src.ALTERNATE_KEY_TYPE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="FACILITY_PREREQUISITE_ID" nullable="true" remarks="The facility prerequisite ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="FACILITY_PREREQUISITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_PREREQUISITE_ALTERNATE_KEY_STATUSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_ID" nullable="true" remarks="The facility ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FACILITY_NAME" nullable="true" remarks="The facility name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="GROUP_NUMBER" nullable="true" remarks="The prerequisite group number" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PACKAGE_ID" nullable="true" remarks="The ID of a prerequisite membership package for reserving the facility" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PACKAGE_NAME" nullable="true" remarks="The name of a prerequisite membership package for reserving the facility" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="IMMEDIATE_SALE_PACKAGE" nullable="true" remarks="Whether the prerequisite membership package may be purchased at the time of reservation" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ALTERNATE_KEY_TYPE_ID" nullable="true" remarks="The ID of a prerequisite alternate key type for reserving the facility" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ALTERNATE_KEY_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ALTERNATE_KEY_TYPE" nullable="true" remarks="The name of a prerequisite alternate key type for reserving the facility" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="FACILITY_PREREQUISITE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="FACILITY_RENTAL_BLOCKS" numRows="0" remarks="Contains information on facility rental blocks" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FACILITY_RENTAL_BLOCKS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_RENTAL_BLOCK_ID,&#13;&#10;    src.FACILITY_RENTAL_BLOCK_NAME,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.START_TIME,&#13;&#10;    src.END_TIME,&#13;&#10;    src.CROSSES_DAYS,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_RENTAL_BLOCKS src&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;WHERE&#13;&#10;    fa1.ITEM_TYPE_ID = 0;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="ACTIVITY_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="FACILITY_RENTAL_BLOCK_ID" nullable="true" remarks="The facility rental block ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_RENTAL_BLOCK_NAME" nullable="true" remarks="The facility rental block name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FACILITY_ID" nullable="true" remarks="The ID of the facility that the rental block belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FACILITY_NAME" nullable="true" remarks="The name of the facility that the rental block belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="START_TIME" nullable="true" remarks="The start time of the rental block" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="END_TIME" nullable="true" remarks="The end time of the rental block" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CROSSES_DAYS" nullable="true" remarks="Whether the rental block time cross into the next day (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="FACILITY_RENTAL_BLOCK_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="FACILITY_RESERVATION" numRows="0" remarks="Facility booking data along with the permit number and customer's detail" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.FACILITY_RESERVATION &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    ft1.FACILITY_TYPE_NAME AS FACILITY_TYPE,&#13;&#10;    ce1.CENTER_ID,&#13;&#10;    ce1.CENTER_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    pe1.PERMIT_NUMBER,&#13;&#10;    pe1.PERMIT_DATE,&#13;&#10;    et1.EVENT_TYPE_NAME AS EVENT_TYPE,&#13;&#10;    src.EVENT_START_DATE,&#13;&#10;    src.EVENT_START_TIME,&#13;&#10;    src.EVENT_END_DATE,&#13;&#10;    src.EVENT_END_TIME,&#13;&#10;    src.DAY_OF_WEEK,&#13;&#10;    src.ATTENDANCE,&#13;&#10;    pe1.PERMIT_STATUS,&#13;&#10;    src.HOURS_RESERVED,&#13;&#10;    src.MINUTES_RESERVED,&#13;&#10;    st1.SCHEDULE_TYPE_NAME AS SCHEDULE_TYPE,&#13;&#10;    src.EXPIRATION_DATE,&#13;&#10;    si2.SITE_NAME AS TRANSACTION_SITE,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    cu1.CUSTOMER_FIRST_NAME,&#13;&#10;    cu1.CUSTOMER_LAST_NAME,&#13;&#10;    cu1.RESIDENT_STATUS AS RESIDENCY,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.EXPIRATION_DATE_ONLY,&#13;&#10;    CAST(pe1.PERMIT_DATE AS DATE) AS PERMIT_DATE_ONLY,&#13;&#10;    src.FACILITY_SCHEDULE_ID,&#13;&#10;    src.PERMIT_ID,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    src.SETUP_MINUTES,&#13;&#10;    src.CLEANUP_MINUTES,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.EVENT_DESCRIPTION,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    src.SESSION_ID,&#13;&#10;    src.LEAGUE_SCHEDULE_ID,&#13;&#10;    ft1.FACILITY_TYPE_ID,&#13;&#10;    src.EVENT_TYPE_ID,&#13;&#10;    src.SCHEDULE_TYPE_ID,&#13;&#10;    src.TRANSACTION_SITE_ID,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    src.RESERVATION_START_DATE,&#13;&#10;    src.RESERVATION_START_TIME,&#13;&#10;    src.RESERVATION_END_DATE,&#13;&#10;    src.RESERVATION_END_TIME,&#13;&#10;    src.FACILITY_SCHEDULE_ID AS source_id&#13;&#10;FROM &#13;&#10;    hub.FACILITY_RESERVATION src&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON fa1.ORG_ID = src.ORG_ID AND fa1.FACILITY_ID = src.FACILITY_ID&#13;&#10;    LEFT JOIN hub.CENTERS ce1 ON ce1.ORG_ID = src.ORG_ID AND ce1.CENTER_ID = fa1.CENTER_ID&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON co1.ORG_ID = src.ORG_ID AND co1.COMPANY_ID = src.COMPANY_ID&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = src.CUSTOMER_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.SITE_ID&#13;&#10;    LEFT JOIN hub.SITES si2 ON si2.ORG_ID = src.ORG_ID AND si2.SITE_ID = src.TRANSACTION_SITE_ID&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID&#13;&#10;    LEFT JOIN hub.PERMITS pe1 ON pe1.ORG_ID = src.ORG_ID AND pe1.PERMIT_ID = src.PERMIT_ID&#13;&#10;    LEFT JOIN hub.SCHEDULE_TYPES st1 ON (st1.ORG_ID = src.ORG_ID AND st1.SCHEDULE_TYPE_ID = src.SCHEDULE_TYPE_ID)&#13;&#10;    LEFT JOIN hub.EVENT_TYPES et1 ON (et1.ORG_ID = src.ORG_ID AND et1.EVENT_TYPE_ID = src.EVENT_TYPE_ID)&#13;&#10;    LEFT JOIN hub.FACILITY_TYPES ft1 ON (ft1.ORG_ID = src.ORG_ID AND ft1.FACILITY_TYPE_ID = fa1.FACILITY_TYPE_ID)&#13;&#10;&#9;LEFT JOIN hub.FACILITY_SCHEDULES facs ON (facs.FACILITY_SCHEDULE_ID = src.FACILITY_SCHEDULE_ID)&#13;&#10;(CONVERT([date],[EXPIRATION_DATE]))(CONVERT([date],[PERMIT_DATE]))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_ID" nullable="true" remarks="Facility ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FACILITY_NAME" nullable="true" remarks="Facility name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FACILITY_TYPE" nullable="true" remarks="Description of the facility's type" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CENTER_ID" nullable="true" remarks="The ID of the center where the facility locates" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CENTER_NAME" nullable="true" remarks="The Name of the center where the facility locates" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SITE_ID" nullable="true" remarks="The facility's site ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SITE_NAME" nullable="true" remarks="The facility's site name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="PERMIT_NUMBER" nullable="true" remarks="The number of the permit" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="PERMIT_DATE" nullable="true" remarks="The date and time when the permit was created" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="EVENT_TYPE" nullable="true" remarks="Event type of the reservation" size="102" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="EVENT_START_DATE" nullable="true" remarks="Event start date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="EVENT_START_TIME" nullable="true" remarks="Event start time" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="EVENT_END_DATE" nullable="true" remarks="Event end date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="EVENT_END_TIME" nullable="true" remarks="Event end time" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="DAY_OF_WEEK" nullable="true" remarks="Reserved days in a week" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ATTENDANCE" nullable="true" remarks="The attendance of the resevation" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="PERMIT_STATUS" nullable="true" remarks="The current status of the permit (e.g. Approved, Denied, Tentative, Stage Denied, Issued, Cancelled, Waiting Decision, Completed, On Hold)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="18" name="HOURS_RESERVED" nullable="true" remarks="The total hours that the facility is reserved" size="11" type="decimal" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="19" name="MINUTES_RESERVED" nullable="true" remarks="Includes prep time" size="11" type="decimal" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="SCHEDULE_TYPE" nullable="true" remarks="The schedule type of the reservation" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="21" name="EXPIRATION_DATE" nullable="true" remarks="The expiration date of the reservation" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="TRANSACTION_SITE" nullable="true" remarks="Name of the transaction site where the reservation was made" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the system user who made the reservation" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="CUSTOMER_FIRST_NAME" nullable="true" remarks="First name of the customer" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="CUSTOMER_LAST_NAME" nullable="true" remarks="Last name of the customer" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="RESIDENCY" nullable="true" remarks="Customer's resident status" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="COMPANY_NAME" nullable="true" remarks="Reservation made by a company" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="28" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="EXPIRATION_DATE_ONLY" nullable="true" remarks="The expiration date of the reservation (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="PERMIT_DATE_ONLY" nullable="true" remarks="The date when the permit was created (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="FACILITY_SCHEDULE_ID" nullable="true" remarks="The ID of the reservation record" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="FACILITY_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_DATES"/>
            <child catalog="ActiveHub" column="FACILITY_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULE_PAIRINGS"/>
            <child catalog="ActiveHub" column="FACILITY_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="PERMIT_ID" nullable="true" remarks="The ID of the permit" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PERMIT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PERMITS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="CUSTOMER_ID" nullable="true" remarks="The ID of the customer" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="COMPANY_ID" nullable="true" remarks="The ID of the company" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="SETUP_MINUTES" nullable="true" remarks="The number of minutes of setup time prior to the event start time" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="CLEANUP_MINUTES" nullable="true" remarks="The number of minutes of cleanup time after the event end time" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="EVENT_DESCRIPTION" nullable="true" remarks="The description of the reservation event" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="ACTIVITY_ID" nullable="true" remarks="The ID of the activity that the reserved space belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="SESSION_ID" nullable="true" remarks="The ID of the daycare session that the reserved space belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SESSION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SESSIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="LEAGUE_SCHEDULE_ID" nullable="true" remarks="The ID of the league schedule that the reserved space belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LEAGUE_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="FACILITY_TYPE_ID" nullable="true" remarks="ID of the facility's type" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="EVENT_TYPE_ID" nullable="true" remarks="ID of the event type of the reservation" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="EVENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="SCHEDULE_TYPE_ID" nullable="true" remarks="ID of the schedule type of the reservation" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SCHEDULE_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SCHEDULE_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="TRANSACTION_SITE_ID" nullable="true" remarks="ID of the transaction site where the reservation was made" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the system user who made the reservation" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="RESERVATION_START_DATE" nullable="true" remarks="The start date of the overall reservation, including setup time" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="RESERVATION_START_TIME" nullable="true" remarks="The start time of the overall reservation, including setup time" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="RESERVATION_END_DATE" nullable="true" remarks="The end date of the overall reservation, including cleanup time" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="RESERVATION_END_TIME" nullable="true" remarks="The end time of the overall reservation, including cleanup time" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="FACILITY_SCHEDULE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="FACILITY_SCHEDULES" numRows="0" remarks="Facility schedules VIEW" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.FACILITY_SCHEDULES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    fs.ACTIVE_HUB_KEY,&#13;&#10;&#9;fs.ORG_ID,&#9;&#13;&#10;&#9;SITE_ID,&#13;&#10;&#9;FACILITY_SCHEDULE_ID,&#13;&#10;&#9;DCSESSION_ID,&#13;&#10;&#9;FACILITY_ID,&#13;&#10;&#9;PERMIT_ID,&#13;&#10;&#9;ACTIVITY_ID,&#13;&#10;&#9;TRANSACTION_ID,&#13;&#10;&#9;STATION_ID,&#13;&#10;&#9;fs.SYSTEMUSER_ID,&#13;&#10;&#9;SYSTEM_USER_NAME = (su.USER_FIRST_NAME + ' ' + su.USER_LAST_NAME),&#13;&#10;&#9;STARTSCHEDULEDATE,&#13;&#10;&#9;ENDSCHEDULEDATE,&#13;&#10;&#9;STARTSCHEDULETIME,&#13;&#10;&#9;ENDSCHEDULETIME,&#13;&#10;&#9;ATTENDANCE,&#13;&#10;&#9;CONFLICTING,&#13;&#10;&#9;EVENTNAME,&#13;&#10;&#9;STARTEVENTDATE,&#13;&#10;&#9;ENDEVENTDATE,&#13;&#10;&#9;STARTEVENTTIME,&#13;&#10;&#9;ENDEVENTTIME,&#13;&#10;&#9;HOLDEXPIRATIONDATE,&#13;&#10;&#9;HOLDTYPE,&#13;&#10;&#9;HOLDUSERID,&#13;&#10;&#9;MODULE,&#13;&#10;&#9;OVERLAP,&#13;&#10;&#9;RELATIONID,&#13;&#10;&#9;TENTATIVEOWNER,&#13;&#10;&#9;WAITLISTDATETIME,&#13;&#10;&#9;CHECKOUTDATETIME,&#13;&#10;&#9;CHECKOUTCUSTOMER_ID,&#13;&#10;&#9;CHECKINDATETIME,&#13;&#10;&#9;CHECKOUTFIRSTNAME,&#13;&#10;&#9;CHECKOUTLASTNAME,&#13;&#10;&#9;LEAGUESCHEDULE_ID,&#13;&#10;&#9;PARENT_FACILITY_SCHEDULE_ID,&#13;&#10;&#9;RESCHEDULE,&#13;&#10;&#9;RESCHEDULED_FACILITY_SCHEDULE_ID,&#13;&#10;&#9;MAKE_UP_LESSON_DATES_ID,&#13;&#10;&#9;REFUNDED,&#13;&#10;&#9;PRIVATE_LESSON_GROUP_ID,&#13;&#10;&#9;ORIGINAL_LESSON_DURATION,&#13;&#10;&#9;NON_EXCLUSIVE,&#13;&#10;&#9;DATE_RANGE_DESCRIPTION,&#13;&#10;&#9;HOLD_HUMAN_RESOURCE_CUSTOMER_ID,&#13;&#10;&#9;HUMAN_RESOURCE_DEFAULT_FACILITY_ID,&#13;&#10;&#9;ENROLLMENT_PENDING_ADDS_PK,&#13;&#10;&#9;EVENT_ATTENDANCE,&#13;&#10;&#9;RENTAL_BLOCK_ID,&#13;&#10;&#9;DATE_RANGE_ID,&#13;&#10;&#9;TENTATIVE_WORKSTATION_ID,&#13;&#10;&#9;TENTATIVE_SEARCH_ID,&#13;&#10;&#9;TENTATIVE_TIME_SLOT_INDEX,&#13;&#10;&#9;MASTER_FACILITY_SCHEDULE_ID,&#9;&#13;&#10;&#9;fs.LAST_SYNC_TIME,&#13;&#10;&#9;fs.ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_SCHEDULES fs&#13;&#10;&#9;LEFT JOIN hub.SYSTEM_USERS su ON fs.SYSTEMUSER_ID = su.SYSTEMUSER_ID AND fs.ORG_ID = su.ORG_ID&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The dbo record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_ID" nullable="true" remarks="The id of site VIEW" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FACILITY_SCHEDULE_ID" nullable="false" remarks="Facility schedule ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="DCSESSION_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="FACILITY_ID" nullable="true" remarks="The ID of the parent facility" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PERMIT_ID" nullable="true" remarks="The Permit ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVITY_ID" nullable="true" remarks="The Activity ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="TRANSACTION_ID" nullable="true" remarks="The Transaction ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="STATION_ID" nullable="true" remarks="The Station ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="SYSTEMUSER_ID" nullable="true" remarks="The System ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="SYSTEM_USER_NAME" nullable="true" remarks="The System user name" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="12" name="STARTSCHEDULEDATE" nullable="true" remarks="The Start schedule date." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="ENDSCHEDULEDATE" nullable="true" remarks="The end schedule date." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="14" name="STARTSCHEDULETIME" nullable="true" remarks="The start schedule time." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="15" name="ENDSCHEDULETIME" nullable="true" remarks="The end schedule time." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ATTENDANCE" nullable="true" remarks="The attendance of this schedule" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="CONFLICTING" nullable="true" remarks="The conflicting of the schedule" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="EVENTNAME" nullable="true" remarks="The event name." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="19" name="STARTEVENTDATE" nullable="true" remarks="The start event date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="20" name="ENDEVENTDATE" nullable="true" remarks="The end event date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="21" name="STARTEVENTTIME" nullable="true" remarks="The start event time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="22" name="ENDEVENTTIME" nullable="true" remarks="The end event time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="23" name="HOLDEXPIRATIONDATE" nullable="true" remarks="The hold expitation date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="HOLDTYPE" nullable="true" remarks="The hold type" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="HOLDUSERID" nullable="true" remarks="The id of hold user" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="MODULE" nullable="true" remarks="The module of the schedule" size="2" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="OVERLAP" nullable="true" remarks="The overlap of the schedule" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="RELATIONID" nullable="true" remarks="The relation ID" size="128" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="TENTATIVEOWNER" nullable="true" remarks="The tentative owner of the schedule" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="30" name="WAITLISTDATETIME" nullable="true" remarks="The wait list date time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="31" name="CHECKOUTDATETIME" nullable="true" remarks="The check out date time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="CHECKOUTCUSTOMER_ID" nullable="true" remarks="The check ou customer ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="33" name="CHECKINDATETIME" nullable="true" remarks="The check in date time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="CHECKOUTFIRSTNAME" nullable="true" remarks="The check out first name" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="CHECKOUTLASTNAME" nullable="true" remarks="The check ou last name." size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="LEAGUESCHEDULE_ID" nullable="true" remarks="The league schedule ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="PARENT_FACILITY_SCHEDULE_ID" nullable="true" remarks="The parent facility schedule ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="RESCHEDULE" nullable="true" remarks="The reschedule" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="RESCHEDULED_FACILITY_SCHEDULE_ID" nullable="true" remarks="The rescheduled facility schedule ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="MAKE_UP_LESSON_DATES_ID" nullable="true" remarks="The make up lesson date ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="REFUNDED" nullable="true" remarks="The refund of the schedule" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="PRIVATE_LESSON_GROUP_ID" nullable="true" remarks="The private lesson group ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="ORIGINAL_LESSON_DURATION" nullable="true" remarks="The original lesson duration" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="NON_EXCLUSIVE" nullable="true" remarks="The non exclusive" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="DATE_RANGE_DESCRIPTION" nullable="true" remarks="The date range description" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="HOLD_HUMAN_RESOURCE_CUSTOMER_ID" nullable="true" remarks="The hold human resource ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="HUMAN_RESOURCE_DEFAULT_FACILITY_ID" nullable="true" remarks="The human resource default facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="ENROLLMENT_PENDING_ADDS_PK" nullable="true" remarks="The enrollment pending adds PK" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="EVENT_ATTENDANCE" nullable="true" remarks="The event attendance" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="RENTAL_BLOCK_ID" nullable="true" remarks="The rental block ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="DATE_RANGE_ID" nullable="true" remarks="The date range ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="TENTATIVE_WORKSTATION_ID" nullable="true" remarks="The tentative workstation ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="TENTATIVE_SEARCH_ID" nullable="true" remarks="The tentative search ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="TENTATIVE_TIME_SLOT_INDEX" nullable="true" remarks="The tentative time slot index" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="MASTER_FACILITY_SCHEDULE_ID" nullable="true" remarks="The master facility schedule ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="56" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time dbo record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The dbo sync process ID" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="FACILITY_TYPE_DATE_RANGES" numRows="0" remarks="Contains information on reservation date ranges assigned to each facility type" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FACILITY_TYPE_DATE_RANGES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_TYPE_ID,&#13;&#10;    ft1.FACILITY_TYPE_NAME,&#13;&#10;    src.RESERVATION_DATE_RANGE_ID,&#13;&#10;    rdr.RESERVATION_DATE_RANGE_NAME,&#13;&#10;    src.FACILITY_TYPE_DATE_RANGE_ID,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_TYPE_LINKS src&#13;&#10;    JOIN hub.FACILITY_TYPES ft1 ON (ft1.FACILITY_TYPE_ID = src.FACILITY_TYPE_ID)&#13;&#10;    JOIN hub.RESERVATION_DATE_RANGES rdr ON (rdr.RESERVATION_DATE_RANGE_ID = src.RESERVATION_DATE_RANGE_ID)&#13;&#10;WHERE&#13;&#10;    src.FACILITY_TYPE_DATE_RANGE_ID IS NOT NULL;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="FACILITY_TYPE_ID" nullable="true" remarks="The facility type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_TYPE_NAME" nullable="true" remarks="The facility type name" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="RESERVATION_DATE_RANGE_ID" nullable="true" remarks="The reservation date range ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="RESERVATION_DATE_RANGE_NAME" nullable="true" remarks="The reservation date range name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="FACILITY_TYPE_DATE_RANGE_ID" nullable="true" remarks="The facility type date range ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="FACILITY_TYPE_LINKS" numRows="0" remarks="Contains information on related records that are linked to facility type records (for internal use)" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FACILITY_TYPE_LINKS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_TYPE_ID,&#13;&#10;    ft1.FACILITY_TYPE_NAME,&#13;&#10;    src.EVENTTYPE_FACILITYTYPE_ID,&#13;&#10;    src.EVENT_TYPE_ID,&#13;&#10;    et1.EVENT_TYPE_NAME,&#13;&#10;    src.FACILITY_TYPE_DATE_RANGE_ID,&#13;&#10;    src.RESERVATION_DATE_RANGE_ID,&#13;&#10;    rdr.RESERVATION_DATE_RANGE_NAME,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_TYPE_LINKS src&#13;&#10;    JOIN hub.FACILITY_TYPES ft1 ON (ft1.FACILITY_TYPE_ID = src.FACILITY_TYPE_ID)&#13;&#10;    LEFT JOIN hub.EVENT_TYPES et1 ON (et1.EVENT_TYPE_ID = src.EVENT_TYPE_ID)&#13;&#10;    LEFT JOIN hub.RESERVATION_DATE_RANGES rdr ON (rdr.RESERVATION_DATE_RANGE_ID = src.RESERVATION_DATE_RANGE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="FACILITY_TYPE_ID" nullable="true" remarks="The facility type ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_TYPE_NAME" nullable="true" remarks="The facility type name" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="EVENTTYPE_FACILITYTYPE_ID" nullable="true" remarks="The event type facility type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="EVENT_TYPE_ID" nullable="true" remarks="The event type ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="EVENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="EVENT_TYPE_NAME" nullable="true" remarks="The event type name" size="102" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="FACILITY_TYPE_DATE_RANGE_ID" nullable="true" remarks="The facility type date range ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="RESERVATION_DATE_RANGE_ID" nullable="true" remarks="The reservation date range ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RESERVATION_DATE_RANGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RESERVATION_DATE_RANGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="RESERVATION_DATE_RANGE_NAME" nullable="true" remarks="The reservation date range name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="EVENTTYPE_FACILITYTYPE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="FACILITY_TYPES" numRows="0" remarks="Contains information on defined facility types" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FACILITY_TYPES&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.FACILITY_TYPE_ID,&#13;&#10;    src.FACILITY_TYPE_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.HIDE_ON_INTERNET,&#13;&#10;    src.MINIMUM_CAPACITY,&#13;&#10;    src.MAXIMUM_CAPACITY,&#13;&#10;    src.ALLOW_DOUBLE_BOOKING,&#13;&#10;    src.MAX_ATTENDANCE_AT_ONE_TIME,&#13;&#10;    src.DOUBLE_BOOKING_RESTRICTIONS,&#13;&#10;    src.RESERVATION_PERIOD_UNIT,&#13;&#10;    src.MINIMUM_RESERVATION_TIME,&#13;&#10;    src.MAXIMUM_RESERVATION_TIME,&#13;&#10;    src.WEEKLY_RESERVATION_STARTS_ON,&#13;&#10;    src.ALLOW_OVERLAPPED_RENTAL_BLOCKS,&#13;&#10;    src.MAX_RESERVATIONS_NUM_FACILITIES,&#13;&#10;    src.MAX_RESERVATIONS_PER_FACILITY,&#13;&#10;    src.INTERNET_RESERVATION_PROCESS,&#13;&#10;    src.MODIFY_ON_INTERNET,&#13;&#10;    src.DEFAULT_CHECKIN_TIME,&#13;&#10;    src.DEFAULT_CHECKOUT_TIME,&#13;&#10;    src.FIXED_DEFAULT_CHECKIN_TIME,&#13;&#10;    src.FIXED_DEFAULT_CHECKOUT_TIME,&#13;&#10;    src.OVERRIDE_RETURNING_RENTER_CRITERIA,&#13;&#10;    src.FACILITY_RETURNING_RENTER_RESERVATION_CRITERIA,&#13;&#10;    src.FACILITY_RETURNING_RENTER_TIME_CRITERIA,&#13;&#10;    src.FACILITY_RETURNING_RENTER_TIME_CRITERIA_OTHER_VALUE,&#13;&#10;    src.FACILITY_RETURNING_RENTER_TIME_CRITERIA_OTHER_UNIT,&#13;&#10;    src.LOCKER_RETURNING_RENTER_RESERVATION_CRITERIA,&#13;&#10;    src.LOCKER_RETURNING_RENTER_TIME_CRITERIA,&#13;&#10;    src.LOCKER_RETURNING_RENTER_TIME_CRITERIA_OTHER_VALUE,&#13;&#10;    src.LOCKER_RETURNING_RENTER_TIME_CRITERIA_OTHER_UNIT,&#13;&#10;    src.DISPLAY_ON_MAP,&#13;&#10;    src.AVAILABLE_ICON_FILE_ID,&#13;&#10;    uf1.DISPLAY_NAME AS AVAILABLE_ICON_FILE_NAME,&#13;&#10;    src.BOOKED_ICON_FILE_ID,&#13;&#10;    uf2.DISPLAY_NAME AS BOOKED_ICON_FILE_NAME,&#13;&#10;    src.CLOSED_ICON_FILE_ID,&#13;&#10;    uf3.DISPLAY_NAME AS CLOSED_ICON_FILE_NAME,&#13;&#10;    src.DEFAULT_EVENT_TYPE_ID,&#13;&#10;    et1.EVENT_TYPE_NAME AS DEFAULT_EVENT_TYPE_NAME,&#13;&#10;    src.DEFAULT_EVENT_DESCRIPTION,&#13;&#10;    src.DEFAULT_NUMBER_OF_GUESTS,&#13;&#10;    src.SHOW_ON_CAPTIVATE_APP,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM&#13;&#10;    hub.FACILITY_TYPES src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.EVENT_TYPES et1 ON (et1.EVENT_TYPE_ID = src.DEFAULT_EVENT_TYPE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf1 ON (uf1.UPLOADED_FILE_ID = src.AVAILABLE_ICON_FILE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf2 ON (uf2.UPLOADED_FILE_ID = src.BOOKED_ICON_FILE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf3 ON (uf3.UPLOADED_FILE_ID = src.CLOSED_ICON_FILE_ID)&#13;&#10;WHERE&#13;&#10;    src.ITEM_TYPE_ID = 0;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="FACILITY_TYPE_ID" nullable="true" remarks="The facility type ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="FACILITY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
            <child catalog="ActiveHub" column="FACILITY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_TYPE_LINKS"/>
            <child catalog="ActiveHub" column="FACILITY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGE_SEQUENCE_LINKS"/>
            <child catalog="ActiveHub" column="FACILITY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STANDARD_CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_TYPE_NAME" nullable="true" remarks="The facility type name" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_ID" nullable="true" remarks="The site ID that this facility type should be available for (null for all sites)" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_NAME" nullable="true" remarks="The site that this facility type should be available for (null for all sites)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether facilities of this type should be hidden from display online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="MINIMUM_CAPACITY" nullable="true" remarks="Minimum capacity for facilities of this type" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="MAXIMUM_CAPACITY" nullable="true" remarks="Maximum capacity for facilities of this type" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ALLOW_DOUBLE_BOOKING" nullable="true" remarks="Whether double booking is allowed for facilities of this type (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="MAX_ATTENDANCE_AT_ONE_TIME" nullable="true" remarks="Maximum attendance at any one time for quantity-based reservations" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="DOUBLE_BOOKING_RESTRICTIONS" nullable="true" remarks="Whether double booking restrictions should be enforced (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="RESERVATION_PERIOD_UNIT" nullable="true" remarks="The reservation period unit to be used when booking facilities of this type (Use Default / Minute / Hour / Day / Week / Month / Defined Date Range / Rental Block / Overnight)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="MINIMUM_RESERVATION_TIME" nullable="true" remarks="Minimum reservation time for facilities of this type" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="MAXIMUM_RESERVATION_TIME" nullable="true" remarks="Maximum reservation time for facilities of this type" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="WEEKLY_RESERVATION_STARTS_ON" nullable="true" remarks="Day of the week that weekly reservations start on" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ALLOW_OVERLAPPED_RENTAL_BLOCKS" nullable="true" remarks="Whether overlapped rental blocks are allowed for facilities of this type (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="MAX_RESERVATIONS_NUM_FACILITIES" nullable="true" remarks="Maximum reservations per customer per day" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="MAX_RESERVATIONS_PER_FACILITY" nullable="true" remarks="Maximum reservations per customer per day per facility" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="INTERNET_RESERVATION_PROCESS" nullable="true" remarks="The type of online reservation process for facilities of this type (--No Override-- / Reservation Request / Permit)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="MODIFY_ON_INTERNET" nullable="true" remarks="Whether reservations of facilities of this type should be modifiable in the online reservation process (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="DEFAULT_CHECKIN_TIME" nullable="true" remarks="The default check-in time for facilities of this type" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="DEFAULT_CHECKOUT_TIME" nullable="true" remarks="The default check-out time for facilities of this type" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="FIXED_DEFAULT_CHECKIN_TIME" nullable="true" remarks="Whether there is a fixed check-in time for online reservations (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="FIXED_DEFAULT_CHECKOUT_TIME" nullable="true" remarks="Whether there is a fixed check-out time for online reservations (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="OVERRIDE_RETURNING_RENTER_CRITERIA" nullable="true" remarks="Whether the returning renter criteria for facilities of this type should override the setting from the center (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="FACILITY_RETURNING_RENTER_RESERVATION_CRITERIA" nullable="true" remarks="The customer qualifies to be considered as a facility returning renter if they have reserved (None / Same Facility / Same Facility Type, same Center / Same Facility Type, any Center)" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="FACILITY_RETURNING_RENTER_TIME_CRITERIA" nullable="true" remarks="The customer qualifies to be considered as a facility returning renter if they have reserved within (Previous Rental Period / Previous Year / Other Period)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="FACILITY_RETURNING_RENTER_TIME_CRITERIA_OTHER_VALUE" nullable="true" remarks="The customer qualifies to be considered as a facility returning renter if they have reserved within other duration" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="FACILITY_RETURNING_RENTER_TIME_CRITERIA_OTHER_UNIT" nullable="true" remarks="The customer qualifies to be considered as a facility returning renter if they have reserved within other unit (Years / Months / Days)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="LOCKER_RETURNING_RENTER_RESERVATION_CRITERIA" nullable="true" remarks="The customer qualifies to be considered as a locker returning renter if they have reserved (None / Same Locker / Same Locker Bank / Same Locker Group / Same Center)" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="LOCKER_RETURNING_RENTER_TIME_CRITERIA" nullable="true" remarks="The customer qualifies to be considered as a locker returning renter if they have reserved within (Previous Rental Period / Previous Year / Other Period)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="LOCKER_RETURNING_RENTER_TIME_CRITERIA_OTHER_VALUE" nullable="true" remarks="The customer qualifies to be considered as a locker returning renter if they have reserved within other duration" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="LOCKER_RETURNING_RENTER_TIME_CRITERIA_OTHER_UNIT" nullable="true" remarks="The customer qualifies to be considered as a locker returning renter if they have reserved within other unit (Years / Months / Days)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="DISPLAY_ON_MAP" nullable="true" remarks="Whether facilities of this type should be displayed on the map (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="AVAILABLE_ICON_FILE_ID" nullable="true" remarks="The image file ID to be displayed on the map for facilities with an available status" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="AVAILABLE_ICON_FILE_NAME" nullable="true" remarks="The image file name to be displayed on the map for facilities with an available status" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="BOOKED_ICON_FILE_ID" nullable="true" remarks="The image file ID to be displayed on the map for facilities with a booked status" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="BOOKED_ICON_FILE_NAME" nullable="true" remarks="The image file name to be displayed on the map for facilities with a booked status" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="CLOSED_ICON_FILE_ID" nullable="true" remarks="The image file ID to be displayed on the map for facilities with a closed or unavailable status" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="CLOSED_ICON_FILE_NAME" nullable="true" remarks="The image file name to be displayed on the map for facilities with a closed or unavailable status" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="DEFAULT_EVENT_TYPE_ID" nullable="true" remarks="The default event type ID for facilities of this type" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="EVENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="DEFAULT_EVENT_TYPE_NAME" nullable="true" remarks="The default event type for facilities of this type" size="102" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="DEFAULT_EVENT_DESCRIPTION" nullable="true" remarks="The default event description for facilities of this type" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="DEFAULT_NUMBER_OF_GUESTS" nullable="true" remarks="The default number of guests for facilities of this type" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="SHOW_ON_CAPTIVATE_APP" nullable="true" remarks="Whether facilities of this type should be shown on the ACTIVE Net Captivate App (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="IS_RETIRED" nullable="true" remarks="Whether this facility type has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="46" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="FACILITY_TYPE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="FACILITY_USAGE_REVENUE" numRows="0" remarks="Table showing a breakdown of permit revenue per facility and date" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FACILITY_USAGE_REVENUE&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.FACILITY_USAGE_REVENUE_ID,&#13;&#10;    src.PERMIT_ID,&#13;&#10;    pe1.PERMIT_NUMBER,&#13;&#10;    pe1.EVENT_NAME AS PERMIT_EVENT_NAME,&#13;&#10;    cu1.CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS CUSTOMER_NAME,&#13;&#10;    co1.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.EVENT_TYPE_ID,&#13;&#10;    et1.EVENT_TYPE_NAME AS EVENT_TYPE,&#13;&#10;    src.SCHEDULE_TYPE_ID,&#13;&#10;    st1.SCHEDULE_TYPE_NAME AS SCHEDULE_TYPE,&#13;&#10;    src.SCHEDULE_DATE,&#13;&#10;    src.USAGE_REVENUE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM&#13;&#10;    hub.FACILITY_USAGE_REVENUE src&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    JOIN hub.PERMITS pe1 ON (pe1.PERMIT_ID = src.PERMIT_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = pe1.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.COMPANY_ID = pe1.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.SCHEDULE_TYPES st1 ON (st1.SCHEDULE_TYPE_ID = src.SCHEDULE_TYPE_ID)&#13;&#10;    LEFT JOIN hub.EVENT_TYPES et1 ON (et1.EVENT_TYPE_ID = src.EVENT_TYPE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_USAGE_REVENUE_ID" nullable="true" remarks="Facility usage revenue ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PERMIT_ID" nullable="true" remarks="Permit ID that the revenue is for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PERMIT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PERMITS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PERMIT_NUMBER" nullable="true" remarks="Permit number that the revenue is for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PERMIT_EVENT_NAME" nullable="true" remarks="Permit event name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMER_ID" nullable="true" remarks="ID of the customer that the permit belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOMER_NAME" nullable="true" remarks="Name of the customer that the permit belongs to" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="COMPANY_ID" nullable="true" remarks="ID of the company that the permit belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="COMPANY_NAME" nullable="true" remarks="Name of the company that the permit belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="FACILITY_ID" nullable="true" remarks="Facility ID that the revenue is for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="FACILITY_NAME" nullable="true" remarks="Facility name that the revenue is for" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="EVENT_TYPE_ID" nullable="true" remarks="Event type ID that the revenue is for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="EVENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="EVENT_TYPE" nullable="true" remarks="Event type name that the revenue is for" size="102" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="SCHEDULE_TYPE_ID" nullable="true" remarks="Schedule type ID that the revenue is for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SCHEDULE_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SCHEDULE_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="SCHEDULE_TYPE" nullable="true" remarks="Schedule type name that the revenue is for" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="SCHEDULE_DATE" nullable="true" remarks="Date that the revenue is calculated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="16" name="USAGE_REVENUE" nullable="true" remarks="The calculated amount of revenue for this permit and facility on this date" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="17" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="FACILITY_USAGE_REVENUE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="FACILITY_USERS" numRows="0" remarks="Contains information on configured users and approvers for facilities" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FACILITY_USERS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_USER_ID,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    src.IS_FINAL_APPROVER,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_USERS src&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    JOIN hub.SYSTEM_USERS su1 ON (su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="FACILITY_USER_ID" nullable="true" remarks="The facility user ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_ID" nullable="true" remarks="The facility ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FACILITY_NAME" nullable="true" remarks="The facility name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SYSTEMUSER_ID" nullable="true" remarks="The system user ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SYSTEM_USER_NAME" nullable="false" remarks="The system user name" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="IS_FINAL_APPROVER" nullable="true" remarks="Whether the user is a final approval for reservation requests for this facility (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="FACILITY_USER_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="FACILITY_UTILIZATION" numRows="0" remarks="Contains facility utilization information by date. For reservations that ended in the past 36 months or which will begin in the next 12 months." schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FACILITY_UTILIZATION&#13;&#10;AS&#13;&#10;WITH cte_FACILITY_RESERVATION_SUMMARY (&#13;&#10;    FACILITY_ID,&#13;&#10;    FACILITY_DATE,&#13;&#10;    PERMIT_MINUTES,&#13;&#10;    ACTIVITY_MINUTES,&#13;&#10;    PROGRAM_MINUTES,&#13;&#10;    LEAGUE_MINUTES,&#13;&#10;    TOTAL_BOOKED_MINUTES,&#13;&#10;    PERMIT_ATTENDANCE,&#13;&#10;    ACTIVITY_ATTENDANCE,&#13;&#10;    PROGRAM_ATTENDANCE,&#13;&#10;    LEAGUE_ATTENDANCE,&#13;&#10;    TOTAL_BOOKED_ATTENDANCE&#13;&#10;) AS (&#13;&#10;    SELECT TOP 100 PERCENT&#13;&#10;        fre.FACILITY_ID,&#13;&#10;        fre.FACILITY_DATE,&#13;&#10;        SUM(CASE WHEN fre.IS_PERMIT = 0 THEN 0 ELSE fre.BOOKED_MINUTES END) AS PERMIT_MINUTES,&#13;&#10;        SUM(CASE WHEN fre.IS_ACTIVITY = 0 THEN 0 ELSE fre.BOOKED_MINUTES END) AS ACTIVITY_MINUTES,&#13;&#10;        SUM(CASE WHEN fre.IS_PROGRAM = 0 THEN 0 ELSE fre.BOOKED_MINUTES END) AS PROGRAM_MINUTES,&#13;&#10;        SUM(CASE WHEN fre.IS_LEAGUE = 0 THEN 0 ELSE fre.BOOKED_MINUTES END) AS LEAGUE_MINUTES,&#13;&#10;        SUM(fre.BOOKED_MINUTES) AS TOTAL_BOOKED_MINUTES,&#13;&#10;        SUM(CASE WHEN fre.IS_PERMIT = 0 THEN 0 ELSE fre.BOOKED_ATTENDANCE END) AS PERMIT_ATTENDANCE,&#13;&#10;        SUM(CASE WHEN fre.IS_ACTIVITY = 0 THEN 0 ELSE fre.BOOKED_ATTENDANCE END) AS ACTIVITY_ATTENDANCE,&#13;&#10;        SUM(CASE WHEN fre.IS_PROGRAM = 0 THEN 0 ELSE fre.BOOKED_ATTENDANCE END) AS PROGRAM_ATTENDANCE,&#13;&#10;        SUM(CASE WHEN fre.IS_LEAGUE = 0 THEN 0 ELSE fre.BOOKED_ATTENDANCE END) AS LEAGUE_ATTENDANCE,&#13;&#10;        SUM(fre.BOOKED_ATTENDANCE) AS TOTAL_BOOKED_ATTENDANCE&#13;&#10;    FROM (&#13;&#10;        SELECT&#13;&#10;            fav.FACILITY_ID,&#13;&#10;            fav.FACILITY_DATE,&#13;&#10;            (CASE WHEN fre.PERMIT_ID IS NOT NULL THEN 1 ELSE 0 END) AS IS_PERMIT,&#13;&#10;            (CASE WHEN fre.ACTIVITY_ID IS NOT NULL THEN 1 ELSE 0 END) AS IS_ACTIVITY,&#13;&#10;            (CASE WHEN fre.SESSION_ID IS NOT NULL THEN 1 ELSE 0 END) AS IS_PROGRAM,&#13;&#10;            (CASE WHEN fre.LEAGUE_SCHEDULE_ID IS NOT NULL THEN 1 ELSE 0 END) AS IS_LEAGUE,&#13;&#10;            (CASE&#13;&#10;                ------------------------------------------------------------------&#13;&#10;                -- Single day booking&#13;&#10;                ------------------------------------------------------------------&#13;&#10;                WHEN fre.RESERVATION_START_DATE = fav.FACILITY_DATE&#13;&#10;                    AND fre.RESERVATION_END_DATE = fav.FACILITY_DATE THEN&#13;&#10;                    -- Reservation starts and ends on the same date, so just calculate the duration of the reservation&#13;&#10;                    DATEDIFF(MINUTE, CAST(fre.RESERVATION_START_DATE AS DATETIME) + CAST(fre.RESERVATION_START_TIME AS DATETIME), CAST(fre.RESERVATION_END_DATE AS DATETIME) + CAST(fre.RESERVATION_END_TIME AS DATETIME))&#13;&#10;                WHEN fre.RESERVATION_START_DATE = fav.FACILITY_DATE&#13;&#10;                    AND fre.RESERVATION_END_DATE = DATEADD(DAY, 1, fre.RESERVATION_START_DATE)&#13;&#10;                    AND fre.RESERVATION_END_TIME = '00:00:00' THEN&#13;&#10;                    -- Reservation ends at midnight of the start date, so just calculate the duration of the reservation&#13;&#10;                    DATEDIFF(MINUTE, CAST(fre.RESERVATION_START_DATE AS DATETIME) + CAST(fre.RESERVATION_START_TIME AS DATETIME), CAST(fre.RESERVATION_END_DATE AS DATETIME) + CAST(fre.RESERVATION_END_TIME AS DATETIME))&#13;&#10;                ------------------------------------------------------------------&#13;&#10;                -- First day of a multiple day booking&#13;&#10;                ------------------------------------------------------------------&#13;&#10;                WHEN fre.RESERVATION_START_DATE = fav.FACILITY_DATE&#13;&#10;                    AND fre.RESERVATION_END_DATE = DATEADD(DAY, 1, fre.RESERVATION_START_DATE)&#13;&#10;                    AND fav.MAX_CLOSE_TIME &gt; '00:00:00'&#13;&#10;                    AND fav.MAX_CLOSE_TIME &lt; fav.MIN_OPEN_TIME&#13;&#10;                    AND fre.RESERVATION_END_TIME &lt;= fav.MAX_CLOSE_TIME THEN&#13;&#10;                    -- Reservation ends the day after it starts but on or before the facility close time, so just calculate the duration of the reservation&#13;&#10;                    DATEDIFF(MINUTE, CAST(fre.RESERVATION_START_DATE AS DATETIME) + CAST(fre.RESERVATION_START_TIME AS DATETIME), CAST(fre.RESERVATION_END_DATE AS DATETIME) + CAST(fre.RESERVATION_END_TIME AS DATETIME))&#13;&#10;                WHEN fre.RESERVATION_START_DATE = fav.FACILITY_DATE&#13;&#10;                    AND fav.MAX_CLOSE_TIME &gt; '00:00:00'&#13;&#10;                    AND fav.MAX_CLOSE_TIME &lt; fav.MIN_OPEN_TIME&#13;&#10;                    AND fre.RESERVATION_END_TIME &gt; fav.MAX_CLOSE_TIME  THEN&#13;&#10;                    -- Reservation spans multiple dates with a facility close time on the first date after midnight, so for first day calculate duration to facility close time&#13;&#10;                    DATEDIFF(MINUTE, CAST(fre.RESERVATION_START_DATE AS DATETIME) + CAST(fre.RESERVATION_START_TIME AS DATETIME), CAST(DATEADD(DAY, 1, fre.RESERVATION_START_DATE) AS DATETIME) + CAST(fav.MAX_CLOSE_TIME AS DATETIME))&#13;&#10;                WHEN fre.RESERVATION_START_DATE = fav.FACILITY_DATE THEN&#13;&#10;                    -- Reservation spans multiple dates with a facility close time on the first date on or before midnight, so for first day calculate duration to midnight&#13;&#10;                    DATEDIFF(MINUTE, CAST(fre.RESERVATION_START_DATE AS DATETIME) + CAST(fre.RESERVATION_START_TIME AS DATETIME), DATEADD(DAY, 1, fre.RESERVATION_START_DATE))&#13;&#10;                ------------------------------------------------------------------&#13;&#10;                -- Second to last day of a multiple day booking&#13;&#10;                ------------------------------------------------------------------&#13;&#10;                WHEN fav.FACILITY_DATE &gt; fre.RESERVATION_START_DATE&#13;&#10;                    AND fav.FACILITY_DATE = DATEADD(DAY, -1, fre.RESERVATION_END_DATE)&#13;&#10;                    AND fav.MAX_CLOSE_TIME IS NOT NULL&#13;&#10;                    AND fav.MAX_CLOSE_TIME &gt; '00:00:00'&#13;&#10;                    AND fav.MAX_CLOSE_TIME &lt; fav.MIN_OPEN_TIME&#13;&#10;                    AND fre.RESERVATION_END_TIME &lt; fav.MAX_CLOSE_TIME THEN&#13;&#10;                    -- Reservation spans multiple dates with the end time of the last date on or prior to the facility close time for the previous day, reduce duration by minutes prior to close time&#13;&#10;                    1440 - DATEDIFF(MINUTE, CAST(fre.RESERVATION_END_DATE AS DATETIME) + CAST(fre.RESERVATION_END_TIME AS DATETIME), CAST(fre.RESERVATION_END_DATE AS DATETIME) + CAST(fav.MAX_CLOSE_TIME AS DATETIME))&#13;&#10;                ------------------------------------------------------------------&#13;&#10;                -- Last day of a multiple day booking&#13;&#10;                ------------------------------------------------------------------&#13;&#10;                WHEN fre.RESERVATION_END_DATE = fav.FACILITY_DATE&#13;&#10;                    AND fre.RESERVATION_END_TIME = '00:00:00' THEN&#13;&#10;                    -- Reservation spans multiple dates with the end time of the last date at midnight, so no duration counts on this date&#13;&#10;                    0&#13;&#10;                WHEN fre.RESERVATION_END_DATE = fav.FACILITY_DATE&#13;&#10;                    AND prior_fav.MAX_CLOSE_TIME IS NOT NULL&#13;&#10;                    AND prior_fav.MAX_CLOSE_TIME &gt; '00:00:00'&#13;&#10;                    AND prior_fav.MAX_CLOSE_TIME &lt; prior_fav.MIN_OPEN_TIME&#13;&#10;                    AND fre.RESERVATION_END_TIME &lt;= prior_fav.MAX_CLOSE_TIME THEN&#13;&#10;                    -- Reservation spans multiple dates with the end time of the last date on or prior to the facility close time for the previous day, so no duration counts on this date&#13;&#10;                    0&#13;&#10;                WHEN fre.RESERVATION_END_DATE = fav.FACILITY_DATE&#13;&#10;                    AND prior_fav.MAX_CLOSE_TIME IS NOT NULL&#13;&#10;                    AND prior_fav.MAX_CLOSE_TIME &gt; '00:00:00'&#13;&#10;                    AND prior_fav.MAX_CLOSE_TIME &lt; prior_fav.MIN_OPEN_TIME&#13;&#10;                    AND fre.RESERVATION_END_TIME &gt; prior_fav.MAX_CLOSE_TIME THEN&#13;&#10;                    -- Reservation spans multiple dates with the end time of the last date after the facility close time for the previous day, so calculate duration from the facility close time&#13;&#10;                    DATEDIFF(MINUTE, CAST(fre.RESERVATION_END_DATE AS DATETIME) + CAST(prior_fav.MAX_CLOSE_TIME AS DATETIME), CAST(fre.RESERVATION_END_DATE AS DATETIME) + CAST(fre.RESERVATION_END_TIME AS DATETIME))&#13;&#10;                WHEN fre.RESERVATION_END_DATE = fav.FACILITY_DATE THEN&#13;&#10;                    -- Reservation spans multiple dates with the facility close time for the day prior to the end date set to midnight, so calculate duration from midnight to booking end time&#13;&#10;                    DATEDIFF(MINUTE, CAST(fre.RESERVATION_END_DATE AS DATETIME), CAST(fre.RESERVATION_END_DATE AS DATETIME) + CAST(fre.RESERVATION_END_TIME AS DATETIME))&#13;&#10;                ------------------------------------------------------------------&#13;&#10;                -- Other days of a multiple day booking&#13;&#10;                ------------------------------------------------------------------&#13;&#10;                ELSE 1440 -- minutes in a full day&#13;&#10;                END) AS BOOKED_MINUTES,&#13;&#10;            (CASE&#13;&#10;                WHEN fre.RESERVATION_END_DATE = fav.FACILITY_DATE&#13;&#10;                    AND fre.RESERVATION_END_DATE &gt; fre.RESERVATION_START_DATE&#13;&#10;                    AND prior_fav.MAX_CLOSE_TIME IS NOT NULL&#13;&#10;                    AND prior_fav.MAX_CLOSE_TIME &gt; '00:00:00'&#13;&#10;                    AND prior_fav.MAX_CLOSE_TIME &lt; prior_fav.MIN_OPEN_TIME&#13;&#10;                    AND fre.RESERVATION_END_TIME &lt;= prior_fav.MAX_CLOSE_TIME THEN&#13;&#10;                    -- Reservation spans multiple dates with the end time of the last date on or prior to the end time for the previous day&#13;&#10;                    0&#13;&#10;                ELSE fre.ATTENDANCE&#13;&#10;                END) AS BOOKED_ATTENDANCE&#13;&#10;        FROM&#13;&#10;            hub.FACILITY_RESERVATION fre&#13;&#10;            JOIN hub.FACILITY_AVAILABILITY fav ON fav.FACILITY_ID = fre.FACILITY_ID AND fav.FACILITY_DATE &gt;= fre.RESERVATION_START_DATE AND fav.FACILITY_DATE &lt;= fre.RESERVATION_END_DATE&#13;&#10;            LEFT JOIN hub.FACILITY_AVAILABILITY prior_fav ON prior_fav.FACILITY_ID = fre.FACILITY_ID AND prior_fav.FACILITY_DATE = DATEADD(DAY, -1, fre.RESERVATION_END_DATE)&#13;&#10;        WHERE&#13;&#10;            fre.RESERVATION_END_DATE &gt;= DATEADD(DAY, 1, EOMONTH(GETDATE(), -37))&#13;&#10;            AND fre.RESERVATION_START_DATE &lt;= EOMONTH(GETDATE(), 12)&#13;&#10;        ) fre&#13;&#10;&#13;&#10;    GROUP BY&#13;&#10;        fre.FACILITY_ID,&#13;&#10;        fre.FACILITY_DATE&#13;&#10;    ORDER BY&#13;&#10;        fre.FACILITY_ID,&#13;&#10;        fre.FACILITY_DATE&#13;&#10;)&#13;&#10;SELECT&#13;&#10;    fav.FACILITY_ID,&#13;&#10;    fac.FACILITY_NAME,&#13;&#10;    cen.CENTER_ID,&#13;&#10;    cen.CENTER_NAME,&#13;&#10;    sit.SITE_ID,&#13;&#10;    sit.SITE_NAME,&#13;&#10;    fav.FACILITY_DATE,&#13;&#10;    DATEPART(WEEKDAY, fav.FACILITY_DATE) AS DAY_OF_WEEK,&#13;&#10;    DATENAME(WEEKDAY, fav.FACILITY_DATE) AS DAY_OF_WEEK_NAME,&#13;&#10;    fav.IS_CLOSED,&#13;&#10;    fav.IS_OPEN_24_HOURS,&#13;&#10;    fav.MIN_OPEN_TIME,&#13;&#10;    fav.MAX_CLOSE_TIME,&#13;&#10;    fav.OPEN_MINUTES,&#13;&#10;    fav.SKIP_MINUTES,&#13;&#10;    (fav.OPEN_MINUTES - fav.SKIP_MINUTES) AS AVAILABLE_MINUTES,&#13;&#10;    CAST((CAST(fav.OPEN_MINUTES AS NUMERIC(10, 2)) / 60) AS NUMERIC(10, 2)) AS OPEN_HOURS,&#13;&#10;    CAST((CAST(fav.SKIP_MINUTES AS NUMERIC(10, 2)) / 60) AS NUMERIC(10, 2)) AS SKIP_HOURS,&#13;&#10;    CAST((CAST((fav.OPEN_MINUTES - fav.SKIP_MINUTES) AS NUMERIC(10, 2)) / 60) AS NUMERIC(10, 2)) AS AVAILABLE_HOURS,&#13;&#10;    ISNULL(frs.PERMIT_MINUTES, 0) AS PERMIT_MINUTES,&#13;&#10;    ISNULL(frs.ACTIVITY_MINUTES, 0) AS ACTIVITY_MINUTES,&#13;&#10;    ISNULL(frs.PROGRAM_MINUTES, 0) AS PROGRAM_MINUTES,&#13;&#10;    ISNULL(frs.LEAGUE_MINUTES, 0) AS LEAGUE_MINUTES,&#13;&#10;    ISNULL(frs.TOTAL_BOOKED_MINUTES, 0) AS TOTAL_BOOKED_MINUTES,&#13;&#10;    CAST((CAST(ISNULL(frs.PERMIT_MINUTES, 0) AS NUMERIC(10, 2)) / 60) AS NUMERIC(10, 2)) AS PERMIT_HOURS,&#13;&#10;    CAST((CAST(ISNULL(frs.ACTIVITY_MINUTES, 0) AS NUMERIC(10, 2)) / 60) AS NUMERIC(10, 2)) AS ACTIVITY_HOURS,&#13;&#10;    CAST((CAST(ISNULL(frs.PROGRAM_MINUTES, 0) AS NUMERIC(10, 2)) / 60) AS NUMERIC(10, 2)) AS PROGRAM_HOURS,&#13;&#10;    CAST((CAST(ISNULL(frs.LEAGUE_MINUTES, 0) AS NUMERIC(10, 2)) / 60) AS NUMERIC(10, 2)) AS LEAGUE_HOURS,&#13;&#10;    CAST((CAST(ISNULL(frs.TOTAL_BOOKED_MINUTES, 0) AS NUMERIC(10, 2)) / 60) AS NUMERIC(10, 2)) AS TOTAL_BOOKED_HOURS,&#13;&#10;    ISNULL(frs.PERMIT_ATTENDANCE, 0) AS PERMIT_ATTENDANCE,&#13;&#10;    ISNULL(frs.ACTIVITY_ATTENDANCE, 0) AS ACTIVITY_ATTENDANCE,&#13;&#10;    ISNULL(frs.PROGRAM_ATTENDANCE, 0) AS PROGRAM_ATTENDANCE,&#13;&#10;    ISNULL(frs.LEAGUE_ATTENDANCE, 0) AS LEAGUE_ATTENDANCE,&#13;&#10;    ISNULL(frs.TOTAL_BOOKED_ATTENDANCE, 0) AS TOTAL_BOOKED_ATTENDANCE&#13;&#10;FROM&#13;&#10;    hub.FACILITY_AVAILABILITY fav&#13;&#10;    JOIN hub.FACILITIES fac ON fac.FACILITY_ID = fav.FACILITY_ID&#13;&#10;    LEFT JOIN hub.CENTERS cen ON cen.CENTER_ID = fac.CENTER_ID&#13;&#10;    LEFT JOIN hub.SITES sit ON sit.SITE_ID = cen.SITE_ID&#13;&#10;    LEFT JOIN cte_FACILITY_RESERVATION_SUMMARY frs ON frs.FACILITY_ID = fav.FACILITY_ID AND frs.FACILITY_DATE = fav.FACILITY_DATE;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="FACILITY_ID" nullable="true" remarks="The ID of the facility" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FACILITY_NAME" nullable="true" remarks="The name of the facility" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CENTER_ID" nullable="true" remarks="The ID of the facility's center" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CENTER_NAME" nullable="true" remarks="The name of the facility's center" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SITE_ID" nullable="true" remarks="The ID of the center's site" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SITE_NAME" nullable="true" remarks="The name of the center's site" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="FACILITY_DATE" nullable="true" remarks="The date that the availability is calculated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="DAY_OF_WEEK" nullable="true" remarks="The day of week number (1=Sunday to 7=Saturday)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="DAY_OF_WEEK_NAME" nullable="true" remarks="The day of week name (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday)" size="60" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="IS_CLOSED" nullable="true" remarks="Whether the facility is configured as closed on this day of the week (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="IS_OPEN_24_HOURS" nullable="true" remarks="Whether the facility is configured as open 24 hours per day (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="MIN_OPEN_TIME" nullable="true" remarks="The minimum open time for the facility on this date" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="MAX_CLOSE_TIME" nullable="true" remarks="The maximum close time for the facility on this date" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="OPEN_MINUTES" nullable="true" remarks="The number of minutes the facility is open on this date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="SKIP_MINUTES" nullable="true" remarks="The number of minutes the facility is closed on this date due to a skip date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="AVAILABLE_MINUTES" nullable="true" remarks="The number of minutes the facility is available for reservation on this date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="16" name="OPEN_HOURS" nullable="true" remarks="The number of hours the facility is open on this date" size="12" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="17" name="SKIP_HOURS" nullable="true" remarks="The number of hours the facility is closed on this date due to a skip date" size="12" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="18" name="AVAILABLE_HOURS" nullable="true" remarks="The number of hours the facility is available for reservation on this date" size="12" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="PERMIT_MINUTES" nullable="false" remarks="The number of minutes the facility is booked for permits on this date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ACTIVITY_MINUTES" nullable="false" remarks="The number of minutes the facility is booked for activities on this date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="PROGRAM_MINUTES" nullable="false" remarks="The number of minutes the facility is booked for daycare programs on this date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="LEAGUE_MINUTES" nullable="false" remarks="The number of minutes the facility is booked for league schedules on this date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="TOTAL_BOOKED_MINUTES" nullable="false" remarks="The total number of minutes the facility is booked on this date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="24" name="PERMIT_HOURS" nullable="true" remarks="The number of hours the facility is booked for permits on this date" size="12" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="25" name="ACTIVITY_HOURS" nullable="true" remarks="The number of hours the facility is booked for activities on this date" size="12" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="26" name="PROGRAM_HOURS" nullable="true" remarks="The number of hours the facility is booked for daycare programs on this date" size="12" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="27" name="LEAGUE_HOURS" nullable="true" remarks="The number of hours the facility is booked for league schedules on this date" size="12" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="28" name="TOTAL_BOOKED_HOURS" nullable="true" remarks="The total number of hours the facility is booked on this date" size="12" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="PERMIT_ATTENDANCE" nullable="false" remarks="The total attendance for permits that the facility is booked for on this date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="ACTIVITY_ATTENDANCE" nullable="false" remarks="The total attendance for activities that the facility is booked for on this date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="PROGRAM_ATTENDANCE" nullable="false" remarks="The total attendance for daycare programs that the facility is booked for on this date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="LEAGUE_ATTENDANCE" nullable="false" remarks="The total attendance for league schedules that the facility is booked for on this date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="TOTAL_BOOKED_ATTENDANCE" nullable="false" remarks="The total attendance that the facility is booked for on this date" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="FAMILY_MEMBERS" numRows="0" remarks="Customer family details" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FAMILY_MEMBERS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.FAMILY_MEMBER_ID,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    fr1.FAMILY_ROLE_NAME AS FAMILY_ROLE,&#13;&#10;    src.FAMILY_ID,&#13;&#10;    src.FAMILY_NAME,&#13;&#10;    src.MAIN_CONTACT,&#13;&#10;    src.IMMEDIATE_FAMILY_MEMBER,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.FAMILY_ROLE_ID&#13;&#10;FROM &#13;&#10;    hub.FAMILY_MEMBERS src&#13;&#10;    LEFT JOIN hub.FAMILY_ROLES fr1 ON (fr1.FAMILY_ROLE_ID = src.FAMILY_ROLE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FAMILY_MEMBER_ID" nullable="true" remarks="ID of the family member record." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_ID" nullable="true" remarks="Customer's ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FAMILY_ROLE" nullable="true" remarks="Customer's role in the family." size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="FAMILY_ID" nullable="true" remarks="ID of the family record." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="FAMILY_NAME" nullable="true" remarks="Family last name." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="MAIN_CONTACT" nullable="true" remarks="Whether the family member is the main contact for the family (Yes/No)." size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="IMMEDIATE_FAMILY_MEMBER" nullable="true" remarks="Whether the family member is an immediate family member (Yes/No)." size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="FAMILY_ROLE_ID" nullable="true" remarks="The ID of the customer's role in the family." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FAMILY_ROLE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FAMILY_ROLES"/>
         </column>
         <primaryKey column="FAMILY_MEMBER_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="FAMILY_ROLES" numRows="0" remarks="Your organization's defined family roles" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FAMILY_ROLES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FAMILY_ROLE_ID,&#13;&#10;    src.FAMILY_ROLE_NAME,&#13;&#10;    src.IMMEDIATE_FAMILY_MEMBER,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FAMILY_ROLES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="FAMILY_ROLE_ID" nullable="false" remarks="The family role ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="FAMILY_ROLE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FAMILY_MEMBERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FAMILY_ROLE_NAME" nullable="true" remarks="The family role name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="IMMEDIATE_FAMILY_MEMBER" nullable="true" remarks="Whether this family role is for an immediate family member (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="IS_RETIRED" nullable="true" remarks="Whether this family role has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="FAMILY_ROLE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="FINANCIAL_GL_TRANSACTIONS" numRows="0" remarks="DEPRECATED - REPLACED BY dbo.RECEIPT_GL_POSTINGS" schema="dbo" type="VIEW" viewSql="&#13;&#10;&#13;&#10;CREATE VIEW dbo.FINANCIAL_GL_TRANSACTIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.GL_LEDGER_ID,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS ACCOUNT_NUMBER,&#13;&#10;    src.AMOUNT,&#13;&#10;    rd1.CHARGE_ID,&#13;&#10;    (CASE&#13;&#10;        WHEN gl1.SYSTEM_ACCOUNT = 13 THEN 'Cash Payment Rounding'&#13;&#10;        ELSE rd1.DESCRIPTION&#13;&#10;        END) AS CHARGE_NAME,&#13;&#10;    src.TRANSACTION_SITE_ID,&#13;&#10;    si2.SITE_NAME AS TRANSACTION_SITE,&#13;&#10;    src.REVENUE_SITE_ID,&#13;&#10;    si1.SITE_NAME AS REVENUE_SITE,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.TRANSACTION_DATE_TIME,&#13;&#10;    CAST(CAST(src.TRANSACTION_DATE_TIME AS DATE) AS DATETIME) AS TRANSACTION_DATE,&#13;&#10;    FORMAT(rh1.RECEIPT_NUMBER, '0.0000') AS RECEIPT_NUMBER,&#13;&#10;    tr1.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    tr1.PACKAGE_ID,&#13;&#10;    tr1.PROGRAM_ID,&#13;&#10;    tr1.FACILITY_ID AS RESOURCE_ID,&#13;&#10;    tr1.PERMIT_ID,&#13;&#10;    pe1.PERMIT_NUMBER,&#13;&#10;    ac1.SEASON_ID,&#13;&#10;    se2.SEASON_NAME AS PARENT_SEASON,&#13;&#10;    ac1.CHILD_SEASON_ID,&#13;&#10;    cs1.CHILD_SEASON_NAME AS CHILD_SEASON,&#13;&#10;    tr1.SESSION_ID,&#13;&#10;    se1.SESSION_NAME,&#13;&#10;    tr1.POSPRODUCT_ID,&#13;&#10;    ppr.PRODUCT_NAME,&#13;&#10;    tr1.CAMPAIGN_ID,&#13;&#10;    ca1.CAMPAIGN_NAME,&#13;&#10;    ISNULL(tr1.CUSTOMER_ID, rp1.CUSTOMER_ID) AS CUSTOMER_ID,&#13;&#10;    ISNULL(cu1.CUSTOMER_FIRST_NAME, cu2.CUSTOMER_FIRST_NAME) AS CUSTOMER_FIRST_NAME,&#13;&#10;    ISNULL(cu1.CUSTOMER_LAST_NAME, cu2.CUSTOMER_LAST_NAME) AS CUSTOMER_LAST_NAME,&#13;&#10;    ISNULL(tr1.COMPANY_ID, rp1.COMPANY_ID) AS COMPANY_ID,&#13;&#10;    ISNULL(co1.COMPANY_NAME, co2.COMPANY_NAME) AS COMPANY_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    tr1.STAFF_NOTES,&#13;&#10;    rd1.CUSTOMER_SCHOLARSHIP_ID,&#13;&#10;    src.EXPENSE_ID,&#13;&#10;    tr1.CREDIT_CARD_AMOUNT AS CC_ECP_DC_AMOUNT,&#13;&#10;    tr1.TRANSACTION_FEE_AMOUNT AS TRANSACTION_FEE,&#13;&#10;    tr1.CREDIT_CARD_FEE_AMOUNT AS CREDIT_CARD_FEE,&#13;&#10;    (tr1.CONVENIENCE_FEE_AMOUNT + tr1.CONVENIENCE_FEE_ABSORBED_AMOUNT) AS CONVENIENCE_FEE,&#13;&#10;    'No' AS VOIDED,&#13;&#10;    src.GL_LEDGER_ID AS ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.RECEIPT_GL_POSTINGS src&#13;&#10;    LEFT JOIN hub.RECEIPT_DETAILS rd1 ON (rd1.ORG_ID = src.ORG_ID AND rd1.RECEIPT_DETAIL_ID = src.RECEIPT_DETAIL_ID)&#13;&#10;    LEFT JOIN hub.TRANSACTIONS tr1 ON (tr1.ORG_ID = src.ORG_ID AND tr1.TRANSACTION_ID = src.TRANSACTION_ID)&#13;&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON (rh1.ORG_ID = src.ORG_ID AND rh1.RECEIPT_HEADER_ID = src.RECEIPT_HEADER_ID)&#13;&#10;    LEFT JOIN hub.RECEIPT_PAYMENTS rp1 ON (rp1.ORG_ID = src.ORG_ID AND rp1.RECEIPT_PAYMENT_ID = src.RECEIPT_PAYMENT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.ORG_ID = src.ORG_ID AND gl1.GLACCOUNT_ID = src.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.REVENUE_SITE_ID)&#13;&#10;    LEFT JOIN hub.SITES si2 ON (si2.ORG_ID = src.ORG_ID AND si2.SITE_ID = src.TRANSACTION_SITE_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.PERMITS pe1 ON (pe1.ORG_ID = tr1.ORG_ID AND pe1.PERMIT_ID = tr1.PERMIT_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON (ac1.ORG_ID = tr1.ORG_ID AND ac1.ACTIVITY_ID = tr1.ACTIVITY_ID)&#13;&#10;    LEFT JOIN hub.CAMPAIGNS ca1 ON (ca1.ORG_ID = tr1.ORG_ID AND ca1.CAMPAIGN_ID = tr1.CAMPAIGN_ID)&#13;&#10;    LEFT JOIN hub.POS_PRODUCTS ppr ON (ppr.ORG_ID = tr1.ORG_ID AND ppr.POSPRODUCT_ID = tr1.POSPRODUCT_ID)&#13;&#10;    LEFT JOIN hub.SESSIONS se1 ON (se1.ORG_ID = tr1.ORG_ID AND se1.SESSION_ID = tr1.SESSION_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.ORG_ID = tr1.ORG_ID AND co1.COMPANY_ID = tr1.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = tr1.ORG_ID AND cu1.CUSTOMER_ID = tr1.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co2 ON (co2.ORG_ID = rp1.ORG_ID AND co2.COMPANY_ID = rp1.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu2 ON (cu2.ORG_ID = rp1.ORG_ID AND cu2.CUSTOMER_ID = rp1.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.SEASONS se2 ON (se2.ORG_ID = ac1.ORG_ID AND se2.SEASON_ID = ac1.SEASON_ID)&#13;&#10;    LEFT JOIN hub.CHILD_SEASONS cs1 ON (cs1.ORG_ID = ac1.ORG_ID AND cs1.CHILD_SEASON_ID = ac1.CHILD_SEASON_ID)&#13;&#10;WHERE&#13;&#10;    src.VOIDED = 0;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="GL_LEDGER_ID" nullable="false" remarks="GL ledger ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="GLACCOUNT_ID" nullable="true" remarks="GL account ID." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ACCOUNT_NAME" nullable="true" remarks="GL account name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACCOUNT_NUMBER" nullable="true" remarks="GL account number" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="4" name="AMOUNT" nullable="true" remarks="Total charged amount for the transaction" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CHARGE_ID" nullable="true" remarks="The ID of the related charge record" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CHARGE_NAME" nullable="true" remarks="Shows the receipt charge name" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="TRANSACTION_SITE_ID" nullable="true" remarks="ID of the transaction site" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="TRANSACTION_SITE" nullable="true" remarks="Name of the transaction site" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="REVENUE_SITE_ID" nullable="true" remarks="ID of the site where the revenue is recognized" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="REVENUE_SITE" nullable="true" remarks="Name of the site where the revenue is recognized" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="WORKSTATION_ID" nullable="true" remarks="ID of the workstation where the transaction occurred" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="WORKSTATION_NAME" nullable="true" remarks="Name of the workstation where the transaction occurred" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="TRANSACTION_DATE_TIME" nullable="true" remarks="Transaction date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="14" name="TRANSACTION_DATE" nullable="true" remarks="Transaction date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="RECEIPT_NUMBER" nullable="true" remarks="Number of the receipt for the transaction" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ACTIVITY_ID" nullable="true" remarks="If this transaction relates to an activity, then this field displays the activity ID, otherwise this is hidden." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ACTIVITY_NUMBER" nullable="true" remarks="If this transaction relates to an activity, then this field displays the activity number, otherwise this is hidden." size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="PACKAGE_ID" nullable="true" remarks="If this transaction relates to a membership package, then this field displays the package ID, otherwise this is hidden." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="PROGRAM_ID" nullable="true" remarks="If this transaction relates to a FlexReg program, then this field displays the program ID, otherwise this is hidden." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="RESOURCE_ID" nullable="true" remarks="If this transaction relates to a resource reservation, then this field displays the resource ID, otherwise this is hidden." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="PERMIT_ID" nullable="true" remarks="Permit ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="PERMIT_NUMBER" nullable="true" remarks="If this transaction relates to a resource reservation, then this field displays the permit number" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="SEASON_ID" nullable="true" remarks="If this transaction relates to an activity, then this field displays the ID of the parent season, otherwise NULL." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="PARENT_SEASON" nullable="true" remarks="If this transaction relates to an activity, then this field displays the parent season, otherwise this is hidden." size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="CHILD_SEASON_ID" nullable="true" remarks="If this transaction relates to an activity, then this field displays the ID of the child season, otherwise NULL." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="CHILD_SEASON" nullable="true" remarks="If this transaction relates to an activity, then this field displays the child season, otherwise this is hidden." size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="SESSION_ID" nullable="true" remarks="If the transaction relates to any program sessions, then this field displays ID of the session, otherwise NULL." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="SESSION_NAME" nullable="true" remarks="If the transaction relates to any program sessions, then this field displays names of the sessions, otherwise this is hidden." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="POSPRODUCT_ID" nullable="true" remarks="If this transaction relates to a POS product sale, then this field displays the product ID, otherwise NULL." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="PRODUCT_NAME" nullable="true" remarks="The name of the POS product." size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="CAMPAIGN_ID" nullable="true" remarks="Campaign ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="CAMPAIGN_NAME" nullable="true" remarks="Campaign name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="CUSTOMER_ID" nullable="true" remarks="Customer ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="CUSTOMER_FIRST_NAME" nullable="true" remarks="Customer's first name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="CUSTOMER_LAST_NAME" nullable="true" remarks="Customer's last name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="COMPANY_ID" nullable="true" remarks="Company ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="COMPANY_NAME" nullable="true" remarks="Company name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user. Details will be in the table System_Users" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the system user" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="STAFF_NOTES" nullable="true" remarks="Staff notes added at the time of transaction" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="CUSTOMER_SCHOLARSHIP_ID" nullable="true" remarks="Customer scholarship ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="EXPENSE_ID" nullable="true" remarks="The ID of the expense that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="43" name="CC_ECP_DC_AMOUNT" nullable="true" remarks="Amount paid by credit card/ ECP/ debit card" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="44" name="TRANSACTION_FEE" nullable="true" remarks="Transaction fee amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="45" name="CREDIT_CARD_FEE" nullable="true" remarks="Credit card fee amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="46" name="CONVENIENCE_FEE" nullable="true" remarks="Convenience fee amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="VOIDED" nullable="false" remarks="Whether the GL posting has been voided (Yes/No)" size="2" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="49" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="FROM_EMAIL_ADDRESSES" numRows="0" remarks="Your organization?s defined from email addresses to be used in outgoing emails" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.FROM_EMAIL_ADDRESSES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FROM_EMAIL_ADDRESS_ID,&#13;&#10;    src.FROM_EMAIL_ADDRESS_NAME,&#13;&#10;    src.EMAIL_ADDRESS,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.IS_PHONE_NUMBER,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FROM_EMAIL_ADDRESSES src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="FROM_EMAIL_ADDRESS_ID" nullable="false" remarks="The from email address ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FROM_EMAIL_ADDRESS_NAME" nullable="true" remarks="The from email address name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="EMAIL_ADDRESS" nullable="true" remarks="The email address to be used as the from address in outgoing emails" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_ID" nullable="true" remarks="The ID of the site that the from email address is specific to (NULL for all sites)" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SITE_NAME" nullable="true" remarks="The name of the site that the from email address is specific to (NULL for all sites)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="IS_PHONE_NUMBER" nullable="true" remarks="Whether the email address is a phone number for SMS messages" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="FROM_EMAIL_ADDRESS_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="FUNDS" numRows="0" remarks="Your organization's defined funds" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.FUNDS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FUND_ID,&#13;&#10;    src.FUND_NAME,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FUNDS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="FUND_ID" nullable="false" remarks="The fund ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="FUND_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FUND_NAME" nullable="true" remarks="The fund name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="IS_RETIRED" nullable="true" remarks="Whether this fund has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="3" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="FUND_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="GENDERS" numRows="0" remarks="Your organization's defined genders" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.GENDERS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.GENDER_ID,&#13;&#10;    src.GENDER_NAME,&#13;&#10;    src.GENDER_SHORT_NAME,&#13;&#10;    src.GENDER_NAME_PLURAL,&#13;&#10;    src.IS_ENABLED,&#13;&#10;    src.GENDER_INDEX,&#13;&#10;    src.GENDER_ORDER,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.GENDERS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="GENDER_ID" nullable="false" remarks="The gender ID (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="GENDER_NAME" nullable="true" remarks="The gender name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="GENDER_SHORT_NAME" nullable="true" remarks="The gender short name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="GENDER_NAME_PLURAL" nullable="true" remarks="The plural form of the gender name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="IS_ENABLED" nullable="true" remarks="Whether this gender is enabled for use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="GENDER_INDEX" nullable="true" remarks="The index of this gender for linking to other records" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_DIVISIONS"/>
            <child catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_ROOMS"/>
            <child catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
            <child catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
            <child catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAM_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="GENDER_ORDER" nullable="true" remarks="The display order of this gender" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="GENDER_ID" sequenceNumberInPK="1"/>
         <primaryKey column="GENDER_INDEX" sequenceNumberInPK="2"/>
      </table>
      <table catalog="ActiveHub" name="GEOGRAPHIC_AREAS" numRows="0" remarks="Your organization's defined geographic areas" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.GEOGRAPHIC_AREAS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.GEOGRAPHIC_AREA_ID,&#13;&#10;    src.GEOGRAPHIC_AREA_NAME,&#13;&#10;    src.IS_RESIDENT,&#13;&#10;    src.HIDE_ON_INTERNET,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.GEOGRAPHIC_AREAS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="GEOGRAPHIC_AREA_ID" nullable="false" remarks="The geographic area ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="GEOGRAPHIC_AREA_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CENTERS"/>
            <child catalog="ActiveHub" column="GEOGRAPHIC_AREA_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
            <child catalog="ActiveHub" column="GEOGRAPHIC_AREA_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
            <child catalog="ActiveHub" column="GEOGRAPHIC_AREA_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
            <child catalog="ActiveHub" column="GEOGRAPHIC_AREA_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="GEOGRAPHIC_AREA_NAME" nullable="true" remarks="The geographic area name" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="IS_RESIDENT" nullable="true" remarks="Whether customers assigned this geographic area are considered to be residents (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether this geographic area should be hidden from use online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="IS_RETIRED" nullable="true" remarks="Whether this geographic area has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="GEOGRAPHIC_AREA_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="GIFT_CARD_TYPE_SITES" numRows="0" remarks="Contains information on site restrictions for gift card types" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.GIFT_CARD_TYPE_SITES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.GIFT_CARD_TYPE_SITE_ID,&#13;&#10;    src.GIFT_CARD_TYPE_ID,&#13;&#10;    gct.GIFT_CARD_TYPE_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.GIFT_CARD_TYPE_SITES src&#13;&#10;    LEFT JOIN hub.GIFT_CARD_TYPES gct ON gct.GIFT_CARD_TYPE_ID = src.GIFT_CARD_TYPE_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.SITE_ID = src.SITE_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="GIFT_CARD_TYPE_SITE_ID" nullable="true" remarks="Gift card type site ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="GIFT_CARD_TYPE_ID" nullable="true" remarks="Gift card type ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GIFT_CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GIFT_CARD_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="GIFT_CARD_TYPE_NAME" nullable="true" remarks="Gift card type name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_ID" nullable="true" remarks="Site ID that this gift card type will be available for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SITE_NAME" nullable="true" remarks="Site name that this gift card type will be available for" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="GIFT_CARD_TYPE_SITE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="GIFT_CARD_TYPES" numRows="0" remarks="Your organization's defined gift card types" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.GIFT_CARD_TYPES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.GIFT_CARD_TYPE_ID,&#13;&#10;    src.GIFT_CARD_TYPE_NAME,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.CONDITIONS_OF_USE,&#13;&#10;    src.REVENUE_GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS REVENUE_GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS REVENUE_GL_ACCOUNT_NUMBER,&#13;&#10;    src.DEFAULT_AMOUNT,&#13;&#10;    src.AMOUNT_CAN_BE_CHANGED,&#13;&#10;    src.EXPIRY_TYPE,&#13;&#10;    src.EXPIRY_DATE,&#13;&#10;    src.EXPIRY_YEARS,&#13;&#10;    src.EXPIRY_MONTHS,&#13;&#10;    src.EXPIRY_DAYS,&#13;&#10;    src.EXCLUDE_FROM_PAYMENT_PLAN,&#13;&#10;    src.AVAILABLE_FOR_ALL_SITES,&#13;&#10;    src.HIDE_ON_INTERNET,&#13;&#10;    src.NUMBERING_MODEL,&#13;&#10;    src.NUMERIC_ONLY,&#13;&#10;    src.ENFORCE_MASK,&#13;&#10;    src.MASK,&#13;&#10;    src.AMOUNT_CAN_BE_CHANGED_ONLINE,&#13;&#10;    src.MIN_SALE_AMOUNT,&#13;&#10;    src.MIN_REFILL_AMOUNT,&#13;&#10;    src.MAX_CARD_BALANCE,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.GIFT_CARD_TYPES src&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON gl1.GLACCOUNT_ID = src.REVENUE_GLACCOUNT_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="GIFT_CARD_TYPE_ID" nullable="true" remarks="Gift card type ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="GIFT_CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GIFT_CARD_TYPE_SITES"/>
            <child catalog="ActiveHub" column="GIFT_CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GIFT_CARDS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="GIFT_CARD_TYPE_NAME" nullable="true" remarks="Gift card type name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="IS_RETIRED" nullable="true" remarks="Whether the gift card type has been retired and can no longer be sold (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CONDITIONS_OF_USE" nullable="true" remarks="The conditions of use for this gift card type" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="REVENUE_GLACCOUNT_ID" nullable="true" remarks="The revenue GL account ID that sales of this gift card type should be posted to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="REVENUE_GL_ACCOUNT_NAME" nullable="true" remarks="The revenue GL account name that sales of this gift card type should be posted to" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="REVENUE_GL_ACCOUNT_NUMBER" nullable="true" remarks="The revenue GL account number that sales of this gift card type should be posted to" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="7" name="DEFAULT_AMOUNT" nullable="true" remarks="The default amount for sales of this gift card type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="AMOUNT_CAN_BE_CHANGED" nullable="true" remarks="Whether the amount of this gift card type can be modified during purchase (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="EXPIRY_TYPE" nullable="true" remarks="The type of expiration for gift cards of this type (No expiry date / Fixed expiry date / Elapsed time after purchase)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="EXPIRY_DATE" nullable="true" remarks="The fixed expiry date for gift cards of this type, if set to a fixed date for expiration" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="EXPIRY_YEARS" nullable="true" remarks="The number of years after purchase that gift cards of this type will expire, if set to an elapsed time for expiration" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="EXPIRY_MONTHS" nullable="true" remarks="The number of months after purchase that gift cards of this type will expire, if set to an elapsed time for expiration" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="EXPIRY_DAYS" nullable="true" remarks="The number of days after purchase that gift cards of this type will expire, if set to an elapsed time for expiration" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="EXCLUDE_FROM_PAYMENT_PLAN" nullable="true" remarks="Whether the gift card purchase amount should be excluded from any payment plan created for receipt at time of sale (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="AVAILABLE_FOR_ALL_SITES" nullable="true" remarks="Whether the gift card type should be available for sale from all sites (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether the gift card type should be excluded from sales online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="NUMBERING_MODEL" nullable="true" remarks="The numbering model that should be employed during sale of gift cards of this type (Use System Generated Numbers / Use External Numbers)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="NUMERIC_ONLY" nullable="true" remarks="Whether only numeric digits and decimal points should be allowed when entering the gift card number (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ENFORCE_MASK" nullable="true" remarks="Whether a number format mask should be enforced for any manually entered gift card numbers (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="MASK" nullable="true" remarks="The number format mask for any manually entered gift card numbers" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="AMOUNT_CAN_BE_CHANGED_ONLINE" nullable="true" remarks="Whether the amount of this gift card type can be modified during online purchase (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="22" name="MIN_SALE_AMOUNT" nullable="true" remarks="The minimum original amount that this gift card type can be purchased for" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="23" name="MIN_REFILL_AMOUNT" nullable="true" remarks="The minimum refill amount that this gift card type can be purchased for" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="24" name="MAX_CARD_BALANCE" nullable="true" remarks="The maximum balance that can be loaded onto a gift card of this type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="26" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="GIFT_CARD_TYPE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="GIFT_CARDS" numRows="0" remarks="Contains information on gift cards that have been sold" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.GIFT_CARDS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.GIFT_CARD_ID,&#13;&#10;    src.GIFT_CARD_TYPE_ID,&#13;&#10;    gct.GIFT_CARD_TYPE_NAME,&#13;&#10;    src.GIFT_CARD_NUMBER,&#13;&#10;    src.GIFT_CARD_STATUS,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME) AS CUSTOMER_NAME,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.ISSUED_BY_SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS ISSUED_BY_SYSTEM_USER_NAME,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.PURCHASED_AMOUNT,&#13;&#10;    src.REDEEMED_AMOUNT,&#13;&#10;    src.REFILLED_AMOUNT,&#13;&#10;    src.AVAILABLE_AMOUNT,&#13;&#10;    src.SOLD_DATE_TIME,&#13;&#10;    CAST(src.SOLD_DATE_TIME AS DATE) AS SOLD_DATE_ONLY,&#13;&#10;    src.LAST_USED_DATE_TIME,&#13;&#10;    CAST(src.LAST_USED_DATE_TIME AS DATE) AS LAST_USED_DATE_ONLY,&#13;&#10;    src.EXPIRY_DATE,&#13;&#10;    src.LIABILITY_GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS LIABILITY_GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS LIABILITY_GL_ACCOUNT_NUMBER,&#13;&#10;    src.NOTES,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.GIFT_CARDS src&#13;&#10;    LEFT JOIN hub.GIFT_CARD_TYPES gct ON gct.GIFT_CARD_TYPE_ID = src.GIFT_CARD_TYPE_ID&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.COMPANY_ID = src.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.SYSTEMUSER_ID = src.ISSUED_BY_SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON gl1.GLACCOUNT_ID = src.LIABILITY_GLACCOUNT_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="GIFT_CARD_ID" nullable="true" remarks="Gift card ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="GIFT_CARD_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="GIFT_CARD_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="GIFT_CARD_TYPE_ID" nullable="true" remarks="Gift card type ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GIFT_CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GIFT_CARD_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="GIFT_CARD_TYPE_NAME" nullable="true" remarks="Gift card type name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="GIFT_CARD_NUMBER" nullable="true" remarks="The number of the gift card" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GIFT_CARD_STATUS" nullable="true" remarks="The status of the gift card (New / Pending / Active / Voided / Refunded)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMER_ID" nullable="true" remarks="The ID of the customer who purchased the gift card" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOMER_NAME" nullable="false" remarks="The name of the customer who purchased the gift card" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="COMPANY_ID" nullable="true" remarks="The ID of the company who purchased the gift card" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="COMPANY_NAME" nullable="true" remarks="The name of the company who purchased the gift card" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ISSUED_BY_SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who sold the gift card" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ISSUED_BY_SYSTEM_USER_NAME" nullable="false" remarks="The name of the system user who sold the gift card" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="WORKSTATION_ID" nullable="true" remarks="The ID of the workstation that the gift card was sold at" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="WORKSTATION_NAME" nullable="true" remarks="The name of the workstation that the gift card was sold at" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="13" name="PURCHASED_AMOUNT" nullable="true" remarks="The original purchase amount of the gift card" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="14" name="REDEEMED_AMOUNT" nullable="true" remarks="The amount that has been redeemed from this gift card" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="15" name="REFILLED_AMOUNT" nullable="true" remarks="The total refill amount that has been added to this gift card" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="16" name="AVAILABLE_AMOUNT" nullable="true" remarks="The current outstanding balance of this gift card" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="17" name="SOLD_DATE_TIME" nullable="true" remarks="The date and time that the gift card was purchased" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="SOLD_DATE_ONLY" nullable="true" remarks="The date that the gift card was purchased (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="19" name="LAST_USED_DATE_TIME" nullable="true" remarks="The date and time that the gift card was last used" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="LAST_USED_DATE_ONLY" nullable="true" remarks="The date that the gift card was last used (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="EXPIRY_DATE" nullable="true" remarks="The expiry date of the gift card" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="LIABILITY_GLACCOUNT_ID" nullable="true" remarks="The GL account ID that will be posted to when the gift card is redeemed" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="LIABILITY_GL_ACCOUNT_NAME" nullable="true" remarks="The GL account ID that will be posted to when the gift card is redeemed" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="LIABILITY_GL_ACCOUNT_NUMBER" nullable="true" remarks="The GL account ID that will be posted to when the gift card is redeemed" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="NOTES" nullable="true" remarks="Notes that are applicable to the gift card" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="27" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="GIFT_CARD_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="GLACCOUNTS" numRows="0" remarks="Master table showing GL accounts details" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.GLACCOUNTS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    src.SITE_ID,&#13;&#10;    src.ACCOUNTNAME,&#13;&#10;    src.ACCOUNTNUMBER,&#13;&#10;    src.ACCOUNT_TYPE,&#13;&#10;    src.SYSTEM_ACCOUNT,&#13;&#10;    src.SYSTEM_ACCOUNT_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ACTIVATED,&#13;&#10;    src.RETIRED,&#13;&#10;    src.ACCOUNTTYPE,&#13;&#10;    src.DEPARTMENT_ID,&#13;&#10;&#9;d.DESCRIPTION AS DEPARTMENT_DESCRIPTION,&#13;&#10;&#9;d.IS_RETIRED AS DEPARTMENT_RETIRED,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.GLACCOUNT_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.GLACCOUNTS src&#13;&#10;&#9;LEFT JOIN hub.DEPARTMENTS d ON (src.DEPARTMENT_ID = d.DEPARTMENT_ID AND src.ORG_ID = d.ORG_ID);&#13;&#10;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="GLACCOUNT_ID" nullable="false" remarks="GL account ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="DEFAULT_EXPENSE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_CATEGORIES"/>
            <child catalog="ActiveHub" column="DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_CATEGORIES"/>
            <child catalog="ActiveHub" column="DEFAULT_REVENUE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_CATEGORIES"/>
            <child catalog="ActiveHub" column="DEFAULT_EXPENSE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_DEPARTMENTS"/>
            <child catalog="ActiveHub" column="DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_DEPARTMENTS"/>
            <child catalog="ActiveHub" column="DEFAULT_REVENUE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_DEPARTMENTS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_FEES"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CAMPAIGNS"/>
            <child catalog="ActiveHub" column="OVER_CREDIT_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CASH_SUMMARY_SHEET_LAYOUTS"/>
            <child catalog="ActiveHub" column="OVER_DEBIT_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CASH_SUMMARY_SHEET_LAYOUTS"/>
            <child catalog="ActiveHub" column="SHORT_CREDIT_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CASH_SUMMARY_SHEET_LAYOUTS"/>
            <child catalog="ActiveHub" column="SHORT_DEBIT_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CASH_SUMMARY_SHEET_LAYOUTS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCHES"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPONS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOM_PAYMENT_TYPES"/>
            <child catalog="ActiveHub" column="DEFERRED_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="REVENUE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="REVENUE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GIFT_CARD_TYPES"/>
            <child catalog="ActiveHub" column="LIABILITY_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GIFT_CARDS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLOBAL_DISCOUNTS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_FEES"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_FEES"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS_CENTER_QUANTITY"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_FEES"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAIL_PAYMENTS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_GL_POSTINGS"/>
            <child catalog="ActiveHub" column="PAYMENT_GL_ACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="DEFAULT_EXPENSE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SCHEDULE_TYPES"/>
            <child catalog="ActiveHub" column="DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SCHEDULE_TYPES"/>
            <child catalog="ActiveHub" column="TAX_GLACCOUNT_ID_1" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
            <child catalog="ActiveHub" column="TAX_GLACCOUNT_ID_2" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
            <child catalog="ActiveHub" column="TAX_GLACCOUNT_ID_3" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
            <child catalog="ActiveHub" column="TAX_GLACCOUNT_ID_4" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
            <child catalog="ActiveHub" column="TAX_GLACCOUNT_ID_5" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
            <child catalog="ActiveHub" column="TAX_GLACCOUNT_ID_6" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
            <child catalog="ActiveHub" column="TAX_GLACCOUNT_ID_7" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
            <child catalog="ActiveHub" column="TAX_GLACCOUNT_ID_8" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STANDARD_CHARGES"/>
            <child catalog="ActiveHub" column="ACCOUNTS_RECEIVABLE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="DEFERRED_RECEIVABLES_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="DEFERRED_REVENUE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="FUTURE_RECEIVABLES_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="PAYMENT_CASH_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="PAYMENT_CHECK_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="PAYMENT_CREDIT_CARD_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="PAYMENT_CREDIT_MEMO_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="PAYMENT_DEBIT_CARD_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="PAYMENT_ECP_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="REFUND_CLEARING_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="EARLY_REGISTRATION_DISCOUNT_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="USAGE_FEES"/>
            <child catalog="ActiveHub" column="FEE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="USAGE_FEES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_ID" nullable="true" remarks="The site associated to the GL account" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACCOUNTNAME" nullable="false" remarks="GL account name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACCOUNTNUMBER" nullable="false" remarks="GL account number" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACCOUNT_TYPE" nullable="false" remarks="Type name of the GL account" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SYSTEM_ACCOUNT" nullable="true" remarks="System GL account number" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SYSTEM_ACCOUNT_NAME" nullable="true" remarks="System GL account name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="LAST_SYNC_TIME" nullable="true" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ACTIVATED" nullable="true" remarks="Gives activation status of the GL Account" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="RETIRED" nullable="true" remarks="If the GL Account is retired or not" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ACCOUNTTYPE" nullable="true" remarks="Type ID of the GL account" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DEPARTMENT_ID" nullable="true" remarks="The department ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="DEPARTMENT_DESCRIPTION" nullable="true" remarks="The department name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="DEPARTMENT_RETIRED" nullable="true" remarks="Whether this department has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="source_id" nullable="false" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="GLACCOUNT_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="GLOBAL_DISCOUNT_QUALIFICATIONS" numRows="0" remarks="Master table containing defined global discount qualifications" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.GLOBAL_DISCOUNT_QUALIFICATIONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CHARGE_QUALIFICATION_LINK_ID,&#13;&#10;    src.QUALIFICATION_TYPE_ID,&#13;&#10;    src.QUALIFICATION_TYPE,&#13;&#10;    src.GLOBAL_DISCOUNT_ID,&#13;&#10;    gd1.GLOBAL_DISCOUNT_NAME,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    src.ACTIVITY_CATEGORY_ID,&#13;&#10;    acat.ACTIVITY_CATEGORY_NAME,&#13;&#10;    src.ACTIVITY_SUB_CATEGORY_ID,&#13;&#10;    ascat.ACTIVITY_SUB_CATEGORY_NAME,&#13;&#10;    src.ACTIVITY_SITE_ID,&#13;&#10;    si1.SITE_NAME AS ACTIVITY_SITE_NAME,&#13;&#10;    src.ACTIVITY_DEPARTMENT_ID,&#13;&#10;    adep.ACTIVITY_DEPARTMENT_NAME,&#13;&#10;    src.PROGRAM_ID,&#13;&#10;    pr1.PROGRAM_NAME,&#13;&#10;    src.PROGRAM_TYPE_ID,&#13;&#10;    pt1.PROGRAM_TYPE_NAME,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    src.PACKAGE_CATEGORY_ID,&#13;&#10;    pc1.CATEGORY_NAME AS PACKAGE_CATEGORY_NAME,&#13;&#10;    src.MEMBER_PREFILL_PACKAGE_ID,&#13;&#10;    pa2.PACKAGE_NAME AS MEMBER_PREFILL_PACKAGE_NAME,&#13;&#10;    src.MEMBER_PREFILL_PACKAGE_CATEGORY_ID,&#13;&#10;    pc2.CATEGORY_NAME AS MEMBER_PREFILL_PACKAGE_CATEGORY_NAME,&#13;&#10;    src.PRODUCT_ID,&#13;&#10;    ppr.PRODUCT_NAME,&#13;&#10;    src.PRODUCT_DEPARTMENT_ID,&#13;&#10;    pd1.PRODUCT_DEPARTMENT_NAME,&#13;&#10;    src.PRODUCT_CLASS_ID,&#13;&#10;    pc3.PRODUCT_CLASS_NAME,&#13;&#10;    src.PRODUCT_SUB_CLASS_ID,&#13;&#10;    psc1.PRODUCT_SUBCLASS_NAME AS PRODUCT_SUB_CLASS_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM&#13;&#10;    hub.CHARGE_QUALIFICATION_LINKS src&#13;&#10;    LEFT JOIN hub.GLOBAL_DISCOUNTS gd1 ON gd1.GLOBAL_DISCOUNT_ID = src.GLOBAL_DISCOUNT_ID&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON ac1.ACTIVITY_ID = src.ACTIVITY_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.SITE_ID = src.ACTIVITY_SITE_ID&#13;&#10;    LEFT JOIN hub.PROGRAMS pr1 ON pr1.PROGRAM_ID = src.PROGRAM_ID&#13;&#10;    LEFT JOIN hub.PACKAGES pa1 ON pa1.PACKAGE_ID = src.PACKAGE_ID&#13;&#10;    LEFT JOIN hub.PACKAGE_CATEGORIES pc1 ON pc1.PACKAGE_CATEGORY_ID = src.PACKAGE_CATEGORY_ID&#13;&#10;    LEFT JOIN hub.PACKAGES pa2 ON pa2.PACKAGE_ID = src.MEMBER_PREFILL_PACKAGE_ID&#13;&#10;    LEFT JOIN hub.PACKAGE_CATEGORIES pc2 ON pc2.PACKAGE_CATEGORY_ID = src.MEMBER_PREFILL_PACKAGE_CATEGORY_ID&#13;&#10;    LEFT JOIN hub.POS_PRODUCTS ppr ON ppr.POSPRODUCT_ID = src.PRODUCT_ID&#13;&#10;    LEFT JOIN hub.PRODUCT_DEPARTMENTS pd1 ON (pd1.PRODUCT_DEPARTMENT_ID = src.PRODUCT_DEPARTMENT_ID)&#13;&#10;    LEFT JOIN hub.PROGRAM_TYPES pt1 ON (pt1.PROGRAM_TYPE_ID = src.PROGRAM_TYPE_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_CATEGORIES acat ON (acat.ACTIVITY_CATEGORY_ID = src.ACTIVITY_CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_SUB_CATEGORIES ascat ON (ascat.ACTIVITY_SUB_CATEGORY_ID = src.ACTIVITY_SUB_CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_DEPARTMENTS adep ON (adep.ACTIVITY_DEPARTMENT_ID = src.ACTIVITY_DEPARTMENT_ID)&#13;&#10;    LEFT JOIN hub.PRODUCT_CLASSES pc3 ON (pc3.PRODUCT_CLASS_ID = src.PRODUCT_CLASS_ID)&#13;&#10;    LEFT JOIN hub.PRODUCT_SUBCLASSES psc1 ON (psc1.PRODUCT_SUBCLASS_ID = src.PRODUCT_SUB_CLASS_ID)&#13;&#10;WHERE&#13;&#10;    src.QUALIFICATION_TYPE_ID = 0; -- KeyType.global_discount = 0&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CHARGE_QUALIFICATION_LINK_ID" nullable="true" remarks="Charge qualification link ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="QUALIFICATION_TYPE_ID" nullable="true" remarks="Qualification type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="QUALIFICATION_TYPE" nullable="true" remarks="Qualification type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GLOBAL_DISCOUNT_ID" nullable="true" remarks="Global discount ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="GLOBAL_DISCOUNT_NAME" nullable="true" remarks="Global discount name" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVITY_ID" nullable="true" remarks="Activity ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVITY_NAME" nullable="true" remarks="Activity name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVITY_CATEGORY_ID" nullable="true" remarks="Activity category ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVITY_CATEGORY_NAME" nullable="true" remarks="Activity category name" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ACTIVITY_SUB_CATEGORY_ID" nullable="true" remarks="Activity subcategory ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVITY_SUB_CATEGORY_NAME" nullable="true" remarks="Activity subcategory name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ACTIVITY_SITE_ID" nullable="true" remarks="Activity site ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ACTIVITY_SITE_NAME" nullable="true" remarks="Activity site name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ACTIVITY_DEPARTMENT_ID" nullable="true" remarks="Activity department ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ACTIVITY_DEPARTMENT_NAME" nullable="true" remarks="Activity department name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="PROGRAM_ID" nullable="true" remarks="Program ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="PROGRAM_NAME" nullable="true" remarks="Program name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="PROGRAM_TYPE_ID" nullable="true" remarks="Program type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="PROGRAM_TYPE_NAME" nullable="true" remarks="Program type name" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="PACKAGE_ID" nullable="true" remarks="Package ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="PACKAGE_NAME" nullable="true" remarks="Package name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package category ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package category name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="MEMBER_PREFILL_PACKAGE_ID" nullable="true" remarks="Member prefill package ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="MEMBER_PREFILL_PACKAGE_NAME" nullable="true" remarks="Member prefill package name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="MEMBER_PREFILL_PACKAGE_CATEGORY_ID" nullable="true" remarks="Member prefill package category ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="MEMBER_PREFILL_PACKAGE_CATEGORY_NAME" nullable="true" remarks="Member prefill package category name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="PRODUCT_ID" nullable="true" remarks="Product ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="PRODUCT_NAME" nullable="true" remarks="Product name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="PRODUCT_DEPARTMENT_ID" nullable="true" remarks="Product department ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="PRODUCT_DEPARTMENT_NAME" nullable="true" remarks="Product department name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="PRODUCT_CLASS_ID" nullable="true" remarks="Product class ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="PRODUCT_CLASS_NAME" nullable="true" remarks="Product class name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="PRODUCT_SUB_CLASS_ID" nullable="true" remarks="Product subclass ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="PRODUCT_SUB_CLASS_NAME" nullable="true" remarks="Product subclass name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="36" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="GLOBAL_DISCOUNTS" numRows="0" remarks="Master table showing defined global discount data" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.GLOBAL_DISCOUNTS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.GLOBAL_DISCOUNT_ID,&#13;&#10;    src.GLOBAL_DISCOUNT_NAME,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.SYSTEM_GL_ACCOUNT_PACKAGE_ID,&#13;&#10;    sgap.SYSTEM_GL_ACCOUNT_PACKAGE_NAME AS SYSTEM_GL_ACCOUNT_PACKAGE,&#13;&#10;    src.DISCOUNT_TYPE,&#13;&#10;    src.DISCOUNT_AMOUNT,&#13;&#10;    src.DISCOUNT_PERCENT,&#13;&#10;    src.DISCOUNT_ORDER,&#13;&#10;    src.DISCOUNT_GROUP_NUMBER,&#13;&#10;    src.EXCLUDE_OTHER_DISCOUNTS_IN_GROUP,&#13;&#10;    src.PREFILL_CONDITION,&#13;&#10;    src.APPLIES_TO_ALL_ACTIVITIES,&#13;&#10;    src.ACTIVITY_GROUP_NUMBER,&#13;&#10;    src.ACTIVITY_DISCOUNT_AMOUNT,&#13;&#10;    src.ACTIVITY_DISCOUNT_PERCENT,&#13;&#10;    src.APPLIES_TO_ALL_PROGRAMS,&#13;&#10;    src.PROGRAM_GROUP_NUMBER,&#13;&#10;    src.PROGRAM_DISCOUNT_AMOUNT,&#13;&#10;    src.PROGRAM_DISCOUNT_PERCENT,&#13;&#10;    src.APPLIES_TO_ALL_PACKAGES,&#13;&#10;    src.MEMBERSHIP_DISCOUNT_AMOUNT,&#13;&#10;    src.MEMBERSHIP_DISCOUNT_PERCENT,&#13;&#10;    src.APPLIES_TO_ALL_PRODUCTS,&#13;&#10;    src.PRODUCT_DISCOUNT_AMOUNT,&#13;&#10;    src.PRODUCT_DISCOUNT_PERCENT,&#13;&#10;    src.APPLY_TO_ORIGINAL_ENROLLMENT_ONLY,&#13;&#10;    src.MULTI_PERSON_APPLIES_TO_ALL,&#13;&#10;    src.MULTI_PERSON_MIN,&#13;&#10;    src.MULTI_PERSON_MAX,&#13;&#10;    src.MULTI_ACTIVITY_APPLIES_TO_ALL,&#13;&#10;    src.MULTI_ACTIVITY_MIN,&#13;&#10;    src.MULTI_ACTIVITY_MAX,&#13;&#10;    src.MULTI_SESSION_APPLIES_TO_CONCURRENT,&#13;&#10;    src.MULTI_SESSION_MIN,&#13;&#10;    src.MULTI_SESSION_MAX,&#13;&#10;    src.ACTIVATION_DATE,&#13;&#10;    src.EXPIRATION_DATE,&#13;&#10;    src.RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.GLOBAL_DISCOUNTS src&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (src.GLACCOUNT_ID = gl1.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_GL_ACCOUNT_PACKAGES sgap ON (sgap.SYSTEM_GL_ACCOUNT_PACKAGE_ID = src.SYSTEM_GL_ACCOUNT_PACKAGE_ID)&#13;&#10;WHERE src.IS_SURCHARGE = 'No';&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="GLOBAL_DISCOUNT_ID" nullable="true" remarks="Global discount ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="GLOBAL_DISCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="GLOBAL_DISCOUNT_NAME" nullable="true" remarks="Global discount name" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CHARGE_ID" nullable="true" remarks="Charge ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GLACCOUNT_ID" nullable="true" remarks="The default GL account ID to post this discount to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="GL_ACCOUNT_NAME" nullable="true" remarks="GL account name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID" nullable="true" remarks="System account package ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SYSTEM_GL_ACCOUNT_PACKAGE" nullable="true" remarks="System GL account package name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="DISCOUNT_TYPE" nullable="true" remarks="The type of discount (Amount / Percent)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="10" name="DISCOUNT_AMOUNT" nullable="true" remarks="The default discount amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="11" name="DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="DISCOUNT_ORDER" nullable="true" remarks="The order in which the discount should be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DISCOUNT_GROUP_NUMBER" nullable="true" remarks="Discount group number" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="EXCLUDE_OTHER_DISCOUNTS_IN_GROUP" nullable="true" remarks="Whether other discounts in the same group should be excluded (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="PREFILL_CONDITION" nullable="true" remarks="The prefill condition for this global discount (Never / Always / If Resident / If Non-resident / If Minor / If Senior / If Internet / If Member / If Non-member)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="APPLIES_TO_ALL_ACTIVITIES" nullable="true" remarks="Whether this discount applies to all activities (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ACTIVITY_GROUP_NUMBER" nullable="true" remarks="The specific activity group number that this discount applies to" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="18" name="ACTIVITY_DISCOUNT_AMOUNT" nullable="true" remarks="The default discount amount for activities" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="19" name="ACTIVITY_DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage for activities" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="APPLIES_TO_ALL_PROGRAMS" nullable="true" remarks="Whether this discount applies to all programs (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="PROGRAM_GROUP_NUMBER" nullable="true" remarks="The specific program group number that this discount applies to" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="22" name="PROGRAM_DISCOUNT_AMOUNT" nullable="true" remarks="The default discount amount for programs" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="23" name="PROGRAM_DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage for programs" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="APPLIES_TO_ALL_PACKAGES" nullable="true" remarks="Whether this discount applies to all membership packages (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="25" name="MEMBERSHIP_DISCOUNT_AMOUNT" nullable="true" remarks="The default discount amount for memberships" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="26" name="MEMBERSHIP_DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage for memberships" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="APPLIES_TO_ALL_PRODUCTS" nullable="true" remarks="Whether this discount applies to all POS products (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="28" name="PRODUCT_DISCOUNT_AMOUNT" nullable="true" remarks="The default discount amount for POS products" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="29" name="PRODUCT_DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage for POS products" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="APPLY_TO_ORIGINAL_ENROLLMENT_ONLY" nullable="true" remarks="Whether this discount should be applied to the original program enrollment only (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="MULTI_PERSON_APPLIES_TO_ALL" nullable="true" remarks="Whether this multi-person discount should be applied to all registrants up to the maximum (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="MULTI_PERSON_MIN" nullable="true" remarks="The minimum number of registrants for multi-person registration with this discount" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="MULTI_PERSON_MAX" nullable="true" remarks="The maximum number of registrants for multi-person registration with this discount" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="MULTI_ACTIVITY_APPLIES_TO_ALL" nullable="true" remarks="Whether this multi-activity discount should be applied to all registrations up to the maximum (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="MULTI_ACTIVITY_MIN" nullable="true" remarks="The minimum number of activities for multi-activity registration with this discount" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="MULTI_ACTIVITY_MAX" nullable="true" remarks="The maximum number of activities for multi-activity registration with this discount" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="MULTI_SESSION_APPLIES_TO_CONCURRENT" nullable="true" remarks="Whether this multi-session discount should count each concurrent session separately (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="MULTI_SESSION_MIN" nullable="true" remarks="The minimum number of sessions booked for this discount to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="MULTI_SESSION_MAX" nullable="true" remarks="The maximum number of sessions booked for this discount to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="ACTIVATION_DATE" nullable="true" remarks="The first available date for this discount" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="EXPIRATION_DATE" nullable="true" remarks="The last available date for this discount" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="RETIRED" nullable="true" remarks="Whether this global discount has been retired (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="43" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="GLOBAL_DISCOUNT_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="GLOBAL_SURCHARGES" numRows="0" remarks="Master table showing defined global surcharge data" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.GLOBAL_SURCHARGES&#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.GLOBAL_DISCOUNT_ID AS GLOBAL_SURCHARGE_ID,&#13;&#10;    src.GLOBAL_DISCOUNT_NAME AS GLOBAL_SURCHARGE_NAME,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.SYSTEM_GL_ACCOUNT_PACKAGE_ID,&#13;&#10;    sgap.SYSTEM_GL_ACCOUNT_PACKAGE_NAME AS SYSTEM_GL_ACCOUNT_PACKAGE,&#13;&#10;    src.DISCOUNT_TYPE AS SURCHARGE_TYPE,&#13;&#10;    src.DISCOUNT_AMOUNT AS SURCHARGE_AMOUNT,&#13;&#10;    src.DISCOUNT_PERCENT AS SURCHARGE_PERCENT,&#13;&#10;    src.PREFILL_CONDITION,&#13;&#10;    src.APPLIES_TO_ALL_ACTIVITIES,&#13;&#10;    src.ACTIVITY_GROUP_NUMBER,&#13;&#10;    src.ACTIVATION_DATE,&#13;&#10;    src.EXPIRATION_DATE,&#13;&#10;    src.APPLIES_TO_PRIMARY_FEE,&#13;&#10;    src.DISCOUNTABLE,&#13;&#10;    src.TAXABLE_BY_TAX_1,&#13;&#10;    src.TAXABLE_BY_TAX_2,&#13;&#10;    src.TAXABLE_BY_TAX_3,&#13;&#10;    src.TAXABLE_BY_TAX_4,&#13;&#10;    src.TAXABLE_BY_TAX_5,&#13;&#10;    src.TAXABLE_BY_TAX_6,&#13;&#10;    src.TAXABLE_BY_TAX_7,&#13;&#10;    src.TAXABLE_BY_TAX_8,&#13;&#10;    src.RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.GLOBAL_DISCOUNTS src&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (src.GLACCOUNT_ID = gl1.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_GL_ACCOUNT_PACKAGES sgap ON (sgap.SYSTEM_GL_ACCOUNT_PACKAGE_ID = src.SYSTEM_GL_ACCOUNT_PACKAGE_ID)&#13;&#10;WHERE src.IS_SURCHARGE = 'Yes';&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="GLOBAL_SURCHARGE_ID" nullable="true" remarks="Global surcharge ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="GLOBAL_SURCHARGE_NAME" nullable="true" remarks="Global surcharge name" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CHARGE_ID" nullable="true" remarks="Charge ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GLACCOUNT_ID" nullable="true" remarks="The default GL account ID to post this surcharge to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="GL_ACCOUNT_NAME" nullable="true" remarks="GL account name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID" nullable="true" remarks="System account package ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SYSTEM_GL_ACCOUNT_PACKAGE" nullable="true" remarks="System GL account package name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="SURCHARGE_TYPE" nullable="true" remarks="The type of surcharge (Amount / Percent)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="10" name="SURCHARGE_AMOUNT" nullable="true" remarks="The default surcharge amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="11" name="SURCHARGE_PERCENT" nullable="true" remarks="The default surcharge percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="PREFILL_CONDITION" nullable="true" remarks="The prefill condition for this global surcharge (Never / Always / If Resident / If Non-resident / If Minor / If Senior / If Internet / If Member / If Non-member)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="APPLIES_TO_ALL_ACTIVITIES" nullable="true" remarks="Whether this surcharge applies to all activities (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ACTIVITY_GROUP_NUMBER" nullable="true" remarks="The specific activity group number that this surcharge applies to" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ACTIVATION_DATE" nullable="true" remarks="The first available date for this surcharge" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="EXPIRATION_DATE" nullable="true" remarks="The last available date for this surcharge" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="APPLIES_TO_PRIMARY_FEE" nullable="true" remarks="Whether this surcharge is applied to the primary fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="DISCOUNTABLE" nullable="true" remarks="Whether this surcharge can be discounted (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="TAXABLE_BY_TAX_1" nullable="true" remarks="Whether tax 1 applies to this surcharge (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="TAXABLE_BY_TAX_2" nullable="true" remarks="Whether tax 2 applies to this surcharge (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="TAXABLE_BY_TAX_3" nullable="true" remarks="Whether tax 3 applies to this surcharge (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="TAXABLE_BY_TAX_4" nullable="true" remarks="Whether tax 4 applies to this surcharge (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="TAXABLE_BY_TAX_5" nullable="true" remarks="Whether tax 5 applies to this surcharge (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="TAXABLE_BY_TAX_6" nullable="true" remarks="Whether tax 6 applies to this surcharge (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="TAXABLE_BY_TAX_7" nullable="true" remarks="Whether tax 7 applies to this surcharge (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="TAXABLE_BY_TAX_8" nullable="true" remarks="Whether tax 8 applies to this surcharge (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="RETIRED" nullable="true" remarks="Whether this global surcharge has been retired (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="28" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="GRADES" numRows="0" remarks="Your organization's defined school grades" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.GRADES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.GRADE_ID,&#13;&#10;    src.GRADE_NAME,&#13;&#10;    src.MINIMUM_AGE,&#13;&#10;    src.MAXIMUM_AGE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.GRADES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="GRADE_ID" nullable="false" remarks="The grade ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="MAX_GRADE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="MIN_GRADE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="GRADE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="GRADE_NAME" nullable="true" remarks="The grade name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="MINIMUM_AGE" nullable="true" remarks="The minimum age in years for this grade" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="MAXIMUM_AGE" nullable="true" remarks="The maximum age in years for this grade" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="GRADE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="HEAD_OF_HOUSEHOLD" numRows="0" remarks="Contains family members and their assigned family head of household" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.HEAD_OF_HOUSEHOLD&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    c.CUSTOMER_ID,&#13;&#10;    fm.FAMILY_ID,&#13;&#10;    fm.FAMILY_NAME,&#13;&#10;    fm.MAIN_CONTACT AS IS_MAIN_CONTACT,&#13;&#10;    hoh_list.CUSTOMER_ID AS HOH_CUSTOMER_ID,&#13;&#10;    hoh_list.CUSTOMER_FIRST_NAME AS HOH_FIRST_NAME,&#13;&#10;    hoh_list.CUSTOMER_LAST_NAME AS HOH_LAST_NAME,&#13;&#10;    hoh_list.CUSTOMER_EMAIL AS HOH_EMAIL,&#13;&#10;    hoh_list.ADDITIONAL_EMAIL AS HOH_ADDITIONAL_EMAIL,&#13;&#10;    hoh_list.CELLPHONE AS HOH_CELLPHONE,&#13;&#10;    hoh_list.HOMEPHONE AS HOH_HOMEPHONE,&#13;&#10;    hoh_list.WORKPHONE AS HOH_WORKPHONE,&#13;&#10;    hoh_list.AGREE_RECEIVE_EMAIL AS HOH_AGREE_RECEIVE_EMAIL,&#13;&#10;    hoh_list.AGREE_RECEIVE_POSTAL_MAIL AS HOH_AGREE_RECEIVE_POSTAL_MAIL,&#13;&#10;    hoh_list.AGREE_RECEIVE_TEXT_MESSAGE AS HOH_AGREE_RECEIVE_TEXT_MESSAGE,&#13;&#10;    hoh_list.IS_CUSTOMER_EMAIL_VALID AS HOH_IS_EMAIL_VALID,&#13;&#10;    hoh_list.IS_ADDITIONAL_EMAIL_VALID AS HOH_IS_ADDITIONAL_EMAIL_VALID&#13;&#10;FROM hub.CUSTOMERS c&#13;&#10;JOIN hub.FAMILY_MEMBERS fm ON c.CUSTOMER_ID = fm.CUSTOMER_ID&#13;&#10;LEFT JOIN (&#13;&#10;    SELECT&#13;&#10;        hf.FAMILY_ID,&#13;&#10;        hf.CUSTOMER_ID,&#13;&#10;        hc.CUSTOMER_FIRST_NAME,&#13;&#10;        hc.CUSTOMER_LAST_NAME,&#13;&#10;        hc.CUSTOMER_EMAIL,&#13;&#10;        hc.ADDITIONAL_EMAIL,&#13;&#10;        hc.CELLPHONE,&#13;&#10;        hc.HOMEPHONE,&#13;&#10;        hc.WORKPHONE,&#13;&#10;        hc.AGREE_RECEIVE_EMAIL,&#13;&#10;        hc.AGREE_RECEIVE_POSTAL_MAIL,&#13;&#10;        hc.AGREE_RECEIVE_TEXT_MESSAGE,&#13;&#10;        IIF(hub.udf_ValidateEmailFormat(hc.CUSTOMER_EMAIL) = 1, 'Yes', 'No') AS IS_CUSTOMER_EMAIL_VALID,&#13;&#10;        IIF(hub.udf_ValidateEmailFormat(hc.ADDITIONAL_EMAIL) = 1, 'Yes', 'No') AS IS_ADDITIONAL_EMAIL_VALID&#13;&#10;    FROM hub.FAMILY_MEMBERS hf&#13;&#10;    JOIN hub.CUSTOMERS hc on hc.CUSTOMER_ID = hf.CUSTOMER_ID&#13;&#10;    WHERE hf.MAIN_CONTACT = 'Yes'&#13;&#10;) hoh_list ON hoh_list.FAMILY_ID = fm.FAMILY_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOMER_ID" nullable="true" remarks="The family member customer ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FAMILY_ID" nullable="true" remarks="The family ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FAMILY_NAME" nullable="true" remarks="The family name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="IS_MAIN_CONTACT" nullable="true" remarks="Whether this customer is the main contact for the family (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="HOH_CUSTOMER_ID" nullable="true" remarks="The head of household's customer ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="HOH_FIRST_NAME" nullable="true" remarks="The head of household's first name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="HOH_LAST_NAME" nullable="true" remarks="The head of household's last name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="HOH_EMAIL" nullable="true" remarks="The head of household's email address" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="HOH_ADDITIONAL_EMAIL" nullable="true" remarks="The head of household's additional email address" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="HOH_CELLPHONE" nullable="true" remarks="The head of household's cell phone number" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="HOH_HOMEPHONE" nullable="true" remarks="The head of household's home phone number" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="HOH_WORKPHONE" nullable="true" remarks="The head of household's work phone number" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="HOH_AGREE_RECEIVE_EMAIL" nullable="true" remarks="Whether the head of household agreed to receive emails (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="HOH_AGREE_RECEIVE_POSTAL_MAIL" nullable="true" remarks="Whether the head of household agreed to receive postal mail (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="HOH_AGREE_RECEIVE_TEXT_MESSAGE" nullable="true" remarks="Whether the head of household agreed to receive text messages (Yes/No)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="HOH_IS_EMAIL_VALID" nullable="true" remarks="Whether the head of household's email address has been provided and is a validly formatted email address (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="HOH_IS_ADDITIONAL_EMAIL_VALID" nullable="true" remarks="Whether the head of household's additional email address has been provided and is a validly formatted email address (Yes/No)" size="3" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="INSTRUCTOR_FACILITIES" numRows="0" remarks="Master table showing instructor facility details" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.INSTRUCTOR_FACILITIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_ID AS INSTRUCTOR_FACILITY_ID,&#13;&#10;    src.FACILITY_NAME AS INSTRUCTOR_FACILITY_NAME,&#13;&#10;    src.ADDRESS1,&#13;&#10;    src.ADDRESS2,&#13;&#10;    src.CITY,&#13;&#10;    src.STATE,&#13;&#10;    src.ZIPCODE,&#13;&#10;    src.COUNTRY,&#13;&#10;    src.FACILITY_NOTES AS INSTRUCTOR_FACILITY_NOTES,&#13;&#10;    src.OPEN_24_HOURS,&#13;&#10;    src.MONDAY_CLOSED,&#13;&#10;    src.TUESDAY_CLOSED,&#13;&#10;    src.WEDNESDAY_CLOSED,&#13;&#10;    src.THURSDAY_CLOSED,&#13;&#10;    src.FRIDAY_CLOSED,&#13;&#10;    src.SATURDAY_CLOSED,&#13;&#10;    src.SUNDAY_CLOSED,&#13;&#10;    src.HIDE_ON_INTERNET,&#13;&#10;    src.MODIFIED_DATE,&#13;&#10;    src.MODIFIED_DATE_ONLY,&#13;&#10;    src.RETIRED,&#13;&#10;    src.ITEM_TYPE_ID,&#13;&#10;    src.RESOURCE_TYPE,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITIES src&#13;&#10;WHERE&#13;&#10;    src.ITEM_TYPE_ID = 2;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="INSTRUCTOR_FACILITY_ID" nullable="true" remarks="Instructor facility ID." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="INSTRUCTOR_FACILITY_NAME" nullable="true" remarks="Instructor facility name." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ADDRESS1" nullable="true" remarks="The first address line of the instructor facility" size="35" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ADDRESS2" nullable="true" remarks="The second address line of the instructor facility" size="35" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CITY" nullable="true" remarks="The city of the instructor facility address" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="STATE" nullable="true" remarks="The state of the instructor facility address" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ZIPCODE" nullable="true" remarks="The postal code of the instructor facility address" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="COUNTRY" nullable="true" remarks="The country code of the instructor facility address" size="2" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="INSTRUCTOR_FACILITY_NOTES" nullable="true" remarks="Notes related to the instructor facility" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="OPEN_24_HOURS" nullable="true" remarks="Whether the instructor facility is open 24 hours per day (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="MONDAY_CLOSED" nullable="true" remarks="Whether the instructor facility is closed on Mondays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="TUESDAY_CLOSED" nullable="true" remarks="Whether the instructor facility is closed on Tuesdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="WEDNESDAY_CLOSED" nullable="true" remarks="Whether the instructor facility is closed on Wednesdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="THURSDAY_CLOSED" nullable="true" remarks="Whether the instructor facility is closed on Thursdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="FRIDAY_CLOSED" nullable="true" remarks="Whether the instructor facility is closed on Fridays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="SATURDAY_CLOSED" nullable="true" remarks="Whether the instructor facility is closed on Saturdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SUNDAY_CLOSED" nullable="true" remarks="Whether the instructor facility is closed on Sundays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether the instructor facility should be hidden from display online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="MODIFIED_DATE" nullable="true" remarks="The date and time of the last modification to the instructor facility information" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="MODIFIED_DATE_ONLY" nullable="true" remarks="The date of the last modification to the instructor facility information (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="RETIRED" nullable="true" remarks="Whether the instructor facility record has been retired (Yes or No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ITEM_TYPE_ID" nullable="true" remarks="The type of resource that this facility is (0=facility, 1=equipment, 2=human resource)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="RESOURCE_TYPE" nullable="true" remarks="Facility resource type (Facility, Equipment or Instructor)." size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="25" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="INSTRUCTOR_FACILITY_HOURS" numRows="0" remarks="Contains information on instructor facility hours by date range" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.INSTRUCTOR_FACILITY_HOURS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_HOUR_ID AS INSTRUCTOR_FACILITY_HOUR_ID,&#13;&#10;    src.FACILITY_HOUR_DESCRIPTION AS INSTRUCTOR_FACILITY_HOUR_DESCRIPTION,&#13;&#10;    src.FACILITY_ID AS INSTRUCTOR_FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME AS INSTRUCTOR_FACILITY_NAME,&#13;&#10;    src.START_MONTH,&#13;&#10;    src.START_DAY,&#13;&#10;    src.START_YEAR,&#13;&#10;    src.END_MONTH,&#13;&#10;    src.END_DAY,&#13;&#10;    src.END_YEAR,&#13;&#10;    src.OPEN_24_HOURS,&#13;&#10;    src.MONDAY_CLOSED,&#13;&#10;    src.TUESDAY_CLOSED,&#13;&#10;    src.WEDNESDAY_CLOSED,&#13;&#10;    src.THURSDAY_CLOSED,&#13;&#10;    src.FRIDAY_CLOSED,&#13;&#10;    src.SATURDAY_CLOSED,&#13;&#10;    src.SUNDAY_CLOSED,&#13;&#10;    src.AVAILABILITY_STATUS,&#13;&#10;    src.APPROVAL_STATUS,&#13;&#10;    src.MAX_PRE_BOOKINGS,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_HOURS src&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;WHERE&#13;&#10;    fa1.ITEM_TYPE_ID = 2;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="INSTRUCTOR_FACILITY_HOUR_ID" nullable="true" remarks="The instructor facility hours ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="INSTRUCTOR_FACILITY_HOUR_DESCRIPTION" nullable="true" remarks="The instructor facility hours description" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="INSTRUCTOR_FACILITY_ID" nullable="true" remarks="The ID of the instructor facility" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="INSTRUCTOR_FACILITY_NAME" nullable="true" remarks="The name of the instructor facility" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="START_MONTH" nullable="true" remarks="The starting month number for the period that these instructor facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="START_DAY" nullable="true" remarks="The starting day number for the period that these instructor facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="START_YEAR" nullable="true" remarks="The starting year for the period that these instructor facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="END_MONTH" nullable="true" remarks="The ending month number for the period that these instructor facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="END_DAY" nullable="true" remarks="The ending day number for the period that these instructor facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="END_YEAR" nullable="true" remarks="The ending year for the period that these instructor facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="OPEN_24_HOURS" nullable="true" remarks="Whether the instructor facility is open 24 hours per day (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="MONDAY_CLOSED" nullable="true" remarks="Whether the instructor facility is closed on Mondays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="TUESDAY_CLOSED" nullable="true" remarks="Whether the instructor facility is closed on Tuesdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="WEDNESDAY_CLOSED" nullable="true" remarks="Whether the instructor facility is closed on Wednesdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="THURSDAY_CLOSED" nullable="true" remarks="Whether the instructor facility is closed on Thursdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="FRIDAY_CLOSED" nullable="true" remarks="Whether the instructor facility is closed on Fridays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SATURDAY_CLOSED" nullable="true" remarks="Whether the instructor facility is closed on Saturdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="SUNDAY_CLOSED" nullable="true" remarks="Whether the instructor facility is closed on Sundays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="AVAILABILITY_STATUS" nullable="true" remarks="The instructor facility hours availability status (Available / Leave of Absence)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="APPROVAL_STATUS" nullable="true" remarks="The instructor facility hours approval status (Unconfirmed / Confirmed / Approved)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="MAX_PRE_BOOKINGS" nullable="true" remarks="The maximum pre-bookings permitted during these instructor facility hours" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="22" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="INSTRUCTOR_FACILITY_OPEN_TIMES" numRows="0" remarks="Contains information on instructor facility open and close times per day of the week" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.INSTRUCTOR_FACILITY_OPEN_TIMES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_OPEN_TIME_ID AS INSTRUCTOR_FACILITY_OPEN_TIME_ID,&#13;&#10;    src.FACILITY_ID AS INSTRUCTOR_FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME AS INSTRUCTOR_FACILITY_NAME,&#13;&#10;    src.DAY_OF_WEEK,&#13;&#10;    src.DAY_OF_WEEK_NAME,&#13;&#10;    src.START_TIME,&#13;&#10;    src.END_TIME,&#13;&#10;    src.FACILITY_HOUR_ID AS INSTRUCTOR_FACILITY_HOUR_ID,&#13;&#10;    fh1.FACILITY_HOUR_DESCRIPTION AS INSTRUCTOR_FACILITY_HOUR_DESCRIPTION,&#13;&#10;    fh1.START_MONTH,&#13;&#10;    fh1.START_DAY,&#13;&#10;    fh1.START_YEAR,&#13;&#10;    fh1.END_MONTH,&#13;&#10;    fh1.END_DAY,&#13;&#10;    fh1.END_YEAR,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_OPEN_TIMES src&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    LEFT JOIN hub.FACILITY_HOURS fh1 ON (fh1.FACILITY_HOUR_ID = src.FACILITY_HOUR_ID)&#13;&#10;WHERE&#13;&#10;    fa1.ITEM_TYPE_ID = 2;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="INSTRUCTOR_FACILITY_OPEN_TIME_ID" nullable="true" remarks="The instructor facility open time ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="INSTRUCTOR_FACILITY_ID" nullable="true" remarks="The instructor facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="INSTRUCTOR_FACILITY_NAME" nullable="true" remarks="The instructor facility name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="DAY_OF_WEEK" nullable="true" remarks="The day of the week number (1=Sunday to 7=Saturday)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="DAY_OF_WEEK_NAME" nullable="true" remarks="The day of the week (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday)" size="60" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="START_TIME" nullable="true" remarks="The instructor facility open time for this period of this day of the week (there may be multiple open and close times on a given day)" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="END_TIME" nullable="true" remarks="The instructor facility close time for this period of this day of the week (there may be multiple open and close times on a given day)" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="INSTRUCTOR_FACILITY_HOUR_ID" nullable="true" remarks="The instructor facility hours ID if for a specific date range" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="INSTRUCTOR_FACILITY_HOUR_DESCRIPTION" nullable="true" remarks="The instructor facility hours description if for a specific date range" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="START_MONTH" nullable="true" remarks="The starting month number for the period that these instructor facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="START_DAY" nullable="true" remarks="The starting day number for the period that these instructor facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="START_YEAR" nullable="true" remarks="The starting year for the period that these instructor facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="END_MONTH" nullable="true" remarks="The ending month number for the period that these instructor facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="END_DAY" nullable="true" remarks="The ending day number for the period that these instructor facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="END_YEAR" nullable="true" remarks="The ending year for the period that these instructor facility hours are applicable for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="INSTRUCTOR_FACILITY_RENTAL_BLOCKS" numRows="0" remarks="Contains information on instructor facility rental blocks" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.INSTRUCTOR_FACILITY_RENTAL_BLOCKS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.FACILITY_RENTAL_BLOCK_ID AS INSTRUCTOR_FACILITY_RENTAL_BLOCK_ID,&#13;&#10;    src.FACILITY_RENTAL_BLOCK_NAME AS INSTRUCTOR_FACILITY_RENTAL_BLOCK_NAME,&#13;&#10;    src.FACILITY_ID AS INSTRUCTOR_FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME AS INSTRUCTOR_FACILITY_NAME,&#13;&#10;    src.START_TIME,&#13;&#10;    src.END_TIME,&#13;&#10;    src.CROSSES_DAYS,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_RENTAL_BLOCKS src&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON (ac1.ACTIVITY_ID = src.ACTIVITY_ID)&#13;&#10;WHERE&#13;&#10;    fa1.ITEM_TYPE_ID = 2;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="INSTRUCTOR_FACILITY_RENTAL_BLOCK_ID" nullable="true" remarks="The instructor facility rental block ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="INSTRUCTOR_FACILITY_RENTAL_BLOCK_NAME" nullable="true" remarks="The instructor facility rental block name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="INSTRUCTOR_FACILITY_ID" nullable="true" remarks="The ID of the instructor facility that the rental block belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="INSTRUCTOR_FACILITY_NAME" nullable="true" remarks="The name of the instructor facility that the rental block belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="START_TIME" nullable="true" remarks="The start time of the rental block" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="END_TIME" nullable="true" remarks="The end time of the rental block" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CROSSES_DAYS" nullable="true" remarks="Whether the rental block time cross into the next day (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVITY_ID" nullable="true" remarks="The ID of the activity that the rental block belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVITY_NAME" nullable="true" remarks="The name of the activity that the rental block belongs to" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="INSTRUCTOR_ROLES" numRows="0" remarks="Your organization's defined instructor roles" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.INSTRUCTOR_ROLES &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.INSTRUCTOR_ROLE_ID,&#13;&#10;    src.INSTRUCTOR_ROLE_NAME,&#13;&#10;    src.INSTRUCTOR_ROLE_PAYRATE_CODE,&#13;&#10;    src.INSTRUCTOR_FIXED_FEE,&#13;&#10;    src.INSTRUCTOR_PER_HOUR_FEE,&#13;&#10;    src.INSTRUCTOR_PER_SESSION_FEE,&#13;&#10;    src.INSTRUCTOR_PER_STUDENT_FEE,&#13;&#10;    src.INSTRUCTOR_PER_STUDENT_PER_HOUR_FEE,&#13;&#10;    src.INSTRUCTOR_PER_STUDENT_PER_SESSION_FEE,&#13;&#10;    src.INSTRUCTOR_PERCENT_ALL_FEES,&#13;&#10;    src.INSTRUCTOR_PERCENT_PRIMARY_FEES,&#13;&#10;    src.UPFRONT_INSTRUCTOR_FIXED_FEE,&#13;&#10;    src.UPFRONT_INSTRUCTOR_PER_HOUR_FEE,&#13;&#10;    src.UPFRONT_INSTRUCTOR_PER_STUDENT_FEE,&#13;&#10;    src.UPFRONT_INSTRUCTOR_PERCENT_ALL_FEES,&#13;&#10;    src.UPFRONT_INSTRUCTOR_PERCENT_KEY_FEES,&#13;&#10;    src.ONGOING_INSTRUCTOR_FIXED_FEE,&#13;&#10;    src.ONGOING_INSTRUCTOR_PER_HOUR_FEE,&#13;&#10;    src.ONGOING_INSTRUCTOR_PER_STUDENT_FEE,&#13;&#10;    src.ONGOING_INSTRUCTOR_PERCENT_ALL_FEES,&#13;&#10;    src.ONGOING_INSTRUCTOR_PERCENT_KEY_FEES,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.INSTRUCTOR_ROLES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="INSTRUCTOR_ROLE_ID" nullable="false" remarks="The instructor role ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="DEFAULT_INSTRUCTOR_ROLE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SCHEDULE_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="INSTRUCTOR_ROLE_NAME" nullable="true" remarks="The instructor role name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="INSTRUCTOR_ROLE_PAYRATE_CODE" nullable="true" remarks="The instructor role pay rate code if applicable" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="3" name="INSTRUCTOR_FIXED_FEE" nullable="true" remarks="The fixed fee rate for instructors of this role type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="4" name="INSTRUCTOR_PER_HOUR_FEE" nullable="true" remarks="The per hour fee rate for instructors of this role type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="5" name="INSTRUCTOR_PER_SESSION_FEE" nullable="true" remarks="The per session fee rate for instructors of this role type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="6" name="INSTRUCTOR_PER_STUDENT_FEE" nullable="true" remarks="The per student fee rate for instructors of this role type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="7" name="INSTRUCTOR_PER_STUDENT_PER_HOUR_FEE" nullable="true" remarks="The per student per hour fee rate for instructors of this role type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="8" name="INSTRUCTOR_PER_STUDENT_PER_SESSION_FEE" nullable="true" remarks="The per student per session fee rate for instructors of this role type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="9" name="INSTRUCTOR_PERCENT_ALL_FEES" nullable="true" remarks="The fee rate comprised of a percentage of all fees for instructors of this role type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="10" name="INSTRUCTOR_PERCENT_PRIMARY_FEES" nullable="true" remarks="The fee rate comprised of a percentage of primary fees for instructors of this role type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="11" name="UPFRONT_INSTRUCTOR_FIXED_FEE" nullable="true" remarks="The up-front preparation fixed fee rate for instructors of this role type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="12" name="UPFRONT_INSTRUCTOR_PER_HOUR_FEE" nullable="true" remarks="The up-front preparation per hour fee rate for instructors of this role type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="13" name="UPFRONT_INSTRUCTOR_PER_STUDENT_FEE" nullable="true" remarks="The up-front preparation per student fee rate for instructors of this role type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="14" name="UPFRONT_INSTRUCTOR_PERCENT_ALL_FEES" nullable="true" remarks="The up-front preparation fee rate comprised of a percentage of all fees for instructors of this role type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="15" name="UPFRONT_INSTRUCTOR_PERCENT_KEY_FEES" nullable="true" remarks="The up-front preparation fee rate comprised of a percentage of primary fees for instructors of this role type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="16" name="ONGOING_INSTRUCTOR_FIXED_FEE" nullable="true" remarks="The ongoing preparation fixed fee rate for instructors of this role type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="17" name="ONGOING_INSTRUCTOR_PER_HOUR_FEE" nullable="true" remarks="The ongoing preparation per hour fee rate for instructors of this role type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="18" name="ONGOING_INSTRUCTOR_PER_STUDENT_FEE" nullable="true" remarks="The ongoing preparation per student fee rate for instructors of this role type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="19" name="ONGOING_INSTRUCTOR_PERCENT_ALL_FEES" nullable="true" remarks="The ongoing preparation fee rate comprised of a percentage of all fees for instructors of this role type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="20" name="ONGOING_INSTRUCTOR_PERCENT_KEY_FEES" nullable="true" remarks="The ongoing preparation fee rate comprised of a percentage of primary fees for instructors of this role type" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="IS_RETIRED" nullable="true" remarks="Whether this instructor role has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="22" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="INSTRUCTOR_ROLE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="INSTRUCTORS" numRows="0" remarks="Master table showing instructor details" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.INSTRUCTORS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.INSTRUCTOR_ID,&#13;&#10;    cu1.CUSTOMER_FIRST_NAME AS INSTRUCTOR_FIRST_NAME,&#13;&#10;    cu1.CUSTOMER_LAST_NAME AS INSTRUCTOR_LAST_NAME,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    src.INSTRUCTOR_FACILITY_ID,&#13;&#10;    NULL AS INSTRUCTOR_TYPE_ID,&#13;&#10;    NULL AS INSTRUCTOR_TYPE_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.INSTRUCTORS src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (src.SITE_ID = si1.SITE_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (src.COMPANY_ID = co1.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (src.CUSTOMER_ID = cu1.CUSTOMER_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="INSTRUCTOR_ID" nullable="true" remarks="Instructor's ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="INSTRUCTOR_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="INSTRUCTOR_FIRST_NAME" nullable="true" remarks="Instructor's first name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="INSTRUCTOR_LAST_NAME" nullable="true" remarks="Instructor's last name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOMER_ID" nullable="true" remarks="Instructor's customer ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="INSTRUCTOR_FACILITY_ID" nullable="true" remarks="Instructor's facility ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="INSTRUCTOR_TYPE_ID" nullable="true" remarks="DEPRECATED - UNUSED" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="INSTRUCTOR_TYPE_NAME" nullable="true" remarks="DEPRECATED - UNUSED" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SITE_ID" nullable="true" remarks="Instructor's site ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="SITE_NAME" nullable="true" remarks="Instructor's site name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="COMPANY_ID" nullable="true" remarks="Instructor's company's ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="COMPANY_NAME" nullable="true" remarks="Instructor's company's name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="RETIRED" nullable="true" remarks="Whether the instructor record has been retired (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="INSTRUCTOR_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="INTEREST_LISTS" numRows="0" remarks="Customer interest lists for facilities, packages, activities and programs" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.INTEREST_LISTS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.INTEREST_LIST_ID,&#13;&#10;    src.INTEREST_LIST_NAME,&#13;&#10;    src.CATEGORY_ID,&#13;&#10;    acat.ACTIVITY_CATEGORY_NAME AS CATEGORY_NAME,&#13;&#10;    src.SUB_CATEGORY_ID,&#13;&#10;    ascat.ACTIVITY_SUB_CATEGORY_NAME AS SUB_CATEGORY_NAME,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    src.PROGRAM_ID,&#13;&#10;    src.CUSTOMER_MAIL_ID,&#13;&#10;    src.FACILITY_MAIL_ID,&#13;&#10;    src.PACKAGE_MAIL_ID,&#13;&#10;    src.ACTIVITY_MAIL_ID,&#13;&#10;    src.PROGRAM_MAIL_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.INTEREST_LISTS src&#13;&#10;    LEFT JOIN hub.ACTIVITY_CATEGORIES acat ON (acat.ACTIVITY_CATEGORY_ID = src.CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_SUB_CATEGORIES ascat ON (ascat.ACTIVITY_SUB_CATEGORY_ID = src.SUB_CATEGORY_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="INTEREST_LIST_ID" nullable="true" remarks="The interest list ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="INTEREST_LIST_NAME" nullable="true" remarks="Name of the interest list" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CATEGORY_ID" nullable="true" remarks="The category ID of the interest list" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CATEGORY_NAME" nullable="true" remarks="The category name of the interest list." size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SUB_CATEGORY_ID" nullable="true" remarks="The sub-category ID of the interest list" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_SUB_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_SUB_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SUB_CATEGORY_NAME" nullable="true" remarks="The sub-category name of the interest list." size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CUSTOMER_ID" nullable="true" remarks="The ID of the customer who has signed up for the interest list" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="FACILITY_ID" nullable="true" remarks="The ID of the facility that is assigned to the interest list" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="PACKAGE_ID" nullable="true" remarks="The ID of the package that is assigned to the interest list" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ACTIVITY_ID" nullable="true" remarks="The ID of the activity that is assigned to the interest list" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="PROGRAM_ID" nullable="true" remarks="The ID of the program that is assigned to the interest list" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CUSTOMER_MAIL_ID" nullable="true" remarks="Customer interest list ID (for internal synchronization)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="FACILITY_MAIL_ID" nullable="true" remarks="Facility interest list ID (for internal synchronization)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PACKAGE_MAIL_ID" nullable="true" remarks="Package interest list ID (for internal synchronization)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ACTIVITY_MAIL_ID" nullable="true" remarks="Activity interest list ID (for internal synchronization)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="PROGRAM_MAIL_ID" nullable="true" remarks="Program interest list ID (for internal synchronization)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="17" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="INTEREST_LIST_ID" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOMER_MAIL_ID" sequenceNumberInPK="2"/>
         <primaryKey column="FACILITY_MAIL_ID" sequenceNumberInPK="3"/>
         <primaryKey column="PACKAGE_MAIL_ID" sequenceNumberInPK="4"/>
         <primaryKey column="ACTIVITY_MAIL_ID" sequenceNumberInPK="5"/>
         <primaryKey column="PROGRAM_MAIL_ID" sequenceNumberInPK="6"/>
      </table>
      <table catalog="ActiveHub" name="ITEM_CHANGE_LOG" numRows="0" remarks="" schema="dbo" type="VIEW" viewSql="&#9;&#9;&#9;&#9;&#9;&#13;&#10;CREATE VIEW dbo.ITEM_CHANGE_LOG &#13;&#10;AS &#9;&#13;&#10;SELECT &#13;&#10;&#9;src.ACTIVE_HUB_KEY,&#13;&#10;&#9;src.ORG_ID,&#13;&#10;&#9;src.CHANGE_LOG_ID,&#13;&#10;&#9;src.ITEM_ID,&#13;&#10;&#9;src.ITEM_TYPE,&#13;&#10;&#9;src.CHANGE_TYPE,&#13;&#10;&#9;src.DATESTAMP,&#13;&#10;&#9;src.KEYWORD,&#13;&#10;&#9;src.SYSTEMUSER_ID,&#13;&#10;&#9;src.ROW_VERSION,&#13;&#10;&#9;src.LAST_SYNC_TIME,&#13;&#10;&#9;src.ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM [hub].[ITEM_CHANGE_LOG] src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="false" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CHANGE_LOG_ID" nullable="false" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ITEM_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ITEM_TYPE" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CHANGE_TYPE" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="DATESTAMP" nullable="true" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="KEYWORD" nullable="true" remarks="" size="82" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SYSTEMUSER_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ROW_VERSION" nullable="true" remarks="" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="LAST_SYNC_TIME" nullable="false" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_CONTACTS" numRows="0" remarks="Your organization's defined league contacts" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.LEAGUE_CONTACTS &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.LEAGUE_CONTACT_ID,&#13;&#10;    src.LEAGUE_ID,&#13;&#10;    le1.LEAGUE_NAME,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS CUSTOMER_NAME,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.CONTACT_TYPE_ID,&#13;&#10;    ct1.CONTACT_TYPE_NAME,&#13;&#10;    src.SHOW_ONLINE,&#13;&#10;    src.SHOW_CONTACT_INFO_ONLINE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LEAGUE_CONTACTS src&#13;&#10;    LEFT JOIN hub.LEAGUES le1 ON (le1.LEAGUE_ID = src.LEAGUE_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON cu1.CUSTOMER_ID = src.CUSTOMER_ID&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON co1.COMPANY_ID = src.COMPANY_ID&#13;&#10;    LEFT JOIN hub.CONTACT_TYPES ct1 ON (ct1.CONTACT_TYPE_ID = src.CONTACT_TYPE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LEAGUE_CONTACT_ID" nullable="false" remarks="The league contact ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LEAGUE_ID" nullable="true" remarks="The ID of the league that the contact is assigned to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LEAGUE_NAME" nullable="true" remarks="The name of the league that the contact is assigned to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMER_ID" nullable="true" remarks="The ID of the customer who is the contact" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOMER_NAME" nullable="true" remarks="The name of the customer who is the contact" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="COMPANY_ID" nullable="true" remarks="The ID of the company who is the contact" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="COMPANY_NAME" nullable="true" remarks="The name of the company who is the contact" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CONTACT_TYPE_ID" nullable="true" remarks="The ID of the contact type" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CONTACT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CONTACT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CONTACT_TYPE_NAME" nullable="true" remarks="The name of the contact type" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="SHOW_ONLINE" nullable="true" remarks="Whether the league contact should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="SHOW_CONTACT_INFO_ONLINE" nullable="true" remarks="Whether the league contact's contact information should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="11" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_CONTACT_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_FACILITIES" numRows="0" remarks="Your organization's defined league facilities" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.LEAGUE_FACILITIES &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.LEAGUE_FACILITY_ID,&#13;&#10;    src.LEAGUE_ID,&#13;&#10;    le1.LEAGUE_NAME,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LEAGUE_FACILITIES src&#13;&#10;    LEFT JOIN hub.LEAGUES le1 ON (le1.LEAGUE_ID = src.LEAGUE_ID)&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON fa1.FACILITY_ID = src.FACILITY_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LEAGUE_FACILITY_ID" nullable="false" remarks="The league facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LEAGUE_ID" nullable="true" remarks="The ID of the league that the facility is assigned to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LEAGUE_NAME" nullable="true" remarks="The name of the league that the facility is assigned to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FACILITY_ID" nullable="true" remarks="The ID of the facility that is assigned to the league" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="FACILITY_NAME" nullable="true" remarks="The name of the facility that is assigned to the league" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_FACILITY_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_NO_PLAY_DATES" numRows="0" remarks="Your organization's defined league no play dates" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.LEAGUE_NO_PLAY_DATES &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.LEAGUE_NO_PLAY_DATE_ID,&#13;&#10;    src.LEAGUE_ID,&#13;&#10;    le1.LEAGUE_NAME,&#13;&#10;    src.NO_PLAY_DATE,&#13;&#10;    src.NO_PLAY_DESCRIPTION,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LEAGUE_NO_PLAY_DATES src&#13;&#10;    LEFT JOIN hub.LEAGUES le1 ON (le1.LEAGUE_ID = src.LEAGUE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LEAGUE_NO_PLAY_DATE_ID" nullable="false" remarks="The league no play date ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LEAGUE_ID" nullable="true" remarks="The ID of the league" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LEAGUE_NAME" nullable="true" remarks="The name of the league" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="NO_PLAY_DATE" nullable="true" remarks="The date that the league should not have games scheduled on" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="NO_PLAY_DESCRIPTION" nullable="true" remarks="The description of the date exclusion" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_NO_PLAY_DATE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_OFFICIALS" numRows="0" remarks="Your organization's defined league officials" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.LEAGUE_OFFICIALS &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.LEAGUE_OFFICIAL_ID,&#13;&#10;    src.LEAGUE_ID,&#13;&#10;    le1.LEAGUE_NAME,&#13;&#10;    src.OFFICIAL_ID,&#13;&#10;    cu1.CUSTOMER_FIRST_NAME AS FIRST_NAME,&#13;&#10;    cu1.CUSTOMER_LAST_NAME AS LAST_NAME,&#13;&#10;    cu1.CUSTOMER_EMAIL AS EMAIL_ADDRESS,&#13;&#10;    cu1.HOMEPHONE AS HOME_PHONE,&#13;&#10;    cu1.WORKPHONE AS WORK_PHONE,&#13;&#10;    cu1.CELLPHONE AS CELL_PHONE,&#13;&#10;    cu1.OTHERPHONE AS OTHER_PHONE,&#13;&#10;    cu1.FAXPHONE AS FAX_NUMBER,&#13;&#10;    cu1.PAGERPHONE AS PAGER_NUMBER,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LEAGUE_OFFICIALS src&#13;&#10;    LEFT JOIN hub.LEAGUES le1 ON (le1.LEAGUE_ID = src.LEAGUE_ID)&#13;&#10;    LEFT JOIN hub.OFFICIALS of1 ON of1.OFFICIAL_ID = src.OFFICIAL_ID&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = of1.CUSTOMER_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LEAGUE_OFFICIAL_ID" nullable="false" remarks="The league official ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LEAGUE_ID" nullable="true" remarks="The ID of the league" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LEAGUE_NAME" nullable="true" remarks="The name of the league" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="OFFICIAL_ID" nullable="true" remarks="The ID of the official who is assigned to officiate in the league" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="OFFICIAL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="OFFICIALS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="FIRST_NAME" nullable="true" remarks="The first name of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="LAST_NAME" nullable="true" remarks="The last name of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="EMAIL_ADDRESS" nullable="true" remarks="The email address of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="HOME_PHONE" nullable="true" remarks="The home phone number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="WORK_PHONE" nullable="true" remarks="The work phone number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CELL_PHONE" nullable="true" remarks="The cell phone number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="OTHER_PHONE" nullable="true" remarks="The other phone number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="FAX_NUMBER" nullable="true" remarks="The fax number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="PAGER_NUMBER" nullable="true" remarks="The pager number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_OFFICIAL_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_SCHEDULE_FACILITIES" numRows="0" remarks="Your organization's defined league schedule facilities" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.LEAGUE_SCHEDULE_FACILITIES &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.LEAGUE_SCHEDULE_FACILITY_ID,&#13;&#10;    ls1.LEAGUE_ID,&#13;&#10;    le1.LEAGUE_NAME,&#13;&#10;    src.LEAGUE_SCHEDULE_ID,&#13;&#10;    ls1.LEAGUE_SCHEDULE_TITLE,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LEAGUE_SCHEDULE_FACILITIES src&#13;&#10;    LEFT JOIN hub.LEAGUE_SCHEDULES ls1 ON (ls1.LEAGUE_SCHEDULE_ID = src.LEAGUE_SCHEDULE_ID)&#13;&#10;    LEFT JOIN hub.LEAGUES le1 ON (le1.LEAGUE_ID = ls1.LEAGUE_ID)&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON fa1.FACILITY_ID = src.FACILITY_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LEAGUE_SCHEDULE_FACILITY_ID" nullable="false" remarks="The league schedule facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LEAGUE_ID" nullable="true" remarks="The ID of the league that the league schedule belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LEAGUE_NAME" nullable="true" remarks="The name of the league that the league schedule belongs to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="LEAGUE_SCHEDULE_ID" nullable="true" remarks="The ID of the league schedule" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LEAGUE_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="LEAGUE_SCHEDULE_TITLE" nullable="true" remarks="The title of the league schedule" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="FACILITY_ID" nullable="true" remarks="The ID of the facility that is assigned to the league schedule" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="FACILITY_NAME" nullable="true" remarks="The name of the facility that is assigned to the league schedule" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_SCHEDULE_FACILITY_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_SCHEDULE_OFFICIALS" numRows="0" remarks="Your organization's defined league schedule officials" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.LEAGUE_SCHEDULE_OFFICIALS &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.LEAGUE_SCHEDULE_OFFICIAL_ID,&#13;&#10;    ls1.LEAGUE_ID,&#13;&#10;    le1.LEAGUE_NAME,&#13;&#10;    src.LEAGUE_SCHEDULE_ID,&#13;&#10;    ls1.LEAGUE_SCHEDULE_TITLE,&#13;&#10;    src.OFFICIAL_ID,&#13;&#10;    cu1.CUSTOMER_FIRST_NAME AS FIRST_NAME,&#13;&#10;    cu1.CUSTOMER_LAST_NAME AS LAST_NAME,&#13;&#10;    cu1.CUSTOMER_EMAIL AS EMAIL_ADDRESS,&#13;&#10;    cu1.HOMEPHONE AS HOME_PHONE,&#13;&#10;    cu1.WORKPHONE AS WORK_PHONE,&#13;&#10;    cu1.CELLPHONE AS CELL_PHONE,&#13;&#10;    cu1.OTHERPHONE AS OTHER_PHONE,&#13;&#10;    cu1.FAXPHONE AS FAX_NUMBER,&#13;&#10;    cu1.PAGERPHONE AS PAGER_NUMBER,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LEAGUE_SCHEDULE_OFFICIALS src&#13;&#10;    LEFT JOIN hub.LEAGUE_SCHEDULES ls1 ON (ls1.LEAGUE_SCHEDULE_ID = src.LEAGUE_SCHEDULE_ID)&#13;&#10;    LEFT JOIN hub.LEAGUES le1 ON (le1.LEAGUE_ID = ls1.LEAGUE_ID)&#13;&#10;    LEFT JOIN hub.OFFICIALS of1 ON of1.OFFICIAL_ID = src.OFFICIAL_ID&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = of1.CUSTOMER_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LEAGUE_SCHEDULE_OFFICIAL_ID" nullable="false" remarks="The league schedule official ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LEAGUE_ID" nullable="true" remarks="The ID of the league that the league schedule belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LEAGUE_NAME" nullable="true" remarks="The name of the league that the league schedule belongs to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="LEAGUE_SCHEDULE_ID" nullable="true" remarks="The ID of the league schedule" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LEAGUE_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="LEAGUE_SCHEDULE_TITLE" nullable="true" remarks="The title of the league schedule" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="OFFICIAL_ID" nullable="true" remarks="The ID of the official who is assigned to officiate in this league schedule" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="OFFICIAL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="OFFICIALS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="FIRST_NAME" nullable="true" remarks="The first name of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="LAST_NAME" nullable="true" remarks="The last name of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="EMAIL_ADDRESS" nullable="true" remarks="The email address of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="HOME_PHONE" nullable="true" remarks="The home phone number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="WORK_PHONE" nullable="true" remarks="The work phone number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="CELL_PHONE" nullable="true" remarks="The cell phone number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="OTHER_PHONE" nullable="true" remarks="The other phone number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="FAX_NUMBER" nullable="true" remarks="The fax number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PAGER_NUMBER" nullable="true" remarks="The pager number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="15" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_SCHEDULE_OFFICIAL_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_SCHEDULE_PAIRING_OFFICIALS" numRows="0" remarks="Your organization's defined league schedule pairing officials" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.LEAGUE_SCHEDULE_PAIRING_OFFICIALS &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.LEAGUE_SCHEDULE_PAIRING_OFFICIAL_ID,&#13;&#10;    ls1.LEAGUE_ID,&#13;&#10;    le1.LEAGUE_NAME,&#13;&#10;    lsp.LEAGUE_SCHEDULE_ID,&#13;&#10;    ls1.LEAGUE_SCHEDULE_TITLE,&#13;&#10;    src.LEAGUE_SCHEDULE_PAIRING_ID,&#13;&#10;    lsp.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    lsp.START_DATE_TIME,&#13;&#10;    lsp.END_DATE_TIME,&#13;&#10;    CAST(lsp.START_DATE_TIME AS DATE) AS START_DATE_ONLY,&#13;&#10;    CAST(lsp.END_DATE_TIME AS DATE) AS END_DATE_ONLY,&#13;&#10;    CAST(lsp.START_DATE_TIME AS TIME(0)) AS START_TIME_ONLY,&#13;&#10;    CAST(lsp.END_DATE_TIME AS TIME(0)) AS END_TIME_ONLY,&#13;&#10;    lsp.IS_POSTPONED,&#13;&#10;    src.OFFICIAL_ID,&#13;&#10;    cu1.CUSTOMER_FIRST_NAME AS FIRST_NAME,&#13;&#10;    cu1.CUSTOMER_LAST_NAME AS LAST_NAME,&#13;&#10;    cu1.CUSTOMER_EMAIL AS EMAIL_ADDRESS,&#13;&#10;    cu1.HOMEPHONE AS HOME_PHONE,&#13;&#10;    cu1.WORKPHONE AS WORK_PHONE,&#13;&#10;    cu1.CELLPHONE AS CELL_PHONE,&#13;&#10;    cu1.OTHERPHONE AS OTHER_PHONE,&#13;&#10;    cu1.FAXPHONE AS FAX_NUMBER,&#13;&#10;    cu1.PAGERPHONE AS PAGER_NUMBER,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LEAGUE_SCHEDULE_PAIRING_OFFICIALS src&#13;&#10;    LEFT JOIN hub.LEAGUE_SCHEDULE_PAIRINGS lsp ON (lsp.LEAGUE_SCHEDULE_PAIRING_ID = src.LEAGUE_SCHEDULE_PAIRING_ID)&#13;&#10;    LEFT JOIN hub.LEAGUE_SCHEDULES ls1 ON (ls1.LEAGUE_SCHEDULE_ID = lsp.LEAGUE_SCHEDULE_ID)&#13;&#10;    LEFT JOIN hub.LEAGUES le1 ON (le1.LEAGUE_ID = ls1.LEAGUE_ID)&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = lsp.FACILITY_ID)&#13;&#10;    LEFT JOIN hub.OFFICIALS of1 ON of1.OFFICIAL_ID = src.OFFICIAL_ID&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = of1.CUSTOMER_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LEAGUE_SCHEDULE_PAIRING_OFFICIAL_ID" nullable="false" remarks="The league schedule pairing official ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LEAGUE_ID" nullable="true" remarks="The ID of the league that the league schedule belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LEAGUE_NAME" nullable="true" remarks="The name of the league that the league schedule belongs to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="LEAGUE_SCHEDULE_ID" nullable="true" remarks="The ID of the league schedule" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="LEAGUE_SCHEDULE_TITLE" nullable="true" remarks="The title of the league schedule" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="LEAGUE_SCHEDULE_PAIRING_ID" nullable="true" remarks="The league schedule pairing ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LEAGUE_SCHEDULE_PAIRING_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULE_PAIRINGS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="FACILITY_ID" nullable="true" remarks="The ID of the facility for this pairing" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="FACILITY_NAME" nullable="true" remarks="The name of the facility for this pairing" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="START_DATE_TIME" nullable="true" remarks="The start date and time for this pairing" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="END_DATE_TIME" nullable="true" remarks="The end date and time for this pairing" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="START_DATE_ONLY" nullable="true" remarks="The start date for this pairing (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="END_DATE_ONLY" nullable="true" remarks="The end date for this pairing (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="START_TIME_ONLY" nullable="true" remarks="The start time for this pairing (time only)" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="END_TIME_ONLY" nullable="true" remarks="The end time for this pairing (time only)" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="IS_POSTPONED" nullable="true" remarks="Whether this pairing has been postponed (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="OFFICIAL_ID" nullable="true" remarks="The ID of the official who is assigned to officiate this league schedule pairing" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="OFFICIAL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="OFFICIALS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="FIRST_NAME" nullable="true" remarks="The first name of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="LAST_NAME" nullable="true" remarks="The last name of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="EMAIL_ADDRESS" nullable="true" remarks="The email address of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="HOME_PHONE" nullable="true" remarks="The home phone number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="WORK_PHONE" nullable="true" remarks="The work phone number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="CELL_PHONE" nullable="true" remarks="The cell phone number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="OTHER_PHONE" nullable="true" remarks="The other phone number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="FAX_NUMBER" nullable="true" remarks="The fax number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="PAGER_NUMBER" nullable="true" remarks="The pager number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="25" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_SCHEDULE_PAIRING_OFFICIAL_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_SCHEDULE_PAIRINGS" numRows="0" remarks="Your organization's defined league schedule match and game pairings" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.LEAGUE_SCHEDULE_PAIRINGS &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.LEAGUE_SCHEDULE_PAIRING_ID,&#13;&#10;    ls1.LEAGUE_ID,&#13;&#10;    le1.LEAGUE_NAME,&#13;&#10;    src.LEAGUE_SCHEDULE_ID,&#13;&#10;    ls1.LEAGUE_SCHEDULE_TITLE,&#13;&#10;    src.HOME_TEAM_ID,&#13;&#10;    ht1.TEAM_NAME AS HOME_TEAM_NAME,&#13;&#10;    src.AWAY_TEAM_ID,&#13;&#10;    at1.TEAM_NAME AS AWAY_TEAM_NAME,&#13;&#10;    src.OFFICIAL_TEAM_ID,&#13;&#10;    ot1.TEAM_NAME AS OFFICIAL_TEAM_NAME,&#13;&#10;    src.IS_BYE,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.START_DATE_TIME,&#13;&#10;    src.END_DATE_TIME,&#13;&#10;    CAST(src.START_DATE_TIME AS DATE) AS START_DATE_ONLY,&#13;&#10;    CAST(src.END_DATE_TIME AS DATE) AS END_DATE_ONLY,&#13;&#10;    CAST(src.START_DATE_TIME AS TIME(0)) AS START_TIME_ONLY,&#13;&#10;    CAST(src.END_DATE_TIME AS TIME(0)) AS END_TIME_ONLY,&#13;&#10;    src.FACILITY_SCHEDULE_ID,&#13;&#10;    src.IS_POSTPONED,&#13;&#10;    src.POSTPONEMENT_REASON_ID,&#13;&#10;    pr1.POSTPONEMENT_REASON_NAME,&#13;&#10;    src.HOME_SCORE,&#13;&#10;    src.AWAY_SCORE,&#13;&#10;    src.IS_TIE,&#13;&#10;    src.IS_HOME_FORFEIT,&#13;&#10;    src.IS_AWAY_FORFEIT,&#13;&#10;    src.GAME_NUMBER,&#13;&#10;    src.ROUND_NUMBER,&#13;&#10;    src.DISPLAY_ORDER,&#13;&#10;    src.MATCH_ID,&#13;&#10;    src.HOME_RESULT_MATCH_ID,&#13;&#10;    src.HOME_RESULT_TYPE,&#13;&#10;    src.AWAY_RESULT_MATCH_ID,&#13;&#10;    src.AWAY_RESULT_TYPE,&#13;&#10;    src.DISPLAY_MATCH_ID,&#13;&#10;    src.DISPLAY_HOME_RESULT_MATCH_ID,&#13;&#10;    src.DISPLAY_AWAY_RESULT_MATCH_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LEAGUE_SCHEDULE_PAIRINGS src&#13;&#10;    LEFT JOIN hub.LEAGUE_SCHEDULES ls1 ON (ls1.LEAGUE_SCHEDULE_ID = src.LEAGUE_SCHEDULE_ID)&#13;&#10;    LEFT JOIN hub.LEAGUES le1 ON (le1.LEAGUE_ID = ls1.LEAGUE_ID)&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    LEFT JOIN hub.TEAMS ht1 ON (ht1.TEAM_ID = src.HOME_TEAM_ID)&#13;&#10;    LEFT JOIN hub.TEAMS at1 ON (at1.TEAM_ID = src.AWAY_TEAM_ID)&#13;&#10;    LEFT JOIN hub.TEAMS ot1 ON (ot1.TEAM_ID = src.OFFICIAL_TEAM_ID)&#13;&#10;    LEFT JOIN hub.POSTPONEMENT_REASONS pr1 ON (pr1.POSTPONEMENT_REASON_ID = src.POSTPONEMENT_REASON_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LEAGUE_SCHEDULE_PAIRING_ID" nullable="false" remarks="The league schedule pairing ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="LEAGUE_SCHEDULE_PAIRING_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULE_PAIRING_OFFICIALS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LEAGUE_ID" nullable="true" remarks="The ID of the league that the league schedule belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LEAGUE_NAME" nullable="true" remarks="The name of the league that the league schedule belongs to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="LEAGUE_SCHEDULE_ID" nullable="true" remarks="The ID of the league schedule that the pairing belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LEAGUE_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="LEAGUE_SCHEDULE_TITLE" nullable="true" remarks="The title of the league schedule that the pairing belongs to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="HOME_TEAM_ID" nullable="true" remarks="The ID of the home team" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="HOME_TEAM_NAME" nullable="true" remarks="The name of the home team" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="AWAY_TEAM_ID" nullable="true" remarks="The ID of the away team" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="AWAY_TEAM_NAME" nullable="true" remarks="The name of the away team" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="OFFICIAL_TEAM_ID" nullable="true" remarks="The ID of the team who is to provide officials for this pairing" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="OFFICIAL_TEAM_NAME" nullable="true" remarks="The name of the team who is to provide officials for this pairing" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="IS_BYE" nullable="true" remarks="Whether a team is getting a bye in this round (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="FACILITY_ID" nullable="true" remarks="The ID of the facility for this pairing" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="FACILITY_NAME" nullable="true" remarks="The name of the facility for this pairing" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="14" name="START_DATE_TIME" nullable="true" remarks="The start date and time for this pairing" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="15" name="END_DATE_TIME" nullable="true" remarks="The end date and time for this pairing" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="START_DATE_ONLY" nullable="true" remarks="The start date for this pairing (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="END_DATE_ONLY" nullable="true" remarks="The end date for this pairing (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="START_TIME_ONLY" nullable="true" remarks="The start time for this pairing (time only)" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="END_TIME_ONLY" nullable="true" remarks="The end time for this pairing (time only)" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="FACILITY_SCHEDULE_ID" nullable="true" remarks="The ID of the facility schedule reservation" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_RESERVATION"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="IS_POSTPONED" nullable="true" remarks="Whether this pairing has been postponed (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="POSTPONEMENT_REASON_ID" nullable="true" remarks="The ID of the reason for postponement" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="POSTPONEMENT_REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POSTPONEMENT_REASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="POSTPONEMENT_REASON_NAME" nullable="true" remarks="The reason for postponement" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="HOME_SCORE" nullable="true" remarks="The home team score" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="AWAY_SCORE" nullable="true" remarks="The away team score" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="IS_TIE" nullable="true" remarks="Whether the result of this pairing is a tie (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="IS_HOME_FORFEIT" nullable="true" remarks="Whether the home team forfeited (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="IS_AWAY_FORFEIT" nullable="true" remarks="Whether the away team forfeited (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="GAME_NUMBER" nullable="true" remarks="The generated game number within the league or tournament" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="ROUND_NUMBER" nullable="true" remarks="The round number within the league or tournament" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="DISPLAY_ORDER" nullable="true" remarks="The display order or this pairing within the schedule or tournament bracket" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="MATCH_ID" nullable="true" remarks="The match ID for this pairing" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="HOME_RESULT_MATCH_ID" nullable="true" remarks="The match ID of the pairing that the home team advanced from" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="HOME_RESULT_TYPE" nullable="true" remarks="The type of result that causes the home team to advance to this pairing (Winner / Loser / Bye / Final Round / None)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="AWAY_RESULT_MATCH_ID" nullable="true" remarks="The match ID of the pairing that the away team advanced from" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="AWAY_RESULT_TYPE" nullable="true" remarks="The type of result that causes the away team to advance to this pairing (Winner / Loser / Bye / Final Round / None)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="DISPLAY_MATCH_ID" nullable="true" remarks="The display match ID for this pairing (excludes byes)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="DISPLAY_HOME_RESULT_MATCH_ID" nullable="true" remarks="The display match ID of the pairing that the home team advanced from (excludes byes)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="DISPLAY_AWAY_RESULT_MATCH_ID" nullable="true" remarks="The display match ID of the pairing that the away team advanced from (excludes byes)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="40" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_SCHEDULE_PAIRING_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATIONS" numRows="0" remarks="Your organization's defined league schedule timeslot configurations" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATIONS &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATION_ID,&#13;&#10;    ls1.LEAGUE_ID,&#13;&#10;    le1.LEAGUE_NAME,&#13;&#10;    src.LEAGUE_SCHEDULE_ID,&#13;&#10;    ls1.LEAGUE_SCHEDULE_TITLE,&#13;&#10;    src.STARTING_DATE,&#13;&#10;    src.ENDING_DATE,&#13;&#10;    src.DATE_AND_TIME_SETTING_TYPE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATIONS src&#13;&#10;    LEFT JOIN hub.LEAGUE_SCHEDULES ls1 ON (ls1.LEAGUE_SCHEDULE_ID = src.LEAGUE_SCHEDULE_ID)&#13;&#10;    LEFT JOIN hub.LEAGUES le1 ON (le1.LEAGUE_ID = ls1.LEAGUE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATION_ID" nullable="false" remarks="The league schedule timeslot configuration ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULE_TIMESLOTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LEAGUE_ID" nullable="true" remarks="The ID of the league that the league schedule belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LEAGUE_NAME" nullable="true" remarks="The name of the league that the league schedule belongs to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="LEAGUE_SCHEDULE_ID" nullable="true" remarks="The ID of the league schedule that the timeslot configuration belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LEAGUE_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="LEAGUE_SCHEDULE_TITLE" nullable="true" remarks="The title of the league schedule that the timeslot configuration belongs to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="STARTING_DATE" nullable="true" remarks="The starting date of the league schedule timeslot configuration" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ENDING_DATE" nullable="true" remarks="The ending date of the league schedule timeslot configuration" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="DATE_AND_TIME_SETTING_TYPE" nullable="true" remarks="How dates and times should be applied to configured facilities (By Facility / Across All Facilities)" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATION_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_SCHEDULE_TIMESLOTS" numRows="0" remarks="Your organization's defined league schedule timeslots" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.LEAGUE_SCHEDULE_TIMESLOTS &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.LEAGUE_SCHEDULE_TIMESLOT_ID,&#13;&#10;    ls1.LEAGUE_ID,&#13;&#10;    le1.LEAGUE_NAME,&#13;&#10;    lstc.LEAGUE_SCHEDULE_ID,&#13;&#10;    ls1.LEAGUE_SCHEDULE_TITLE,&#13;&#10;    src.LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATION_ID,&#13;&#10;    lstc.STARTING_DATE,&#13;&#10;    lstc.ENDING_DATE,&#13;&#10;    src.DAY_OF_WEEK,&#13;&#10;    src.DAY_OF_WEEK_NAME,&#13;&#10;    src.STARTING_TIME,&#13;&#10;    src.ENDING_TIME,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LEAGUE_SCHEDULE_TIMESLOTS src&#13;&#10;    LEFT JOIN hub.LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATIONS lstc ON (lstc.LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATION_ID = src.LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATION_ID)&#13;&#10;    LEFT JOIN hub.LEAGUE_SCHEDULES ls1 ON (ls1.LEAGUE_SCHEDULE_ID = lstc.LEAGUE_SCHEDULE_ID)&#13;&#10;    LEFT JOIN hub.LEAGUES le1 ON (le1.LEAGUE_ID = ls1.LEAGUE_ID)&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID);&#13;&#10;(datename(weekday,[DAY_OF_WEEK]-(2)))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LEAGUE_SCHEDULE_TIMESLOT_ID" nullable="false" remarks="The league schedule timeslot ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LEAGUE_ID" nullable="true" remarks="The ID of the league that the league schedule belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LEAGUE_NAME" nullable="true" remarks="The name of the league that the league schedule belongs to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="LEAGUE_SCHEDULE_ID" nullable="true" remarks="The ID of the league schedule that the timeslot belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="LEAGUE_SCHEDULE_TITLE" nullable="true" remarks="The title of the league schedule that the timeslot belongs to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATION_ID" nullable="true" remarks="The ID of the league schedule timeslot configuration that this timeslot will be applied against" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="STARTING_DATE" nullable="true" remarks="The starting date of the league schedule timeslot configuration" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ENDING_DATE" nullable="true" remarks="The ending date of the league schedule timeslot configuration" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="DAY_OF_WEEK" nullable="true" remarks="The day of the week number for the games to be generated (1=Sunday to 7=Saturday)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="DAY_OF_WEEK_NAME" nullable="true" remarks="The day of the week for the games to be generated (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday)" size="60" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="STARTING_TIME" nullable="true" remarks="The starting time of the games to be generated" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ENDING_TIME" nullable="true" remarks="The ending time of the games to be generated" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="FACILITY_ID" nullable="true" remarks="The ID of the specific facility to be applied for this time slot (NULL if applying across all configured facilities)" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="FACILITY_NAME" nullable="true" remarks="The name of the specific facility to be applied for this time slot (NULL if applying across all configured facilities)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="14" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_SCHEDULE_TIMESLOT_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_SCHEDULES" numRows="0" remarks="Your organization's defined league schedules" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.LEAGUE_SCHEDULES &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.LEAGUE_SCHEDULE_ID,&#13;&#10;    src.LEAGUE_SCHEDULE_TITLE,&#13;&#10;    src.LEAGUE_ID,&#13;&#10;    le1.LEAGUE_NAME,&#13;&#10;    src.SCHEDULE_TYPE,&#13;&#10;    src.DISTRIBUTION_TYPE,&#13;&#10;    src.SCHEDULE_LIMIT_TYPE,&#13;&#10;    src.NUMBER_OF_ROUNDS_OR_MATCHES,&#13;&#10;    src.BALANCE_SCHEDULE_BY_FIRST,&#13;&#10;    src.BALANCE_SCHEDULE_BY_SECOND,&#13;&#10;    src.BALANCE_SCHEDULE_BY_THIRD,&#13;&#10;    src.BALANCE_SCHEDULE_BY_FOURTH,&#13;&#10;    src.STARTING_DATE,&#13;&#10;    src.ENDING_DATE,&#13;&#10;    src.USE_ONLY_LEAGUE_SKIP_DATES,&#13;&#10;    src.DOUBLE_HEADERS,&#13;&#10;    src.TEAM_OFFICIATING,&#13;&#10;    src.SPREAD_BOOKINGS_EVENLY,&#13;&#10;    src.MAXIMUM_GAMES_PER_WEEK,&#13;&#10;    src.MAXIMUM_GAMES_PER_DAY,&#13;&#10;    src.GAME_DURATION_MINUTES,&#13;&#10;    src.CALENDAR_CODE,&#13;&#10;    src.BYE_TEXT,&#13;&#10;    src.USE_TEAM_HOME_LOCATIONS,&#13;&#10;    src.SHOW_ONLINE,&#13;&#10;    src.SCHEDULE_OFFICIALS,&#13;&#10;    src.OFFICIALS_PER_GAME,&#13;&#10;    src.LEAGUE_SCHEDULE_GENERATED_DATE_TIME,&#13;&#10;    CAST(src.LEAGUE_SCHEDULE_GENERATED_DATE_TIME AS DATE) AS LEAGUE_SCHEDULE_GENERATED_DATE_ONLY,&#13;&#10;    src.OFFICIALS_SCHEDULE_GENERATED_DATE_TIME,&#13;&#10;    CAST(src.OFFICIALS_SCHEDULE_GENERATED_DATE_TIME AS DATE) AS OFFICIALS_SCHEDULE_GENERATED_DATE_ONLY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LEAGUE_SCHEDULES src&#13;&#10;    LEFT JOIN hub.LEAGUES le1 ON (le1.LEAGUE_ID = src.LEAGUE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LEAGUE_SCHEDULE_ID" nullable="false" remarks="The league schedule ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="LEAGUE_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="LEAGUE_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULE_FACILITIES"/>
            <child catalog="ActiveHub" column="LEAGUE_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULE_OFFICIALS"/>
            <child catalog="ActiveHub" column="LEAGUE_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULE_PAIRINGS"/>
            <child catalog="ActiveHub" column="LEAGUE_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATIONS"/>
            <child catalog="ActiveHub" column="LEAGUE_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LEAGUE_SCHEDULE_TITLE" nullable="true" remarks="The league schedule title" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LEAGUE_ID" nullable="true" remarks="The ID of the league that the schedule belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="LEAGUE_NAME" nullable="true" remarks="The name of the league that the schedule belongs to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SCHEDULE_TYPE" nullable="true" remarks="The type of schedule (Regular / Practice / Tournament)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="DISTRIBUTION_TYPE" nullable="true" remarks="The tournament or game distribution (Round Robin / Single Elimination / Double Elimination)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SCHEDULE_LIMIT_TYPE" nullable="true" remarks="How games will be limited in the schedule (Matches per team / Rounds)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="NUMBER_OF_ROUNDS_OR_MATCHES" nullable="true" remarks="The number of rounds or matches per team that the schedule should be generated for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="BALANCE_SCHEDULE_BY_FIRST" nullable="true" remarks="The top priority when balancing the generated schedule (None / Game Site / Day of Week / Time / Week)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="BALANCE_SCHEDULE_BY_SECOND" nullable="true" remarks="The second priority when balancing the generated schedule (None / Game Site / Day of Week / Time / Week)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="BALANCE_SCHEDULE_BY_THIRD" nullable="true" remarks="The third priority when balancing the generated schedule (None / Game Site / Day of Week / Time / Week)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="BALANCE_SCHEDULE_BY_FOURTH" nullable="true" remarks="The fourth priority when balancing the generated schedule (None / Game Site / Day of Week / Time / Week)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="STARTING_DATE" nullable="true" remarks="The starting date for the schedule" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ENDING_DATE" nullable="true" remarks="The ending date for the schedule" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="USE_ONLY_LEAGUE_SKIP_DATES" nullable="true" remarks="Whether only league-specific skip dates should be excluded when generating the schedule (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="DOUBLE_HEADERS" nullable="true" remarks="Whether games should be scheduled as double headers (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="TEAM_OFFICIATING" nullable="true" remarks="Whether the schedule games will be officiated by the participating teams (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="SPREAD_BOOKINGS_EVENLY" nullable="true" remarks="Whether bookings should be spread evenly over the full range of potential game dates (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="MAXIMUM_GAMES_PER_WEEK" nullable="true" remarks="The maximum number of games per week per team" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="MAXIMUM_GAMES_PER_DAY" nullable="true" remarks="The maximum number of games per day per team" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="GAME_DURATION_MINUTES" nullable="true" remarks="The duration of each game to be scheduled in minutes" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="CALENDAR_CODE" nullable="true" remarks="The calendar code to be used for this schedule" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="BYE_TEXT" nullable="true" remarks="The text to be used for byes" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="USE_TEAM_HOME_LOCATIONS" nullable="true" remarks="Whether team's home locations should be used when generating the schedule (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="SHOW_ONLINE" nullable="true" remarks="Whether this league schedule should be available online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="SCHEDULE_OFFICIALS" nullable="true" remarks="Whether officials should be scheduled for this league schedule (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="OFFICIALS_PER_GAME" nullable="true" remarks="The number of officials to be scheduled for each game" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="27" name="LEAGUE_SCHEDULE_GENERATED_DATE_TIME" nullable="true" remarks="The date and time that the game schedule was last generated for this league schedule" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="LEAGUE_SCHEDULE_GENERATED_DATE_ONLY" nullable="true" remarks="The date that the game schedule was last generated for this league schedule (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="29" name="OFFICIALS_SCHEDULE_GENERATED_DATE_TIME" nullable="true" remarks="The date and time that the officials schedule was last generated for this league schedule" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="OFFICIALS_SCHEDULE_GENERATED_DATE_ONLY" nullable="true" remarks="The date that the officials schedule was last generated for this league schedule (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="31" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_SCHEDULE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_TYPES" numRows="0" remarks="Your organization's defined league types" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.LEAGUE_TYPES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.LEAGUE_TYPE_ID,&#13;&#10;    src.LEAGUE_TYPE_NAME,&#13;&#10;    src.FORFEIT_SCORE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LEAGUE_TYPES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LEAGUE_TYPE_ID" nullable="false" remarks="The league type ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="LEAGUE_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LEAGUE_TYPE_NAME" nullable="true" remarks="The league type name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FORFEIT_SCORE" nullable="true" remarks="The score that a team receives when the other team forfeits" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="3" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_TYPE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LEAGUES" numRows="0" remarks="Your organization's defined leagues" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.LEAGUES &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.LEAGUE_ID,&#13;&#10;    src.LEAGUE_NAME,&#13;&#10;    src.LEAGUE_FORMAT,&#13;&#10;    src.PARENT_LEAGUE_ID,&#13;&#10;    le1.LEAGUE_NAME AS PARENT_LEAGUE_NAME,&#13;&#10;    src.START_DATE,&#13;&#10;    src.END_DATE,&#13;&#10;    src.LEAGUE_TYPE_ID,&#13;&#10;    lt1.LEAGUE_TYPE_NAME,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    ac1.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    src.RANKING_SYSTEM_ID,&#13;&#10;    rs1.RANKING_SYSTEM_NAME,&#13;&#10;    src.MINIMUM_NUMBER_OF_TEAMS,&#13;&#10;    src.MAXIMUM_NUMBER_OF_TEAMS,&#13;&#10;    src.MINIMUM_PLAYERS_PER_TEAM,&#13;&#10;    src.MAXIMUM_PLAYERS_PER_TEAM,&#13;&#10;    src.IS_COMPLETED,&#13;&#10;    src.AUTO_COPY_DATES_TO_ACTIVITY,&#13;&#10;    src.HAS_TEAMS,&#13;&#10;    src.SEED_TEAMS_BY_RANK,&#13;&#10;    src.SHOW_LEAGUE_ONLINE,&#13;&#10;    src.SHOW_ONLINE_FOR_TEAM_MEMBER_ONLY,&#13;&#10;    src.HIDE_COMPLETED_LEAGUE_ONLINE,&#13;&#10;    src.SHOW_STANDINGS_ONLINE,&#13;&#10;    src.SHOW_TEAM_PLAYERS_ONLINE,&#13;&#10;    src.SHOW_TEAM_ROSTERS_TO_EVERYONE,&#13;&#10;    src.ALLOW_TEAM_CONTACT_TO_ENTER_SCORES,&#13;&#10;    src.SHOW_OFFICIALS_ONLINE,&#13;&#10;    src.ALLOW_OFFICIALS_VIEW_SCHEDULES_ONLINE,&#13;&#10;    src.OFFICIAL_FEE_PER_GAME,&#13;&#10;    src.OFFICIAL_FEE_PER_HOUR,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LEAGUES src&#13;&#10;    LEFT JOIN hub.LEAGUES le1 ON (le1.LEAGUE_ID = src.PARENT_LEAGUE_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON (ac1.ACTIVITY_ID = src.ACTIVITY_ID)&#13;&#10;    LEFT JOIN hub.LEAGUE_TYPES lt1 ON (lt1.LEAGUE_TYPE_ID = src.LEAGUE_TYPE_ID)&#13;&#10;    LEFT JOIN hub.RANKING_SYSTEMS rs1 ON (rs1.RANKING_SYSTEM_ID = src.RANKING_SYSTEM_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LEAGUE_ID" nullable="false" remarks="The league ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_CONTACTS"/>
            <child catalog="ActiveHub" column="LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_FACILITIES"/>
            <child catalog="ActiveHub" column="LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_NO_PLAY_DATES"/>
            <child catalog="ActiveHub" column="LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_OFFICIALS"/>
            <child catalog="ActiveHub" column="LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULES"/>
            <child catalog="ActiveHub" column="PARENT_LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUES"/>
            <child catalog="ActiveHub" column="LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LEAGUE_NAME" nullable="true" remarks="The league name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LEAGUE_FORMAT" nullable="true" remarks="The format of this league (League / Tournament)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PARENT_LEAGUE_ID" nullable="true" remarks="The ID of the league that is the parent of this league" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PARENT_LEAGUE_NAME" nullable="true" remarks="The name of the league that is the parent of this league" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="START_DATE" nullable="true" remarks="The starting date of the league" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="END_DATE" nullable="true" remarks="The ending date of the league" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="LEAGUE_TYPE_ID" nullable="true" remarks="The ID of the league type" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LEAGUE_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="LEAGUE_TYPE_NAME" nullable="true" remarks="The name of the league type" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVITY_ID" nullable="true" remarks="The ID of the activity associated with this league" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ACTIVITY_NAME" nullable="true" remarks="The name of the activity associated with this league" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVITY_NUMBER" nullable="true" remarks="The number of the activity associated with this league" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="RANKING_SYSTEM_ID" nullable="true" remarks="The ID of the ranking system used for league standings" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RANKING_SYSTEM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RANKING_SYSTEMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="RANKING_SYSTEM_NAME" nullable="true" remarks="The name of the ranking system used for league standings" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="MINIMUM_NUMBER_OF_TEAMS" nullable="true" remarks="The minimum number of teams for the league" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="MAXIMUM_NUMBER_OF_TEAMS" nullable="true" remarks="The maximum number of teams for the league" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="MINIMUM_PLAYERS_PER_TEAM" nullable="true" remarks="The minimum number of players per team" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="MAXIMUM_PLAYERS_PER_TEAM" nullable="true" remarks="The maximum number of players per team" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="IS_COMPLETED" nullable="true" remarks="Whether this league has been completed (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="AUTO_COPY_DATES_TO_ACTIVITY" nullable="true" remarks="Whether the dates for the league schedule should automatically be copied to the associated activity (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="HAS_TEAMS" nullable="true" remarks="Whether the league currently has registered teams (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="SEED_TEAMS_BY_RANK" nullable="true" remarks="Whether teams should be seeded according to rank (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="SHOW_LEAGUE_ONLINE" nullable="true" remarks="Whether the league should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="SHOW_ONLINE_FOR_TEAM_MEMBER_ONLY" nullable="true" remarks="Whether the league should be displayed online only for team members (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="HIDE_COMPLETED_LEAGUE_ONLINE" nullable="true" remarks="Whether the league should be hidden from online view once it has been completed (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="SHOW_STANDINGS_ONLINE" nullable="true" remarks="Whether the league standings should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="SHOW_TEAM_PLAYERS_ONLINE" nullable="true" remarks="Whether the league team rosters should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="SHOW_TEAM_ROSTERS_TO_EVERYONE" nullable="true" remarks="Whether the league team rosters should be displayed online to everyone (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="ALLOW_TEAM_CONTACT_TO_ENTER_SCORES" nullable="true" remarks="Whether the team contacts should be able to enter game scores (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="SHOW_OFFICIALS_ONLINE" nullable="true" remarks="Whether the assigned league officials should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="ALLOW_OFFICIALS_VIEW_SCHEDULES_ONLINE" nullable="true" remarks="Whether the assigned league officials should be able to view their schedules online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="31" name="OFFICIAL_FEE_PER_GAME" nullable="true" remarks="The amount per game that assigned officials will be paid" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="32" name="OFFICIAL_FEE_PER_HOUR" nullable="true" remarks="The amount per hour that assigned officials will be paid" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="SITE_ID" nullable="true" remarks="The ID of the specific site that the league belongs to (NULL for all sites)" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="SITE_NAME" nullable="true" remarks="The name of the specific site that the league belongs to (NULL for all sites)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="35" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LOCKER_BANKS" numRows="0" remarks="Your organization's defined locker banks per locker room" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.LOCKER_BANKS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.LOCKER_BANK_ID,&#13;&#10;    src.LOCKER_BANK_NAME,&#13;&#10;    src.LOCKER_ROOM_ID,&#13;&#10;    lr1.LOCKER_ROOM_NAME,&#13;&#10;    src.PREFIX,&#13;&#10;    src.SUFFIX,&#13;&#10;    src.FROM_NUMBER,&#13;&#10;    src.EXCLUDE,&#13;&#10;    src.LOCKER_SIZE_ID,&#13;&#10;    ls1.LOCKER_SIZE_NAME,&#13;&#10;    src.TIME_PERIOD,&#13;&#10;    src.LOCKER_ROWS,&#13;&#10;    src.LOCKER_COLUMNS,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LOCKER_BANKS src&#13;&#10;    JOIN hub.LOCKER_ROOMS lr1 ON (lr1.LOCKER_ROOM_ID = src.LOCKER_ROOM_ID)&#13;&#10;    LEFT JOIN hub.LOCKER_SIZES ls1 ON (ls1.LOCKER_SIZE_ID = src.LOCKER_SIZE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LOCKER_BANK_ID" nullable="false" remarks="The locker bank ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="LOCKER_BANK_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LOCKER_BANK_NAME" nullable="true" remarks="The locker bank name" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LOCKER_ROOM_ID" nullable="true" remarks="The locker room ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LOCKER_ROOM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_ROOMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="LOCKER_ROOM_NAME" nullable="true" remarks="The locker room name" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PREFIX" nullable="true" remarks="The prefix to append when generating locker numbers" size="6" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SUFFIX" nullable="true" remarks="The suffix to append when generating locker numbers" size="6" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="FROM_NUMBER" nullable="true" remarks="The starting number to use when generating locker numbers" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="EXCLUDE" nullable="true" remarks="The numbers to be excluded when generating locker numbers (Even Numbers / Odd Numbers / None)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="LOCKER_SIZE_ID" nullable="true" remarks="The locker size ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LOCKER_SIZE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_SIZES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="LOCKER_SIZE_NAME" nullable="true" remarks="The locker size name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="TIME_PERIOD" nullable="true" remarks="The time period to use for locker reservations (Hourly / Daily / Weekly / Monthly (duration) / Monthly (calendar) / Yearly / Defined Date Ranges / Specific Period)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="LOCKER_ROWS" nullable="true" remarks="The number of rows of lockers in the locker bank" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="LOCKER_COLUMNS" nullable="true" remarks="The number of columns of lockers in the locker bank" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LOCKER_BANK_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LOCKER_DATE_RANGES" numRows="0" remarks="Your organization's defined locker date ranges for reservations" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.LOCKER_DATE_RANGES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.LOCKER_DATE_RANGE_ID,&#13;&#10;    src.LOCKER_ID,&#13;&#10;    lo1.LOCKER_NAME,&#13;&#10;    src.RESERVATION_DATE_RANGE_ID,&#13;&#10;    rdr.RESERVATION_DATE_RANGE_NAME,&#13;&#10;    rdr.START_DATE AS RESERVATION_START_DATE,&#13;&#10;    rdr.END_DATE AS RESERVATION_END_DATE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LOCKER_DATE_RANGES src&#13;&#10;    JOIN hub.LOCKERS lo1 ON (lo1.LOCKER_ID = src.LOCKER_ID)&#13;&#10;    JOIN hub.RESERVATION_DATE_RANGES rdr ON (rdr.RESERVATION_DATE_RANGE_ID = src.RESERVATION_DATE_RANGE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LOCKER_DATE_RANGE_ID" nullable="false" remarks="The locker date range ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LOCKER_ID" nullable="true" remarks="The ID of the locker" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LOCKER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LOCKER_NAME" nullable="true" remarks="The name of the locker" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="RESERVATION_DATE_RANGE_ID" nullable="true" remarks="The ID of the reservation date range for the locker" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RESERVATION_DATE_RANGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RESERVATION_DATE_RANGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="RESERVATION_DATE_RANGE_NAME" nullable="true" remarks="The name of the reservation date range for the locker" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="RESERVATION_START_DATE" nullable="true" remarks="The start date of the reservation date range for the locker" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="RESERVATION_END_DATE" nullable="true" remarks="The end date of the reservation date range for the locker" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LOCKER_DATE_RANGE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LOCKER_FEES" numRows="0" remarks="Master table showing defined locker fees data" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.LOCKER_FEES &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.LOCKER_FEE_ID,&#13;&#10;    src.FEE_DESCRIPTION,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    src.CHARGE_NAME,&#13;&#10;    src.CHARGE_TYPE,&#13;&#10;    src.LOCKER_ROOM_ID,&#13;&#10;    lr1.LOCKER_ROOM_NAME,&#13;&#10;    src.LOCKER_SIZE_ID,&#13;&#10;    ls1.LOCKER_SIZE_NAME,&#13;&#10;    src.DISCOUNT_TYPE,&#13;&#10;    src.DISCOUNT_PERCENT,&#13;&#10;    src.FEE_AMOUNT,&#13;&#10;    src.UNIT_OF_MEASURE,&#13;&#10;    src.FEE_ORDER,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.OVERRIDE_FLAG,&#13;&#10;    src.PREFILL_CONDITION,&#13;&#10;    src.PRIMARY_FEE,&#13;&#10;    src.TAXABLE_BY_TAX_1,&#13;&#10;    src.TAXABLE_BY_TAX_2,&#13;&#10;    src.TAXABLE_BY_TAX_3,&#13;&#10;    src.TAXABLE_BY_TAX_4,&#13;&#10;    src.TAXABLE_BY_TAX_5,&#13;&#10;    src.TAXABLE_BY_TAX_6,&#13;&#10;    src.TAXABLE_BY_TAX_7,&#13;&#10;    src.TAXABLE_BY_TAX_8,&#13;&#10;    src.DISCOUNTABLE,&#13;&#10;    src.ACTIVATION_DATE,&#13;&#10;    src.EXPIRATION_DATE,&#13;&#10;    src.CUSTOMER_TYPE_ID,&#13;&#10;    ct1.CUSTOMER_TYPE_NAME AS CUSTOMER_TYPE,&#13;&#10;    src.AGES_MIN,&#13;&#10;    src.AGES_MAX,&#13;&#10;    src.EXCLUDE_FROM_PAYMENT_PLAN,&#13;&#10;    src.SYSTEM_GL_ACCOUNT_PACKAGE_ID,&#13;&#10;    sgap.SYSTEM_GL_ACCOUNT_PACKAGE_NAME AS SYSTEM_GL_ACCOUNT_PACKAGE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LOCKER_FEES src&#13;&#10;    JOIN hub.LOCKER_ROOMS lr1 ON (lr1.LOCKER_ROOM_ID = src.LOCKER_ROOM_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.GLACCOUNT_ID = src.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.LOCKER_SIZES ls1 ON (ls1.LOCKER_SIZE_ID = src.LOCKER_SIZE_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMER_TYPES ct1 ON (ct1.CUSTOMER_TYPE_ID = src.CUSTOMER_TYPE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_GL_ACCOUNT_PACKAGES sgap ON (sgap.SYSTEM_GL_ACCOUNT_PACKAGE_ID = src.SYSTEM_GL_ACCOUNT_PACKAGE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LOCKER_FEE_ID" nullable="false" remarks="The locker fee ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="FEE_DESCRIPTION" nullable="true" remarks="The description of the fee" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CHARGE_ID" nullable="true" remarks="The ID of the base charge used to derive the fee" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CHARGE_NAME" nullable="true" remarks="The name of the base charge used to derive the fee" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CHARGE_TYPE" nullable="true" remarks="The type of charge (Fee / Discount)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="LOCKER_ROOM_ID" nullable="true" remarks="The ID of the locker room that the fee is limited to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LOCKER_ROOM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_ROOMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="LOCKER_ROOM_NAME" nullable="true" remarks="The name of the locker room that the fee is limited to" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="LOCKER_SIZE_ID" nullable="true" remarks="The ID of the locker size that the fee is limited to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LOCKER_SIZE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_SIZES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="LOCKER_SIZE_NAME" nullable="true" remarks="The name of the locker size that the fee is limited to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="DISCOUNT_TYPE" nullable="true" remarks="The type of discount (Amount / Percent)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="10" name="DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="11" name="FEE_AMOUNT" nullable="true" remarks="The default fee or discount amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="UNIT_OF_MEASURE" nullable="true" remarks="The default unit of measure for the fee amount" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="FEE_ORDER" nullable="true" remarks="The order in which the fee should be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="GLACCOUNT_ID" nullable="true" remarks="The default GL account ID to post this charge to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="GL_ACCOUNT_NAME" nullable="true" remarks="GL account name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="OVERRIDE_FLAG" nullable="true" remarks="Whether this charge can be overridden (Always / Never / By Password)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="PREFILL_CONDITION" nullable="true" remarks="The prefill condition for this fee (Never / Always / If Resident / If Non-resident / If Minor / If Senior / If Internet / If Member / If Non-member)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="PRIMARY_FEE" nullable="true" remarks="Whether this charge is a primary fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="TAXABLE_BY_TAX_1" nullable="true" remarks="Whether tax 1 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="TAXABLE_BY_TAX_2" nullable="true" remarks="Whether tax 2 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="TAXABLE_BY_TAX_3" nullable="true" remarks="Whether tax 3 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="TAXABLE_BY_TAX_4" nullable="true" remarks="Whether tax 4 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="TAXABLE_BY_TAX_5" nullable="true" remarks="Whether tax 5 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="TAXABLE_BY_TAX_6" nullable="true" remarks="Whether tax 6 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="TAXABLE_BY_TAX_7" nullable="true" remarks="Whether tax 7 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="TAXABLE_BY_TAX_8" nullable="true" remarks="Whether tax 8 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="DISCOUNTABLE" nullable="true" remarks="Whether this charge can be discounted (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="ACTIVATION_DATE" nullable="true" remarks="The first available date for this fee" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="EXPIRATION_DATE" nullable="true" remarks="The last available date for this fee" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="CUSTOMER_TYPE_ID" nullable="true" remarks="The customer type ID that this charge applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="CUSTOMER_TYPE" nullable="true" remarks="The customer type that this charge applies to" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="AGES_MIN" nullable="true" remarks="The minimum age for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="AGES_MAX" nullable="true" remarks="The maximum age for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="EXCLUDE_FROM_PAYMENT_PLAN" nullable="true" remarks="Whether this charge should be excluded from any payment plan (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID" nullable="true" remarks="System account package ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="SYSTEM_GL_ACCOUNT_PACKAGE" nullable="true" remarks="System GL account package name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="38" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LOCKER_FEE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LOCKER_ROOMS" numRows="0" remarks="Your organization's defined locker rooms" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.LOCKER_ROOMS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.LOCKER_ROOM_ID,&#13;&#10;    src.LOCKER_ROOM_NAME,&#13;&#10;    src.LOCKER_ROOM_DESCRIPTION,&#13;&#10;    src.CENTER_ID,&#13;&#10;    ce1.CENTER_NAME,&#13;&#10;    src.GENDER_INDEX,&#13;&#10;    ge1.GENDER_NAME AS GENDER,&#13;&#10;    src.CONFIG_LOCKER_BANKS,&#13;&#10;    src.ROOM_WIDTH,&#13;&#10;    src.ROOM_HEIGHT,&#13;&#10;    src.SHOW_ROOM_ONLINE,&#13;&#10;    src.DISPLAY_ON_MAP,&#13;&#10;    src.ICON_FILE_ID,&#13;&#10;    uf1.DISPLAY_NAME AS ICON_FILE_NAME,&#13;&#10;    src.NOTES,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LOCKER_ROOMS src&#13;&#10;    JOIN hub.CENTERS ce1 ON (ce1.CENTER_ID = src.CENTER_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf1 ON (uf1.UPLOADED_FILE_ID = src.ICON_FILE_ID)&#13;&#10;    LEFT JOIN hub.GENDERS ge1 ON (ge1.GENDER_INDEX = src.GENDER_INDEX);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LOCKER_ROOM_ID" nullable="false" remarks="The locker room ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="LOCKER_ROOM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_BANKS"/>
            <child catalog="ActiveHub" column="LOCKER_ROOM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_FEES"/>
            <child catalog="ActiveHub" column="LOCKER_ROOM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LOCKER_ROOM_NAME" nullable="true" remarks="The locker room name" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LOCKER_ROOM_DESCRIPTION" nullable="true" remarks="The locker room description" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CENTER_ID" nullable="true" remarks="The ID of the center where the locker room is located" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CENTERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CENTER_NAME" nullable="true" remarks="The name of the center where the locker room is located" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="GENDER_INDEX" nullable="true" remarks="The ID of the gender that this locker room is restricted to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GENDERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="GENDER" nullable="true" remarks="The gender that this locker room is restricted to" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CONFIG_LOCKER_BANKS" nullable="true" remarks="Whether locker banks should be configured for the locker room (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ROOM_WIDTH" nullable="true" remarks="The width of the locker room" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ROOM_HEIGHT" nullable="true" remarks="The height of the locker room" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="SHOW_ROOM_ONLINE" nullable="true" remarks="Whether the locker room should be shown online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="DISPLAY_ON_MAP" nullable="true" remarks="Whether the locker room should be displayed on the online map (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ICON_FILE_ID" nullable="true" remarks="The ID of the icon file to be displayed on the online map" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ICON_FILE_NAME" nullable="true" remarks="The name of the icon file to be displayed on the online map" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="NOTES" nullable="true" remarks="Notes for the locker room" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="IS_RETIRED" nullable="true" remarks="Whether the locker room has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LOCKER_ROOM_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LOCKER_SCHEDULES" numRows="0" remarks="Contains information on locker reservations" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.LOCKER_SCHEDULES &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.LOCKER_SCHEDULE_ID,&#13;&#10;    src.LOCKER_ID,&#13;&#10;    lo1.LOCKER_NAME,&#13;&#10;    lo1.LOCKER_NUMBER,&#13;&#10;    lo1.LOCKER_ROOM_ID,&#13;&#10;    lr1.LOCKER_ROOM_NAME,&#13;&#10;    lo1.LOCKER_BANK_ID,&#13;&#10;    lb1.LOCKER_BANK_NAME,&#13;&#10;    src.START_DATE_TIME,&#13;&#10;    CAST(src.START_DATE_TIME AS DATE) AS START_DATE_ONLY,&#13;&#10;    src.END_DATE_TIME,&#13;&#10;    CAST(src.END_DATE_TIME AS DATE) AS END_DATE_ONLY,&#13;&#10;    lo1.LOCKER_SIZE_ID,&#13;&#10;    ls1.LOCKER_SIZE_NAME,&#13;&#10;    src.TRANSACTION_ID,&#13;&#10;    FORMAT(rh1.RECEIPT_NUMBER, '#.0000') AS RECEIPT_NUMBER,&#13;&#10;    tr1.CREATION_DATE_TIME,&#13;&#10;    CAST(tr1.CREATION_DATE_TIME AS DATE) AS CREATION_DATE_ONLY,&#13;&#10;    tr1.CUSTOMER_ID,&#13;&#10;    CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME) AS CUSTOMER_NAME,&#13;&#10;    tr1.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.LOCKER_SCHEDULE_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.LOCKER_SCHEDULES src&#13;&#10;    JOIN hub.LOCKERS lo1 ON (lo1.ORG_ID = src.ORG_ID AND lo1.LOCKER_ID = src.LOCKER_ID)&#13;&#10;    JOIN hub.LOCKER_ROOMS lr1 ON (lr1.ORG_ID = src.ORG_ID AND lr1.LOCKER_ROOM_ID = lo1.LOCKER_ROOM_ID)&#13;&#10;    LEFT JOIN hub.LOCKER_BANKS lb1 ON (lb1.ORG_ID = src.ORG_ID AND lb1.LOCKER_BANK_ID = lo1.LOCKER_BANK_ID)&#13;&#10;    LEFT JOIN hub.LOCKER_SIZES ls1 ON (ls1.ORG_ID = src.ORG_ID AND ls1.LOCKER_SIZE_ID = lo1.LOCKER_SIZE_ID)&#13;&#10;    LEFT JOIN hub.TRANSACTIONS tr1 ON (tr1.ORG_ID = src.ORG_ID AND tr1.TRANSACTION_ID = src.TRANSACTION_ID)&#13;&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON (rh1.ORG_ID = src.ORG_ID AND rh1.RECEIPT_HEADER_ID = tr1.RECEIPT_HEADER_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = tr1.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.ORG_ID = src.ORG_ID AND co1.COMPANY_ID = tr1.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID);&#13;&#10;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LOCKER_SCHEDULE_ID" nullable="false" remarks="The locker schedule ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LOCKER_ID" nullable="true" remarks="The ID of the reserved locker" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LOCKER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LOCKER_NAME" nullable="true" remarks="The name of the reserved locker" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="LOCKER_NUMBER" nullable="true" remarks="The number of the reserved locker" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="LOCKER_ROOM_ID" nullable="true" remarks="The ID of the locker room containing the reserved locker" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="LOCKER_ROOM_NAME" nullable="true" remarks="The name of the locker room containing the reserved locker" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="LOCKER_BANK_ID" nullable="true" remarks="The ID of the locker bank containing the reserved locker" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="LOCKER_BANK_NAME" nullable="true" remarks="The name of the locker bank containing the reserved locker" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="START_DATE_TIME" nullable="true" remarks="The start date and time of the locker reservation" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="START_DATE_ONLY" nullable="true" remarks="The start date of the locker reservation (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="END_DATE_TIME" nullable="true" remarks="The end date and time of the locker reservation" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="END_DATE_ONLY" nullable="true" remarks="The end date of the locker reservation (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="LOCKER_SIZE_ID" nullable="true" remarks="The ID of the locker size of the reserved locker" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="LOCKER_SIZE_NAME" nullable="true" remarks="The name of the locker size of the reserved locker" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="TRANSACTION_ID" nullable="true" remarks="The transaction ID for the locker reservation" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="RECEIPT_NUMBER" nullable="true" remarks="The receipt number that the transaction belongs to" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="CREATION_DATE_TIME" nullable="true" remarks="The date and time that the transaction was created" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="CREATION_DATE_ONLY" nullable="true" remarks="The date that the transaction was created (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="CUSTOMER_ID" nullable="true" remarks="The ID of the customer who is the participant of the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="CUSTOMER_NAME" nullable="false" remarks="The name of the customer who is the participant of the transaction" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="COMPANY_ID" nullable="true" remarks="The ID of the company who is the owner of the transaction if applicable" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="COMPANY_NAME" nullable="true" remarks="The name of the company who is the owner of the transaction if applicable" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="SITE_ID" nullable="true" remarks="The ID of the site where the locker reservation was created" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="SITE_NAME" nullable="true" remarks="The name of the site where the locker reservation was created" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="WORKSTATION_ID" nullable="true" remarks="The ID of the workstation where the locker reservation was created" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="WORKSTATION_NAME" nullable="true" remarks="The name of the workstation where the locker reservation was created" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who created the locker reservation" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="SYSTEM_USER_NAME" nullable="false" remarks="The name of the system user who created the locker reservation" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="28" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="source_id" nullable="false" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LOCKER_SCHEDULE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LOCKER_SIZES" numRows="0" remarks="Your organization's defined locker sizes" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.LOCKER_SIZES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.LOCKER_SIZE_ID,&#13;&#10;    src.LOCKER_SIZE_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LOCKER_SIZES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LOCKER_SIZE_ID" nullable="false" remarks="The locker size ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="LOCKER_SIZE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_BANKS"/>
            <child catalog="ActiveHub" column="LOCKER_SIZE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_FEES"/>
            <child catalog="ActiveHub" column="LOCKER_SIZE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LOCKER_SIZE_NAME" nullable="true" remarks="The locker size name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="2" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LOCKER_SIZE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="LOCKERS" numRows="0" remarks="Your organization's defined lockers" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.LOCKERS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.LOCKER_ID,&#13;&#10;    src.LOCKER_NAME,&#13;&#10;    src.LOCKER_DESCRIPTION,&#13;&#10;    src.LOCKER_ROOM_ID,&#13;&#10;    lr1.LOCKER_ROOM_NAME,&#13;&#10;    src.LOCKER_BANK_ID,&#13;&#10;    lb1.LOCKER_BANK_NAME,&#13;&#10;    src.LOCKER_NUMBER,&#13;&#10;    src.LOCKER_BANK_INDEX,&#13;&#10;    src.LOCKER_SIZE_ID,&#13;&#10;    ls1.LOCKER_SIZE_NAME,&#13;&#10;    src.COMBINATION_LOCK_ID,&#13;&#10;    src.LOCKER_COMBINATION,&#13;&#10;    src.TIME_PERIOD,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.LOCKERS src&#13;&#10;    JOIN hub.LOCKER_ROOMS lr1 ON (lr1.LOCKER_ROOM_ID = src.LOCKER_ROOM_ID)&#13;&#10;    LEFT JOIN hub.LOCKER_BANKS lb1 ON (lb1.LOCKER_BANK_ID = src.LOCKER_BANK_ID)&#13;&#10;    LEFT JOIN hub.LOCKER_SIZES ls1 ON (ls1.LOCKER_SIZE_ID = src.LOCKER_SIZE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LOCKER_ID" nullable="false" remarks="The locker ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="LOCKER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_DATE_RANGES"/>
            <child catalog="ActiveHub" column="LOCKER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_SCHEDULES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LOCKER_NAME" nullable="true" remarks="The locker name" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LOCKER_DESCRIPTION" nullable="true" remarks="The locker description" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="LOCKER_ROOM_ID" nullable="true" remarks="The ID of the locker room that the locker is in" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LOCKER_ROOM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_ROOMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="LOCKER_ROOM_NAME" nullable="true" remarks="The name of the locker room that the locker is in" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="LOCKER_BANK_ID" nullable="true" remarks="The ID of the locker bank within the locker room" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LOCKER_BANK_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_BANKS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="LOCKER_BANK_NAME" nullable="true" remarks="The name of the locker bank within the locker room" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="LOCKER_NUMBER" nullable="true" remarks="The locker number" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="LOCKER_BANK_INDEX" nullable="true" remarks="The locker's index within the locker bank, generated for sorting lockers for display" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="LOCKER_SIZE_ID" nullable="true" remarks="The locker size ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LOCKER_SIZE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_SIZES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="LOCKER_SIZE_NAME" nullable="true" remarks="The locker size name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="COMBINATION_LOCK_ID" nullable="true" remarks="The combination lock ID if applicable" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="LOCKER_COMBINATION" nullable="true" remarks="The combination of the locker's lock" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="TIME_PERIOD" nullable="true" remarks="The time period to use for locker reservations (Hourly / Daily / Weekly / Monthly (duration) / Monthly (calendar) / Yearly / Defined Date Ranges / Specific Period)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="14" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LOCKER_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="MEMBERSHIP_AUDIT_LOG" numRows="0" remarks="Membership history" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.MEMBERSHIP_AUDIT_LOG&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.MEMBERSHIP_HISTORY_ID,&#13;&#10;    src.BEG_DATESTAMP,&#13;&#10;    src.BEG_DATE_ONLY,&#13;&#10;    src.END_DATESTAMP,&#13;&#10;    src.END_DATE_ONLY,&#13;&#10;    src.HISTORY_TRANSACTION_TYPE,&#13;&#10;    src.TRANSACTION_ID,&#13;&#10;    src.MEMBERSHIP_ID,&#13;&#10;    src.MEMBERSHIP_STATUS,&#13;&#10;    src.DATE_EFFECTIVE,&#13;&#10;    src.DATE_EXPIRES,&#13;&#10;    src.MAX_USES,&#13;&#10;    src.AUTORENEWAL_TYPE,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    pa1.CATEGORY_ID AS PACKAGE_CATEGORY_ID,&#13;&#10;    pc1.CATEGORY_NAME AS PACKAGE_CATEGORY_NAME,&#13;&#10;    IIF(pc1.RETENTION_ELIGIBLE = 'Yes', 1, 0) AS PACKAGE_RETENTION_ELIGIBLE,&#13;&#10;    pc1.RETENTION_ELIGIBLE AS PACKAGE_RETENTION_ELIGIBLE_YES_NO,&#13;&#10;    src.PRIMARYMEMBERCUSTOMER_ID,&#13;&#10;    cu1.CUSTOMER_FIRST_NAME AS MEMBER_FIRST_NAME,&#13;&#10;    cu1.CUSTOMER_LAST_NAME AS MEMBER_LAST_NAME,&#13;&#10;    cu1.CUSTOMER_EMAIL AS PRIMARY_MEMBER_EMAIL,&#13;&#10;    src.MEMBER_SINCE_DATE,&#13;&#10;    src.DATE_SUSPEND_FROM,&#13;&#10;    src.DATE_SUSPEND_TO,&#13;&#10;    src.SUSPENDED_REASON_ID,&#13;&#10;    re2.DESCRIPTION AS SUSPENDED_REASON,&#13;&#10;    src.CANCELLATION_DATE,&#13;&#10;    src.CANCELLATION_DATE_ONLY,&#13;&#10;    src.CANCELLATION_REASON_ID,&#13;&#10;    ISNULL(src.CANCELLATION_REASON, re1.DESCRIPTION) AS CANCELLATION_REASON,&#13;&#10;    (CASE&#13;&#10;        WHEN pc1.RETENTION_ELIGIBLE = 'No' THEN 'Not Retention Eligible' &#13;&#10;        WHEN src.HISTORY_TRANSACTION_TYPE = 'Join' THEN&#13;&#10;            (CASE&#13;&#10;&#9;            WHEN EXISTS (&#13;&#10;                    SELECT 1&#13;&#10;                    FROM hub.MEMBERSHIP_AUDIT_LOG mal2&#13;&#10;&#9;&#9;&#9;        JOIN hub.PACKAGES pa2 ON pa2.ORG_ID = src.ORG_ID AND pa2.PACKAGE_ID = mal2.PACKAGE_ID &#13;&#10;&#9;&#9;&#9;        JOIN hub.PACKAGE_CATEGORIES pc2 ON pc2.ORG_ID = src.ORG_ID AND pc2.PACKAGE_CATEGORY_ID = pa2.CATEGORY_ID&#13;&#10;                    WHERE mal2.PRIMARYMEMBERCUSTOMER_ID = src.PRIMARYMEMBERCUSTOMER_ID &#13;&#10;                    AND mal2.DATE_EXPIRES &gt; DATEADD(Day, - pc2.RETENTION_PERIOD, src.DATE_EFFECTIVE)&#13;&#10;&#9;&#9;&#9;        AND mal2.DATE_EFFECTIVE &lt; src.DATE_EFFECTIVE&#13;&#10;                    AND pc2.RETENTION_ELIGIBLE = 'Yes'&#13;&#10;                    ) THEN 'Reinstated' &#13;&#10;&#9;            ELSE 'New Join' &#13;&#10;                END)&#13;&#10;&#9;&#9;WHEN src.HISTORY_TRANSACTION_TYPE IN ('Renew', 'Renew After Grace') THEN&#13;&#10;            (CASE&#13;&#10;&#9;            WHEN EXISTS (&#13;&#10;                    SELECT 1&#13;&#10;                    FROM hub.MEMBERSHIP_AUDIT_LOG mal2&#13;&#10;&#9;&#9;&#9;        JOIN hub.PACKAGES pa2 ON pa2.ORG_ID = src.ORG_ID AND pa2.PACKAGE_ID = mal2.PACKAGE_ID &#13;&#10;&#9;&#9;&#9;        JOIN hub.PACKAGE_CATEGORIES pc2 ON pc2.ORG_ID = src.ORG_ID AND pc2.PACKAGE_CATEGORY_ID = pa2.CATEGORY_ID&#13;&#10;                    WHERE mal2.PRIMARYMEMBERCUSTOMER_ID = src.PRIMARYMEMBERCUSTOMER_ID &#13;&#10;                    AND pc2.RETENTION_ELIGIBLE = 'Yes'&#13;&#10;                    AND mal2.MEMBERSHIP_HISTORY_ID &lt; src.MEMBERSHIP_HISTORY_ID&#13;&#10;                    AND mal2.MEMBERSHIP_STATUS = 'Expired'&#13;&#10;                    AND mal2.DATE_EXPIRES &gt; DATEADD(Day, - pc2.RETENTION_PERIOD, src.DATE_EXPIRES)&#13;&#10;                    AND mal2.DATE_EXPIRES &lt; src.DATE_EXPIRES&#13;&#10;                    ) THEN 'Reinstated' &#13;&#10;                 ELSE 'Not Applicable'&#13;&#10;                 END)&#13;&#10;        ELSE 'Not Applicable' &#13;&#10;        END) AS JOIN_TYPE,&#13;&#10;    (CASE&#13;&#10;        WHEN pc1.RETENTION_ELIGIBLE = 'No' THEN 'Not Retention Eligible' &#13;&#10;        WHEN src.MEMBERSHIP_STATUS = 'Expired' THEN&#13;&#10;            (CASE&#13;&#10;&#9;            WHEN EXISTS (&#13;&#10;                    SELECT 1&#13;&#10;                    FROM hub.MEMBERSHIP_AUDIT_LOG mal2&#13;&#10;&#9;&#9;&#9;        JOIN hub.PACKAGES pa2 ON pa2.ORG_ID = src.ORG_ID AND pa2.PACKAGE_ID = mal2.PACKAGE_ID &#13;&#10;&#9;&#9;&#9;        JOIN hub.PACKAGE_CATEGORIES pc2 ON pc2.ORG_ID = src.ORG_ID AND pc2.PACKAGE_CATEGORY_ID = pa2.CATEGORY_ID&#13;&#10;                    WHERE mal2.PRIMARYMEMBERCUSTOMER_ID = src.PRIMARYMEMBERCUSTOMER_ID &#13;&#10;                    AND mal2.MEMBERSHIP_HISTORY_ID &gt; src.MEMBERSHIP_HISTORY_ID &#13;&#10;&#9;&#9;&#9;        AND pc2.RETENTION_ELIGIBLE = 'Yes'&#13;&#10;&#9;&#9;            AND (&#13;&#10;&#9;&#9;&#9;&#9;&#9;&#9;(mal2.DATE_EFFECTIVE &gt;= src.DATE_EXPIRES AND mal2.DATE_EFFECTIVE &lt;= DATEADD(Day, pc2.RETENTION_PERIOD, src.DATE_EXPIRES))&#13;&#10;&#9;&#9;&#9;&#9;&#9;&#9;OR &#13;&#10;&#9;&#9;&#9;&#9;&#9;&#9;((mal2.HISTORY_TRANSACTION_TYPE in ('Renew','Renew After Grace')) AND (src.CANCELLATION_DATE IS NULL OR mal2.BEG_DATESTAMP &lt;= DATEADD(Day, pc2.RETENTION_PERIOD, src.CANCELLATION_DATE)))&#13;&#10;&#9;&#9;&#9;&#9;&#9;&#9;)&#13;&#10;                    ) THEN 'Recaptured' &#13;&#10;                WHEN src.DATE_EXPIRES &lt; DATEADD(Day, - pc1.RETENTION_PERIOD, CAST(GETDATE() AS DATE)) THEN 'Terminated'&#13;&#10;                ELSE 'Termination Pending'&#13;&#10;                END)&#13;&#10;        WHEN src.MEMBERSHIP_STATUS = 'Refunded' AND src.CANCELLED_ON_DATE IS NOT NULL THEN&#13;&#10;            (CASE&#13;&#10;&#9;            WHEN EXISTS (&#13;&#10;                    SELECT 1&#13;&#10;                    FROM hub.MEMBERSHIP_AUDIT_LOG mal2&#13;&#10;&#9;&#9;&#9;        JOIN hub.PACKAGES pa2 ON pa2.ORG_ID = src.ORG_ID AND pa2.PACKAGE_ID = mal2.PACKAGE_ID &#13;&#10;&#9;&#9;&#9;        JOIN hub.PACKAGE_CATEGORIES pc2 ON pc2.ORG_ID = src.ORG_ID AND pc2.PACKAGE_CATEGORY_ID = pa2.CATEGORY_ID&#13;&#10;                    WHERE mal2.PRIMARYMEMBERCUSTOMER_ID = src.PRIMARYMEMBERCUSTOMER_ID &#13;&#10;                    AND mal2.MEMBERSHIP_HISTORY_ID &gt; src.MEMBERSHIP_HISTORY_ID &#13;&#10;                    AND mal2.DATE_EFFECTIVE &gt;= src.CANCELLED_ON_DATE&#13;&#10;                    AND mal2.DATE_EFFECTIVE &lt;= DATEADD(Day, pc2.RETENTION_PERIOD, src.CANCELLED_ON_DATE)&#13;&#10;&#9;&#9;&#9;        AND pc2.RETENTION_ELIGIBLE = 'Yes'&#13;&#10;                    ) THEN 'Recaptured' &#13;&#10;                WHEN src.CANCELLED_ON_DATE &lt; DATEADD(Day, - pc1.RETENTION_PERIOD, CAST(GETDATE() AS DATE)) THEN 'Terminated'&#13;&#10;                ELSE 'Termination Pending'&#13;&#10;&#9;&#9;&#9;END) &#13;&#10;&#9;&#9;END) AS TERMINATION_TYPE,&#13;&#10;    src.VOIDED,&#13;&#10;    src.VOIDED_YES_NO,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    su1.USER_FIRST_NAME AS SYSTEM_USER_FIRST_NAME,&#13;&#10;    su1.USER_LAST_NAME AS SYSTEM_USER_LAST_NAME,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.CANCELLED_ON_DATE,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;&#9;ISNULL(ma1.PACKAGE_ID , 0) AS TRANSFERRED_FROM_PACKAGE_ID,&#13;&#10;    ISNULL(ma1.PACKAGE_NAME, 'Not Applicable') AS TRANSFERRED_FROM_PACKAGE,&#13;&#10;&#9;ISNULL(ma1.SITE_ID, 0) AS TRANSFERRED_FROM_SITE_ID,&#13;&#10;    ISNULL(ma1.SITE_NAME, 'Not Applicable' ) AS TRANSFERRED_FROM_SITE_NAME,&#13;&#10;    src.MEMBERSHIP_HISTORY_ID AS source_id&#13;&#10;FROM &#13;&#10;    hub.MEMBERSHIP_AUDIT_LOG src&#13;&#10;    JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = src.PRIMARYMEMBERCUSTOMER_ID)&#13;&#10;    JOIN hub.PACKAGES pa1 ON (pa1.ORG_ID = src.ORG_ID AND pa1.PACKAGE_ID = src.PACKAGE_ID)&#13;&#10;    JOIN hub.PACKAGE_CATEGORIES pc1 ON (pc1.ORG_ID = src.ORG_ID AND pc1.PACKAGE_CATEGORY_ID = pa1.CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.REASONS re1 ON (re1.ORG_ID = src.ORG_ID AND re1.REASON_ID = src.CANCELLATION_REASON_ID)&#13;&#10;    LEFT JOIN hub.REASONS re2 ON (re2.ORG_ID = src.ORG_ID AND re2.REASON_ID = src.SUSPENDED_REASON_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    OUTER APPLY(&#13;&#10;        SELECT TOP(1)&#13;&#10;            pa2.PACKAGE_ID,&#13;&#10;            pa2.PACKAGE_NAME,&#13;&#10;            si2.SITE_ID,&#13;&#10;            si2.SITE_NAME &#13;&#10;&#9;    FROM &#13;&#10;            hub.MEMBERSHIP_AUDIT_LOG mal2 WITH(FORCESEEK)&#13;&#10;    &#9;    INNER JOIN hub.PACKAGES pa2 ON (pa2.ORG_ID = mal2.ORG_ID AND pa2.PACKAGE_ID = mal2.PACKAGE_ID)&#13;&#10;&#9;        INNER JOIN hub.SITES si2 ON (si2.ORG_ID = mal2.ORG_ID AND si2.SITE_ID = mal2.SITE_ID)&#13;&#10;        WHERE &#13;&#10;            src.history_transaction_type = 'Transfer'&#13;&#10;            AND mal2.ORG_ID = src.ORG_ID &#13;&#10;            AND mal2.membership_id = src.MEMBERSHIP_ID &#13;&#10;            AND mal2.membership_history_id &lt; src.membership_history_id&#13;&#10;        ORDER BY mal2.membership_history_id DESC&#13;&#10;    ) ma1;&#13;&#10;(CONVERT([date],[BEG_DATESTAMP]))(CONVERT([date],[END_DATESTAMP]))(CONVERT([date],[CANCELLATION_DATE]))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="MEMBERSHIP_HISTORY_ID" nullable="true" remarks="This membership history ID is for troubleshooting purposes" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="1" name="BEG_DATESTAMP" nullable="true" remarks="The date and time the membership enters a status as a result of either a transaction or a manual change on the Membership Inquiry page" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="BEG_DATE_ONLY" nullable="true" remarks="The date the membership enters a status as a result of either a transaction or a manual change on the Membership Inquiry page (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="3" name="END_DATESTAMP" nullable="true" remarks="The date and time the membership exits a status as a result of either a transaction or a manual change on the Membership Inquiry page" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="END_DATE_ONLY" nullable="true" remarks="The date the membership exits a status as a result of either a transaction or a manual change on the Membership Inquiry page (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="HISTORY_TRANSACTION_TYPE" nullable="true" remarks="This indicates the origin or cause of the membership change:&#13;&#10;&#13;&#10;    0 None&#13;&#10;    1 Join&#13;&#10;    2 Transfer&#13;&#10;    3 Renew&#13;&#10;    4 Renew After Grace&#13;&#10;    5 Refund And Cancel&#13;&#10;    6 Refund&#13;&#10;    7 Fee Adjust&#13;&#10;    8 Modify&#13;&#10;    9 Pass Refund&#13;&#10;    20 Status Change&#13;&#10;    21 Becomes Effective&#13;&#10;    22 Becomes Suspended&#13;&#10;    23 Becomes Unsuspended" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="TRANSACTION_ID" nullable="true" remarks="The transaction ID of the transaction type for the membership change." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="MEMBERSHIP_ID" nullable="true" remarks="Membership ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="MEMBERSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="MEMBERSHIP_STATUS" nullable="true" remarks="Membership status, including Pending, Active, Voided, Refunded, Renewing, Deferred Commit" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="DATE_EFFECTIVE" nullable="true" remarks="The date when the membership became effective" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="DATE_EXPIRES" nullable="true" remarks="The expiry date of the membership" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="MAX_USES" nullable="true" remarks="For a punch card membership, this is the maximum number of uses for this membership (not the remaining number of uses)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="AUTORENEWAL_TYPE" nullable="true" remarks="The payment method selected for an auto-renewal membership&#13;&#10;&#13;&#10;    0 Not autorenewed&#13;&#10;    1 By credit card&#13;&#10;    2 By EFT&#13;&#10;    3 By manual deduction&#13;&#10;    4 By payment plan" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="PACKAGE_ID" nullable="true" remarks="The ID of the membership package" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PACKAGE_NAME" nullable="true" remarks="Name of the membership package" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="The ID of the package category" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package Category Name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="PACKAGE_RETENTION_ELIGIBLE" nullable="false" remarks="Whether this package is a retention eligible package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="PACKAGE_RETENTION_ELIGIBLE_YES_NO" nullable="true" remarks="Whether this package is a retention eligible package." size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="PRIMARYMEMBERCUSTOMER_ID" nullable="true" remarks="The ID for the primary member" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="MEMBER_FIRST_NAME" nullable="true" remarks="First name of the primary member" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="MEMBER_LAST_NAME" nullable="true" remarks="Last name of the primary member" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="PRIMARY_MEMBER_EMAIL" nullable="true" remarks="Emaild address of the primary member" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="MEMBER_SINCE_DATE" nullable="true" remarks="The date when the customer purchased a valid membership&#13;&#10;&#13;&#10;If the previous membership package expired, then the date when the customer purchased a new package is the new &quot;Member Since Date&quot;" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="DATE_SUSPEND_FROM" nullable="true" remarks="The date when the membership was suspended" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="DATE_SUSPEND_TO" nullable="true" remarks="The date when the membership's suspension ended" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="SUSPENDED_REASON_ID" nullable="true" remarks="The Reason ID for the membership suspension" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="REASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="SUSPENDED_REASON" nullable="true" remarks="The reason this package was suspended" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="28" name="CANCELLATION_DATE" nullable="true" remarks="The date that the membership was either manually cancelled, or was scheduled for termination on." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="CANCELLATION_DATE_ONLY" nullable="true" remarks="The date that the membership was either manually cancelled, or was scheduled for termination on (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="CANCELLATION_REASON_ID" nullable="true" remarks="The Reason ID for the membership package termination" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="REASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="CANCELLATION_REASON" nullable="true" remarks="The reason this package was cancelled" size="800" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="JOIN_TYPE" nullable="false" remarks="Whether the sale of a new retention eligible membership constitutes a new join, or is considered to be reinstated because a prior retention eligible membership ended within the grace period. Other actions for a retention eligible membership will show as not applicable. (New Join / Reinstated / Not Applicable / Not Retention Eligible)" size="22" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="TERMINATION_TYPE" nullable="true" remarks="Whether the expiry or cancellation of a retention eligible membership constitutes a termination, is considered to be recaptured as another retention eligible membership was purchased within the grace period, or is still pending termination as the grace period has not yet passed. Other actions for a retention eligible membership will show as not applicable. (Termination Pending / Terminated / Recaptured / Not Applicable / Not Retention Eligible)" size="22" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="VOIDED" nullable="true" remarks="Whether this transaction has been voided" size="1" type="bit" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="VOIDED_YES_NO" nullable="true" remarks="Whether this transaction has been voided." size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="SITE_ID" nullable="true" remarks="The ID of the site to which this package belongs" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="SITE_NAME" nullable="true" remarks="The name of the site to which this package belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who performed the membership change" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="SYSTEM_USER_FIRST_NAME" nullable="true" remarks="First name of the system user" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="SYSTEM_USER_LAST_NAME" nullable="true" remarks="Last name of the system user" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="WORKSTATION_ID" nullable="true" remarks="The ID of the workstation where the membership change was made" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="WORKSTATION_NAME" nullable="true" remarks="The name of the workstation where the membership change was made" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="CANCELLED_ON_DATE" nullable="true" remarks="The last date that the membership was active and able to be used before it expired or was cancelled. If a cancellation results in a retroactive change to the final expiration date then the date the cancellation was processed is used here." size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="46" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="TRANSFERRED_FROM_PACKAGE_ID" nullable="false" remarks="For a Transaction Type of &quot;Transfer&quot;, the previous Package ID, otherwise 0." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="TRANSFERRED_FROM_PACKAGE" nullable="false" remarks="For a Transaction Type of &quot;Transfer&quot;, the previous Package Name, otherwise &quot;Not Applicable.&quot;" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="TRANSFERRED_FROM_SITE_ID" nullable="false" remarks="For a Transaction Type of &quot;Transfer&quot;, the previous Site ID, otherwise 0." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="TRANSFERRED_FROM_SITE_NAME" nullable="false" remarks="For a Transaction Type of &quot;Transfer&quot;, the previous Site Name, otherwise &quot;Not Applicable.&quot;" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="MEMBERSHIP_HISTORY_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="MEMBERSHIP_CUSTOMER_PACKAGE_HISTORY" numRows="0" remarks="History of membership package holder customers" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.MEMBERSHIP_CUSTOMER_PACKAGE_HISTORY &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;&#9;src.ORG_ID,&#13;&#10;&#9;src.MEMBERSHIP_ID,&#13;&#10;&#9;src.CUSTOMER_ID,&#13;&#10;&#9;src.PACKAGE_ID,&#13;&#10;&#9;src.PASS_ID,&#13;&#10;&#9;src.PASSNUMBER,&#13;&#10;&#9;src.VALID_PASS,&#13;&#10;&#9;src.VALID_FROM,&#13;&#10;&#9;src.VALID_TO,&#13;&#10;&#9;src.BEG_DATESTAMP,&#13;&#10;&#9;src.END_DATESTAMP,&#13;&#10;&#9;src.ROW_VERSION_FROM,&#13;&#10;&#9;src.ROW_VERSION,&#13;&#10;&#9;src.LAST_SYNC_TIME,&#13;&#10;&#9;src.ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM &#13;&#10;    hub.MEMBERSHIP_CUSTOMER_PACKAGE_HISTORY src&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="false" remarks="Id of the parent organization of membership" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="MEMBERSHIP_ID" nullable="false" remarks="The ID of the membership that the customer is associated with." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMER_ID" nullable="false" remarks="The ID for the primary member" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PACKAGE_ID" nullable="false" remarks="The ID of the most recent package for the customer on the membership." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PASS_ID" nullable="false" remarks="The ID of the most recent pass for the customer on the membership. Historical data will have the value (0)." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PASSNUMBER" nullable="false" remarks="The most recent pass number for the customer on the membership. Historical data will be empty." size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="VALID_PASS" nullable="false" remarks="Does customer currently have a pass associated to the membership?" size="1" type="bit" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="VALID_FROM" nullable="false" remarks="When the customer was first associated to the memebership" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="VALID_TO" nullable="false" remarks="Expiration date of the membership or the date the customer was no longer associated with the membership" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="BEG_DATESTAMP" nullable="true" remarks="The start datetime when the customer was first associated to the memebership" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="11" name="END_DATESTAMP" nullable="true" remarks="The end datetime of the membership or the datetime the customer was no longer associated with the membership" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ROW_VERSION_FROM" nullable="false" remarks="" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ROW_VERSION" nullable="false" remarks="" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="14" name="LAST_SYNC_TIME" nullable="false" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ACTIVE_HUB_PROCESS_ID" nullable="false" remarks="" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="MEMBERSHIP_RISK" numRows="0" remarks="" schema="dbo" type="VIEW" viewSql="&#9;&#9;&#9;&#9;&#9;&#13;&#10;CREATE VIEW dbo.MEMBERSHIP_RISK &#13;&#10;AS &#9;&#13;&#10;SELECT&#13;&#10;&#9;mr1.ORG_ID,&#13;&#10;&#9;mr1.SITE_ID,&#13;&#10;&#9;mr1.PACKAGE_ID,&#13;&#10;&#9;mr1.PACKAGE_CATEGORY_ID,&#13;&#10;&#9;mr1.MEMBERSHIP_ID,&#13;&#10;&#9;me1.PRIMARY_MEMBER_CUSTOMER_ID,&#13;&#10;&#9;mr1.CUSTOMER_AGE,&#13;&#10;&#9;mr1.CUST_TRAN_COUNT,&#13;&#10;&#9;mr1.CUSTOMER_DISTANCE,&#13;&#10;&#9;mr1.DAYS_SINCE_USED,&#13;&#10;&#9;mr1.MEMBERSHIP_AGE,&#13;&#10;&#9;mr1.PACKAGE_PERIOD,&#13;&#10;&#9;mr1.PASS_COUNT,&#13;&#10;&#9;mr1.RENEWAL_COUNT,&#13;&#10;&#9;mr1.USAGE_COUNT,&#13;&#10;&#9;IIF(mr1.IS_FAMILY_MEMBERSHIP = 0, 'No', 'Yes') AS IS_FAMILY_MEMBERSHIP,&#13;&#10;&#9;IIF(mr1.IS_SALE_DISCOUNTED = 0, 'No', 'Yes') AS IS_SALE_DISCOUNTED,&#13;&#10;&#9;mr1.UNIT_FEE,&#13;&#10;&#9;mr1.AS_OF,&#13;&#10;&#9;mr1.MEMBERSHIP_TYPE,&#13;&#10;&#9;CASE mr1.AUTO_RENEWAL_TYPE&#13;&#10;&#9;&#9;WHEN 0 THEN 'Not autorenewed'&#13;&#10;&#9;&#9;WHEN 1 THEN 'By credit card'&#13;&#10;&#9;&#9;WHEN 2 THEN 'By EFT'&#13;&#10;&#9;&#9;WHEN 3 THEN 'By manual deduction'&#13;&#10;&#9;&#9;WHEN 4 THEN 'By payment plan'&#13;&#10;&#9;&#9;ELSE 'OTHER'&#13;&#10;&#9;&#9;END AS MEMBERSHIP_AUTORENEWAL_TYPE,&#13;&#10;&#9;mr1.DAYS_SINCE_TRAN,&#13;&#10;&#9;mr1.CREATED_DT,&#13;&#10;&#9;mr1.CAPTURE_DT,&#13;&#10;&#9;mr1.RISK_CATEGORY,&#13;&#10;&#9;CASE &#13;&#10;&#9;&#9;WHEN mr1.RETENTION_SCORE &lt; 0 THEN 0&#13;&#10;&#9;&#9;WHEN mr1.RETENTION_SCORE &gt; 100 THEN 100&#13;&#10;&#9;&#9;ELSE mr1.RETENTION_SCORE&#13;&#10;&#9;&#9;END AS RETENTION_SCORE,&#13;&#10;&#9;CASE &#13;&#10;        WHEN mr1.RISK_CATEGORY = 'Risk'&#13;&#10;        THEN JSON_VALUE(mr1.RISK_FACTOR_REASONS, '$[0].description') &#13;&#10;        ELSE NULL &#13;&#10;    END AS REASON_1,         &#13;&#10;    CASE &#13;&#10;        WHEN mr1.RISK_CATEGORY = 'Risk' &#13;&#10;        THEN JSON_VALUE(mr1.RISK_FACTOR_REASONS, '$[1].description') &#13;&#10;        ELSE NULL &#13;&#10;    END AS REASON_2,         &#13;&#10;    CASE &#13;&#10;        WHEN mr1.RISK_CATEGORY = 'Risk' &#13;&#10;        THEN JSON_VALUE(mr1.RISK_FACTOR_REASONS, '$[2].description') &#13;&#10;        ELSE NULL &#13;&#10;    END AS REASON_3,         &#13;&#10;    CASE &#13;&#10;        WHEN mr1.RISK_CATEGORY = 'Risk' &#13;&#10;        THEN JSON_VALUE(mr1.RISK_FACTOR_REASONS, '$[3].description') &#13;&#10;        ELSE NULL &#13;&#10;    END AS REASON_4,&#13;&#10;&#9;CASE &#13;&#10;&#9;&#9;WHEN mr1.RETENTION_SCORE &lt; mr2.score_red_top_bnd THEN 'Red'&#13;&#10;&#9;&#9;WHEN mr1.RETENTION_SCORE &gt; mr2.score_yellow_top_bnd THEN 'Green'&#13;&#10;&#9;&#9;ELSE 'Yellow'&#13;&#10;&#9;&#9;END AS BUCKET&#13;&#10;FROM &#13;&#10;&#9;hub.MEMBERSHIP_RISK mr1&#13;&#10;&#9;INNER JOIN hub.MEMBERSHIP_RISK_STATS mr2 ON(mr1.ORG_ID = mr2.ORG_ID AND mr1.AS_OF = mr2.AS_OF AND mr1.MEMBERSHIP_TYPE = mr2.MEMBERSHIP_TYPE)&#13;&#10;&#9;OUTER APPLY(&#13;&#10;&#9;&#9;SELECT TOP(1) me1.PRIMARY_MEMBER_CUSTOMER_ID,me1.ORG_ID&#13;&#10;&#9;&#9;FROM hub.MEMBERSHIPS me1 &#13;&#10;&#9;&#9;WHERE &#13;&#10;&#9;&#9;&#9;me1.ORG_ID = mr1.ORG_ID AND &#13;&#10;&#9;&#9;&#9;me1.MEMBERSHIP_ID = mr1.MEMBERSHIP_ID AND &#13;&#10;&#9;&#9;&#9;me1.IS_PRIMARY = 'Yes'&#13;&#10;&#9;&#9;ORDER BY me1.LAST_SYNC_TIME&#13;&#10;&#9;) me1&#13;&#10;WHERE mr1.[RETENTION_SCORE] IS NOT NULL;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ORG_ID" nullable="false" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SITE_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PACKAGE_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="MEMBERSHIP_ID" nullable="false" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PRIMARY_MEMBER_CUSTOMER_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOMER_AGE" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CUST_TRAN_COUNT" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="CUSTOMER_DISTANCE" nullable="true" remarks="" size="21" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="DAYS_SINCE_USED" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="MEMBERSHIP_AGE" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="PACKAGE_PERIOD" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="PASS_COUNT" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="RENEWAL_COUNT" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="USAGE_COUNT" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="IS_FAMILY_MEMBERSHIP" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="IS_SALE_DISCOUNTED" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="17" name="UNIT_FEE" nullable="true" remarks="" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="AS_OF" nullable="true" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="MEMBERSHIP_TYPE" nullable="true" remarks="" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="MEMBERSHIP_AUTORENEWAL_TYPE" nullable="false" remarks="" size="19" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="DAYS_SINCE_TRAN" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="22" name="CREATED_DT" nullable="false" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="23" name="CAPTURE_DT" nullable="false" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="RISK_CATEGORY" nullable="false" remarks="" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="25" name="RETENTION_SCORE" nullable="true" remarks="" size="21" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="REASON_1" nullable="true" remarks="" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="REASON_2" nullable="true" remarks="" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="REASON_3" nullable="true" remarks="" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="REASON_4" nullable="true" remarks="" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="BUCKET" nullable="false" remarks="" size="6" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="MEMBERSHIP_RISK_SCORE" numRows="0" remarks="Membership retention scoring and CLASSification" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.MEMBERSHIP_RISK_SCORE &#13;&#10;AS&#13;&#10;    SELECT&#13;&#10;&#9;    mr1.ORG_ID,&#13;&#10;&#9;&#9;mr1.SITE_ID,&#13;&#10;&#9;&#9;mr1.PACKAGE_ID,&#13;&#10;&#9;&#9;mr1.PACKAGECATEGORY_ID,&#13;&#10;&#9;&#9;mr1.MEMBERSHIP_ID,&#13;&#10;&#9;&#9;me1.PRIMARY_MEMBER_CUSTOMER_ID,&#13;&#10;        mr1.AGE,&#13;&#10;        mr1.CUST_TRAN_COUNT,&#13;&#10;        mr1.CUSTOMER_DISTANCE,&#13;&#10;        mr1.DAYS_SINCE_USED,&#13;&#10;        mr1.MEMBERSHIP_AGE,&#13;&#10;        mr1.PACKAGE_PERIOD,&#13;&#10;        mr1.PASS_COUNT,&#13;&#10;        mr1.RENEWAL_COUNT,&#13;&#10;        mr1.USAGE_COUNT,&#13;&#10;        IIF(mr1.FAMILY_MEMBERSHIP = 0, 'No', 'Yes') AS FAMILY_MEMBERSHIP,&#13;&#10;        IIF(mr1.SALE_DISCOUNTED = 0, 'No', 'Yes') AS SALE_DISCOUNTED,&#13;&#10;        mr1.UNITFEE,&#13;&#10;        mr1.AS_OF,&#13;&#10;        mr1.MEMBERSHIP_TYPE,&#13;&#10;        CASE mr1.AUTORENEWALTYPE&#13;&#10;            WHEN 0 THEN 'Not autorenewed'&#13;&#10;            WHEN 1 THEN 'By credit card'&#13;&#10;            WHEN 2 THEN 'By EFT'&#13;&#10;            WHEN 3 THEN 'By manual deduction'&#13;&#10;            WHEN 4 THEN 'By payment plan'&#13;&#10;            ELSE 'OTHER'&#13;&#10;            END AS MEMBERSHIP_AUTORENEWAL_TYPE,&#13;&#10;        mr1.DAYS_SINCE_TRAN,&#13;&#10;        mr1.CREATED_DT,&#13;&#10;        mr1.CAPTURE_DT,&#13;&#10;        mr1.CLASS,&#13;&#10;        CASE &#13;&#10;            WHEN mr1.[RETENTION_SCORE] &lt; 0 THEN 0&#13;&#10;            WHEN mr1.[RETENTION_SCORE] &gt; 100 THEN 100&#13;&#10;            ELSE mr1.[RETENTION_SCORE]&#13;&#10;            END AS RETENTION_SCORE,&#13;&#10;        CASE &#13;&#10;            WHEN mr1.[RETENTION_SCORE] &lt; mr2.score_red_top_bnd THEN 'Red'&#13;&#10;            WHEN mr1.[RETENTION_SCORE] &gt; mr2.score_yellow_top_bnd THEN 'Green'&#13;&#10;            ELSE 'Yellow'&#13;&#10;            END AS BUCKET&#13;&#10;    FROM &#13;&#10;        hub.MEMBERSHIP_RISK_SCORE mr1&#13;&#10;        INNER JOIN hub.Membership_Risk_Stats mr2 ON(mr1.ORG_ID = mr2.ORG_ID AND mr1.AS_OF = mr2.AS_OF AND mr1.MEMBERSHIP_TYPE = mr2.MEMBERSHIP_TYPE)&#13;&#10;        OUTER APPLY(&#13;&#10;            SELECT TOP(1) me1.PRIMARY_MEMBER_CUSTOMER_ID,me1.ORG_ID&#13;&#10;            FROM hub.MEMBERSHIPS me1 &#13;&#10;            WHERE &#13;&#10;                me1.ORG_ID = mr1.ORG_ID AND &#13;&#10;                me1.MEMBERSHIP_ID = mr1.MEMBERSHIP_ID AND &#13;&#10;                me1.IS_PRIMARY = 'Yes'&#13;&#10;            ORDER BY me1.LAST_SYNC_TIME&#13;&#10;        ) me1&#13;&#10;    WHERE mr1.[RETENTION_SCORE] IS NOT NULL;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ORG_ID" nullable="false" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SITE_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PACKAGE_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PACKAGECATEGORY_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="MEMBERSHIP_ID" nullable="false" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PRIMARY_MEMBER_CUSTOMER_ID" nullable="true" remarks="The primary customer ID to which the membership package is assigned." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="AGE" nullable="true" remarks="Customer age in years" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CUST_TRAN_COUNT" nullable="true" remarks="Pass-holder non-memberships transactions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="CUSTOMER_DISTANCE" nullable="true" remarks="Primary member customer distance from membership package site" size="21" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="DAYS_SINCE_USED" nullable="true" remarks="Days since membership last used" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="MEMBERSHIP_AGE" nullable="true" remarks="Membership age in days" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="PACKAGE_PERIOD" nullable="true" remarks="Package period in days" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="PASS_COUNT" nullable="true" remarks="Number of passes assigned to membership" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="RENEWAL_COUNT" nullable="true" remarks="Number of renewals of membership" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="USAGE_COUNT" nullable="true" remarks="Number of membership usages of membership" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="FAMILY_MEMBERSHIP" nullable="false" remarks="Is the membership a family membership" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SALE_DISCOUNTED" nullable="false" remarks="Was memebership discounted at sale" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="17" name="UNITFEE" nullable="true" remarks="Unit price of membership" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="AS_OF" nullable="true" remarks="Date used to compute RETENTION_SCORE" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="MEMBERSHIP_TYPE" nullable="true" remarks="" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="MEMBERSHIP_AUTORENEWAL_TYPE" nullable="false" remarks="Type of auto-renewal for membership at time of scoring &#13;&#10;- Not auto renewed &#13;&#10;- By credit card &#13;&#10;- By EFT &#13;&#10;- By manual deduction &#13;&#10;- By payment plan" size="19" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="DAYS_SINCE_TRAN" nullable="true" remarks="Days since a non-membership Transaction for all pass holders" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="22" name="CREATED_DT" nullable="true" remarks="Date membership risk was first calculated" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="23" name="CAPTURE_DT" nullable="true" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="CLASS" nullable="true" remarks="Predicted CLASSification of membership renewal independent of RETENTION_SCORE (Risk, Retain)" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="25" name="RETENTION_SCORE" nullable="true" remarks="Predicted likelyhood of membership being renewed (0 = least likely, 100 = most likely)" size="21" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="BUCKET" nullable="false" remarks="Ranking of memberships by (From Red, group least likely to renew, to Yellow, to Green, group most likely to renew" size="6" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="MEMBERSHIP_USAGE" numRows="0" remarks="Membership pass usage history" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.MEMBERSHIP_USAGE &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME AS PACKAGE,&#13;&#10;    pa1.CATEGORY_ID AS PACKAGECATEGORY_ID,&#13;&#10;    pc1.CATEGORY_NAME AS PACKAGE_CATEGORY,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME AS SITE,&#13;&#10;    src.MEMBER_SINCE_DATE,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME) AS MEMBER_NAME,&#13;&#10;    cu1.CUSTOMER_FIRST_NAME AS MEMBER_FIRST_NAME,&#13;&#10;    cu1.CUSTOMER_LAST_NAME AS MEMBER_LAST_NAME,&#13;&#10;    cu1.DATE_OF_BIRTH,&#13;&#10;    cu1.CUSTOMER_ADDRESS1 AS ADDRESS,&#13;&#10;    cu1.CITY AS CUSTOMER_CITY,&#13;&#10;    cu1.STATE_PROVINCE AS CUSTOMER_PROV_STATE,&#13;&#10;    cu1.HOMEPHONE AS CUSTOMER_HOME_PHONE,&#13;&#10;    cu1.CUSTOMER_EMAIL,&#13;&#10;    cu1.ZIP_POSTALCODE AS CUSTOMER_POSTAL_ZIP_CODE,&#13;&#10;    src.USAGE_DATE,&#13;&#10;    src.USAGE_TIME,&#13;&#10;    src.JOIN_DATE,&#13;&#10;    src.EXPIRATION_DATE,&#13;&#10;    src.SUSPEND_FROM_DATE,&#13;&#10;    src.SUSPEND_TO_DATE,&#13;&#10;    src.ENTRYPOINT_ID,&#13;&#10;    ep2.ENTRY_POINT_NAME AS ENTRY_POINT,&#13;&#10;    src.REASON_DECLINED,&#13;&#10;    cu1.CUSTOMER_TYPE_ID AS CUSTOMERTYPE_ID,&#13;&#10;    ct1.CUSTOMER_TYPE_NAME AS CUSTOMER_TYPE,&#13;&#10;    src.PASS_NUMBER,&#13;&#10;    src.VOIDED,&#13;&#10;    (CASE WHEN src.CUSTOMER_ALTERNATE_KEY_ID IS NOT NULL THEN 'Yes' ELSE 'No' END) AS AKT_IND,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.MEMBERSHIP_ID,&#13;&#10;    ak2.ALTERNATE_KEY_TYPE,&#13;&#10;    ak1.ALTERNATE_KEY_STATUS,&#13;&#10;    cak.ALTERNATE_KEY_VALUE,&#13;&#10;    src.CHECKOUT_DATE,&#13;&#10;    src.CHECKOUT_TIME,&#13;&#10;    src.CHECKOUT_ENTRY_POINT_ID,&#13;&#10;    ep1.ENTRY_POINT_NAME AS CHECKOUT_ENTRY_POINT,&#13;&#10;    src.AUTHORIZED,&#13;&#10;    src.QUANTITY,&#13;&#10;    src.MEMBERSHIPUSAGE_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.PASS_ID,&#13;&#10;    cak.ALTERNATE_KEY_TYPE_ID,&#13;&#10;    cak.ALTERNATE_KEY_STATUS_ID,&#13;&#10;    src.POSPRODUCT_ID,&#13;&#10;    ppr.PRODUCT_NAME,&#13;&#10;    src.RECEIPT_NUMBER,&#13;&#10;    src.CUSTOMER_ALTERNATE_KEY_ID&#13;&#10;FROM &#13;&#10;    hub.MEMBERSHIP_USAGE src&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMER_ALTERNATE_KEYS cak ON (cak.CUSTOMER_ALTERNATE_KEY_ID = src.CUSTOMER_ALTERNATE_KEY_ID)&#13;&#10;    LEFT JOIN hub.ALTERNATE_KEY_STATUSES ak1 ON (ak1.ALTERNATE_KEY_STATUS_ID = cak.ALTERNATE_KEY_STATUS_ID)&#13;&#10;    LEFT JOIN hub.ALTERNATE_KEY_TYPES ak2 ON (ak2.ALTERNATE_KEY_TYPE_ID = cak.ALTERNATE_KEY_TYPE_ID)&#13;&#10;    LEFT JOIN hub.ENTRY_POINTS ep1 ON (ep1.ENTRYPOINT_ID = src.CHECKOUT_ENTRY_POINT_ID)&#13;&#10;    LEFT JOIN hub.ENTRY_POINTS ep2 ON (ep2.ENTRYPOINT_ID = src.ENTRYPOINT_ID)&#13;&#10;    LEFT JOIN hub.PACKAGES pa1 ON (pa1.PACKAGE_ID = src.PACKAGE_ID)&#13;&#10;    LEFT JOIN hub.PACKAGE_CATEGORIES pc1 ON (pc1.PACKAGE_CATEGORY_ID = pa1.CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.POS_PRODUCTS ppr ON (ppr.POSPRODUCT_ID = src.POSPRODUCT_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMER_TYPES ct1 ON (ct1.CUSTOMER_TYPE_ID = cu1.CUSTOMER_TYPE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="System Generated key value.  No significance to membership data" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PACKAGE_ID" nullable="true" remarks="The membership package ID." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PACKAGE" nullable="true" remarks="The membership package name." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PACKAGECATEGORY_ID" nullable="true" remarks="Package Category ID of the membership package" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PACKAGE_CATEGORY" nullable="true" remarks="The membership package category name." size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SITE_ID" nullable="true" remarks="Site ID for the membership package" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SITE" nullable="true" remarks="Site name for the membership package" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="MEMBER_SINCE_DATE" nullable="true" remarks="The original date on which the customer purchased a valid retention eligible membership within the defined retention period. For a single customer, there is only one member since date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CUSTOMER_ID" nullable="true" remarks="The ID for the member." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="MEMBER_NAME" nullable="false" remarks="The full name of the member." size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="MEMBER_FIRST_NAME" nullable="true" remarks="The first name of the member." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="MEMBER_LAST_NAME" nullable="true" remarks="The last name of the member." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="12" name="DATE_OF_BIRTH" nullable="true" remarks="DOB of the customer who used the facility" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ADDRESS" nullable="true" remarks="Customer's address 1" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="CUSTOMER_CITY" nullable="true" remarks="Customer's residential address city" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="CUSTOMER_PROV_STATE" nullable="true" remarks="Customer's residential address province" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="CUSTOMER_HOME_PHONE" nullable="true" remarks="Customer's home phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="CUSTOMER_EMAIL" nullable="true" remarks="Customers email address" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="CUSTOMER_POSTAL_ZIP_CODE" nullable="true" remarks="Customer's zip code" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="USAGE_DATE" nullable="true" remarks="The member check-in date." size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="USAGE_TIME" nullable="true" remarks="The member check-in time." size="32" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="JOIN_DATE" nullable="true" remarks="Membership sale date of the primary member" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="EXPIRATION_DATE" nullable="true" remarks="The expiration date of the membership package." size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="SUSPEND_FROM_DATE" nullable="true" remarks="The date from which the membership package was suspended." size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="SUSPEND_TO_DATE" nullable="true" remarks="The date to which the membership package is suspended." size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ENTRYPOINT_ID" nullable="true" remarks="The ID of the entry point where the member checked-in." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ENTRYPOINT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ENTRY_POINTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ENTRY_POINT" nullable="true" remarks="The member check-in entry point name." size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="REASON_DECLINED" nullable="true" remarks="The reason  the pass was declined an entry in the facility" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="CUSTOMERTYPE_ID" nullable="true" remarks="ID of customer type description" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="CUSTOMER_TYPE" nullable="true" remarks="Customer type description (For example, Employee, Individual, Non-profit)" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="PASS_NUMBER" nullable="true" remarks="The member's pass card number." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="VOIDED" nullable="true" remarks="Shows whether the usage was voided or not" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="AKT_IND" nullable="false" remarks="The member's alternate key ID." size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="33" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="MEMBERSHIP_ID" nullable="true" remarks="Membership ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="MEMBERSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="ALTERNATE_KEY_TYPE" nullable="true" remarks="Alternate key type." size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="ALTERNATE_KEY_STATUS" nullable="true" remarks="Alternate key status." size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="ALTERNATE_KEY_VALUE" nullable="true" remarks="Alternate key ID." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="CHECKOUT_DATE" nullable="true" remarks="Check out date." size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="CHECKOUT_TIME" nullable="true" remarks="Check out time." size="32" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="CHECKOUT_ENTRY_POINT_ID" nullable="true" remarks="Check out entry point ID." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ENTRYPOINT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ENTRY_POINTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="CHECKOUT_ENTRY_POINT" nullable="true" remarks="Check out entry point name." size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="AUTHORIZED" nullable="true" remarks="Shows whether the usage was authorized or not" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="QUANTITY" nullable="true" remarks="Shows the usage quantity." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="MEMBERSHIPUSAGE_ID" nullable="true" remarks="Membership scan ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CHECK_IN_MEMBERSHIP_USAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHILD_WATCH_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="CHECK_OUT_MEMBERSHIP_USAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHILD_WATCH_REGISTRATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="PASS_ID" nullable="true" remarks="The member's pass card ID." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="ALTERNATE_KEY_TYPE_ID" nullable="true" remarks="Alternate key type ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ALTERNATE_KEY_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="ALTERNATE_KEY_STATUS_ID" nullable="true" remarks="Alternate key status ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ALTERNATE_KEY_STATUS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ALTERNATE_KEY_STATUSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="POSPRODUCT_ID" nullable="true" remarks="The ID of the POS product." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="PRODUCT_NAME" nullable="true" remarks="The name of the POS product." size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="RECEIPT_NUMBER" nullable="true" remarks="POS receipt number for the drop-in product sale" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="CUSTOMER_ALTERNATE_KEY_ID" nullable="true" remarks="The primary key for the customer alternate key record." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ALTERNATE_KEY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_ALTERNATE_KEYS"/>
         </column>
         <primaryKey column="MEMBERSHIPUSAGE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="MEMBERSHIPS" numRows="0" remarks="Membership details for all the primary members and their family (if enrolled in any package)" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.MEMBERSHIPS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.MEMBERSHIP_ID,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    cu1.CUSTOMER_FIRST_NAME,&#13;&#10;    cu1.CUSTOMER_LAST_NAME,&#13;&#10;    src.CUSTOMER_SINCE_DATE,&#13;&#10;    cu2.CUSTOMER_FIRST_NAME AS PRIMARY_MEMBER_FIRST_NAME,&#13;&#10;    cu2.CUSTOMER_LAST_NAME AS PRIMARY_MEMBER_LAST_NAME,&#13;&#10;    src.PRIMARY_MEMBER_CUSTOMER_ID,&#13;&#10;    src.MEMBERSHIP_STATUS,&#13;&#10;    src.EFFECTIVE_DATE,&#13;&#10;    src.EXPIRATION_DATE,&#13;&#10;    src.PUNCH_PASS_EXPIRED_ON,&#13;&#10;    src.AUTOMATIC_RENEWAL_TYPE,&#13;&#10;    src.LAST_RENEWED_DATE,&#13;&#10;    src.SUSPENDED_FROM_DATE,&#13;&#10;    src.SUSPENDED_UNTIL_DATE,&#13;&#10;    src.SCHEDULED_AUTOMATIC_CANCELLATION,&#13;&#10;    src.SCHEDULED_AUTOMATIC_CANCELLATION_DATE,&#13;&#10;    src.TOTAL_NUMBER_OF_USES,&#13;&#10;    src.SUSPEND_AUTO_RENEWAL,&#13;&#10;    src.MODIFIED_DATE_TIME,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    pa1.SITE_ID AS PACKAGE_SITE_ID,&#13;&#10;    si1.SITE_NAME AS PACKAGE_SITE_NAME,&#13;&#10;    pa1.CATEGORY_ID AS PACKAGE_CATEGORY_ID,&#13;&#10;    pc1.CATEGORY_NAME AS PACKAGE_CATEGORY_NAME,&#13;&#10;    IIF(pa1.FAMILY_MEMBERSHIP = 'Yes', 1, 0) AS FAMILY_PACKAGE,&#13;&#10;    pa1.FAMILY_MEMBERSHIP AS FAMILY_PACKAGE_YES_NO,&#13;&#10;    IIF(pa1.PACKAGE_STATUS = 'Closed', 1, 0) AS PACKAGE_STATUS,&#13;&#10;    pa1.PACKAGE_STATUS AS PACKAGE_STATUS_NAME,&#13;&#10;    pa1.SPECIFIC_TIMEPERIOD,&#13;&#10;    pa1.SPECIFIC_TIMEPERIOD_NAME,&#13;&#10;    pa1.SPECIFIC_NUMBEROFDAYS,&#13;&#10;    IIF(pc1.RETENTION_ELIGIBLE = 'Yes', 1, 0) AS PACKAGE_RETENTION_ELIGIBLE,&#13;&#10;    pc1.RETENTION_ELIGIBLE AS PACKAGE_RETENTION_ELIGIBLE_YES_NO,&#13;&#10;    src.MEMBER_PASS_NUMBER,&#13;&#10;    src.MEMBER_SINCE_DATE,&#13;&#10;    src.NUMBER_OF_USES_USED,&#13;&#10;    src.MEMBER_PASS_COUNT,&#13;&#10;    src.ENTRY_POINT_COUNT,&#13;&#10;    src.PRIMARY_MEMBER_PASS_NUMBER,&#13;&#10;    src.SCHEDULED_CANCELLATION,&#13;&#10;    src.SCHEDULED_CANCELLATION_DATE,&#13;&#10;    ISNULL(src.SCHEDULED_CANCELLATION_REASON, re1.DESCRIPTION) AS SCHEDULED_CANCELLATION_REASON,&#13;&#10;    src.CANCELLATION_DATE,&#13;&#10;    ISNULL(src.CANCELLATION_REASON, re2.DESCRIPTION) AS CANCELLATION_REASON,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.CANCELLATION_DATE_ONLY,&#13;&#10;    src.CUSTOMER_SINCE_DATE_ONLY,&#13;&#10;    src.EFFECTIVE_DATE_ONLY,&#13;&#10;    src.EXPIRATION_DATE_ONLY,&#13;&#10;    src.LAST_RENEWED_DATE_ONLY,&#13;&#10;    src.MEMBER_SINCE_DATE_ONLY,&#13;&#10;    src.MODIFIED_DATE_ONLY,&#13;&#10;    src.SCHEDULED_AUTOMATIC_CANCELLATION_DATE_ONLY,&#13;&#10;    src.SCHEDULED_CANCELLATION_DATE_ONLY,&#13;&#10;    src.SUSPENDED_FROM_DATE_ONLY,&#13;&#10;    src.SUSPENDED_UNTIL_DATE_ONLY,&#13;&#10;    src.SCHEDULED_AUTOMATIC_CANCELLATION_YES_NO,&#13;&#10;    src.SUSPEND_AUTO_RENEWAL_YES_NO,&#13;&#10;    src.SCHEDULED_CANCELLATION_YES_NO,&#13;&#10;    src.IS_PRIMARY,&#13;&#10;    src.LAST_USAGE_DATE,&#13;&#10;    src.LAST_USAGE_DATE_ONLY,&#13;&#10;    src.MEMBERSHIP_PASS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.CANCELLATION_REASON_ID,&#13;&#10;    src.SCHEDULED_CANCELLATION_REASON_ID,&#13;&#10;    src.SCHEDULED_AUTOMATIC_CANCELLATION_REASON_ID,&#13;&#10;    ISNULL(src.SCHEDULED_AUTOMATIC_CANCELLATION_REASON, re3.DESCRIPTION) AS SCHEDULED_AUTOMATIC_CANCELLATION_REASON,&#13;&#10;    re4.DESCRIPTION AS SUSPENDED_REASON,&#13;&#10;    src.SUSPENDED_REASON_ID,&#13;&#10;    src.REASON_ID,&#13;&#10;    re4.DESCRIPTION AS SUSPENSION_REASON,&#13;&#10;    src.AUTO_CANCEL_REASON_ID,&#13;&#10;    src.AUTOMATIC_CANCELLATION_REASON,&#13;&#10;    src.CANCEL_AUTO_RENEWAL_DATE,&#13;&#10;    src.CANCEL_AUTO_RENEWAL_DATE_ONLY,&#13;&#10;    src.CANCEL_AUTO_RENEWAL_REASON_ID,&#13;&#10;    ISNULL(src.CANCEL_AUTO_RENEWAL_REASON, re5.DESCRIPTION) AS CANCEL_AUTO_RENEWAL_REASON,&#13;&#10;    src.TPB_COMPANY_ID,&#13;&#10;    src.TPB_RECEIVE_TYPE,&#13;&#10;    src.TPB_RECEIVE_AMOUNT,&#13;&#10;    src.TPB_RECEIVE_PERCENT,&#13;&#10;    src.TPB_LAST_AMOUNT,&#13;&#10;    src.TPB_LAST_DATE,&#13;&#10;    src.TPB_TOTAL_BILLED,&#13;&#10;    src.CANCELLED_ON_DATE&#13;&#10;FROM &#13;&#10;    hub.MEMBERSHIPS src&#13;&#10;    JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND src.CUSTOMER_ID = cu1.CUSTOMER_ID)&#13;&#10;    JOIN hub.CUSTOMERS cu2 ON (cu2.ORG_ID = src.ORG_ID AND src.PRIMARY_MEMBER_CUSTOMER_ID = cu2.CUSTOMER_ID)&#13;&#10;    JOIN hub.PACKAGES pa1 ON (pa1.ORG_ID = src.ORG_ID AND src.PACKAGE_ID = pa1.PACKAGE_ID)&#13;&#10;    JOIN hub.PACKAGE_CATEGORIES pc1 ON (pc1.ORG_ID = src.ORG_ID AND pa1.CATEGORY_ID = pc1.PACKAGE_CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND pa1.SITE_ID = si1.SITE_ID)&#13;&#10;    LEFT JOIN hub.REASONS re1 ON (re1.ORG_ID = src.ORG_ID AND src.SCHEDULED_CANCELLATION_REASON_ID = re1.REASON_ID)&#13;&#10;    LEFT JOIN hub.REASONS re2 ON (re2.ORG_ID = src.ORG_ID AND src.CANCELLATION_REASON_ID = re2.REASON_ID)&#13;&#10;    LEFT JOIN hub.REASONS re3 ON (re3.ORG_ID = src.ORG_ID AND src.SCHEDULED_AUTOMATIC_CANCELLATION_REASON_ID = re3.REASON_ID)&#13;&#10;    LEFT JOIN hub.REASONS re4 ON (re4.ORG_ID = src.ORG_ID AND src.SUSPENDED_REASON_ID = re4.REASON_ID)&#13;&#10;    LEFT JOIN hub.REASONS re5 ON (re5.ORG_ID = src.ORG_ID AND src.CANCEL_AUTO_RENEWAL_REASON_ID = re5.REASON_ID);&#13;&#10;(CONVERT([date],[CANCELLATION_DATE]))(CONVERT([date],[CUSTOMER_SINCE_DATE]))(CONVERT([date],[EFFECTIVE_DATE]))(CONVERT([date],[EXPIRATION_DATE]))(CONVERT([date],[LAST_RENEWED_DATE]))(CONVERT([date],[MEMBER_SINCE_DATE]))(CONVERT([date],[MODIFIED_DATE_TIME]))(CONVERT([date],[SCHEDULED_AUTOMATIC_CANCELLATION_DATE]))(CONVERT([date],[SCHEDULED_CANCELLATION_DATE]))(CONVERT([date],[SUSPENDED_FROM_DATE]))(CONVERT([date],[SUSPENDED_UNTIL_DATE]))(case when [CUSTOMER_ID]=[PRIMARY_MEMBER_CUSTOMER_ID] then 'Yes' else 'No' end)(CONVERT([date],[LAST_USAGE_DATE]))([SCHEDULED_CANCELLATION_REASON_ID])([SCHEDULED_AUTOMATIC_CANCELLATION_REASON_ID])([SCHEDULED_AUTOMATIC_CANCELLATION_REASON])(CONVERT([date],[CANCEL_AUTO_RENEWAL_DATE]))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="System Generated key value.  No significance to membership data" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="MEMBERSHIP_ID" nullable="true" remarks="the membership_id" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="MEMBERSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_HEADERS"/>
            <child catalog="ActiveHub" column="MEMBERSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CREDIT_CARD_PROCESSING_LOG"/>
            <child catalog="ActiveHub" column="MEMBERSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="MEMBERSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="MEMBERSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="MEMBERSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRELIMINARY_DRAFTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_ID" nullable="true" remarks="Customer_ID of the member" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PACKAGE_ID" nullable="true" remarks="The package ID of the customers membership." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOMER_FIRST_NAME" nullable="true" remarks="The first name of the customer" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMER_LAST_NAME" nullable="true" remarks="The last name of the customer" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="CUSTOMER_SINCE_DATE" nullable="true" remarks="The date when the customer account was created" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="PRIMARY_MEMBER_FIRST_NAME" nullable="true" remarks="The first name of the primary member to which the membership package is assigned" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="PRIMARY_MEMBER_LAST_NAME" nullable="true" remarks="The last name of the primary member to which the membership package is assigned" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="PRIMARY_MEMBER_CUSTOMER_ID" nullable="true" remarks="The primary customer ID to which the membership package is assigned." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="MEMBERSHIP_STATUS" nullable="true" remarks="The status (active, expired, suspended, canceled, etc.) of the membership package." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="11" name="EFFECTIVE_DATE" nullable="true" remarks="The effective date of the membership package." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="12" name="EXPIRATION_DATE" nullable="true" remarks="The expiration date of the membership package." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="PUNCH_PASS_EXPIRED_ON" nullable="true" remarks="Date punch pass expires" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="AUTOMATIC_RENEWAL_TYPE" nullable="true" remarks="The payment method selected for an auto-renewal membership (Not Auto-Renewed / Credit Card / ECP / Manual Deduction / Payment Plan)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="15" name="LAST_RENEWED_DATE" nullable="true" remarks="The most recent renewal date for the membership package." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="SUSPENDED_FROM_DATE" nullable="true" remarks="The date from which the membership package was suspended." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="17" name="SUSPENDED_UNTIL_DATE" nullable="true" remarks="The date to which the membership package is suspended." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="SCHEDULED_AUTOMATIC_CANCELLATION" nullable="true" remarks="Whether the membership package is scheduled for a future automatic cancellation at renewal." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="19" name="SCHEDULED_AUTOMATIC_CANCELLATION_DATE" nullable="true" remarks="The date when the automatic cancellation at renewal will be executed" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="TOTAL_NUMBER_OF_USES" nullable="true" remarks="The maximum number of uses/punches available for the membership package, when the membership package has defined usage restrictions." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="SUSPEND_AUTO_RENEWAL" nullable="true" remarks="Whether auto renewal is suspended or not" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="22" name="MODIFIED_DATE_TIME" nullable="true" remarks="The date and time membership was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="PACKAGE_NAME" nullable="true" remarks="Name of the membership package" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="PACKAGE_SITE_ID" nullable="true" remarks="The site ID of the membership package" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="PACKAGE_SITE_NAME" nullable="true" remarks="The site name of the membership package" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package Category ID of the membership package" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package category name of the membership package" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="FAMILY_PACKAGE" nullable="false" remarks="Whether the package is a family membership" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="FAMILY_PACKAGE_YES_NO" nullable="true" remarks="Whether the package is a family membership (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="PACKAGE_STATUS" nullable="false" remarks="Status of the package 1=Active,0=Inactive)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="PACKAGE_STATUS_NAME" nullable="true" remarks="Status of the package (Open/Closed)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="SPECIFIC_TIMEPERIOD" nullable="true" remarks="Specific timeperiod the package is active" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="SPECIFIC_TIMEPERIOD_NAME" nullable="true" remarks="Specific time period the package is active" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="SPECIFIC_NUMBEROFDAYS" nullable="true" remarks="Specific number of days the package is active" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="PACKAGE_RETENTION_ELIGIBLE" nullable="false" remarks="Whether or not the package is retention eligible" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="PACKAGE_RETENTION_ELIGIBLE_YES_NO" nullable="true" remarks="Whether this package is a retention eligible package." size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="MEMBER_PASS_NUMBER" nullable="true" remarks="Customers membership pass number" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="38" name="MEMBER_SINCE_DATE" nullable="true" remarks="The earliest date and time on which the membership became effective. &#10;Note: &#10;     Can be prior to the sale date of the membership&#10;     Applies to all memberships regardless of retention eligible status" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="NUMBER_OF_USES_USED" nullable="true" remarks="The number of uses/punches that were used for the membership package, when the membership package has defined usage restrictions." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="MEMBER_PASS_COUNT" nullable="true" remarks="Total number of passes this member has" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="ENTRY_POINT_COUNT" nullable="true" remarks="The entry points to which the pass holder of the membership package can access." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="PRIMARY_MEMBER_PASS_NUMBER" nullable="true" remarks="Pass number of the primary member" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="SCHEDULED_CANCELLATION" nullable="true" remarks="Whether the membership has a scheduled cancellation" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="44" name="SCHEDULED_CANCELLATION_DATE" nullable="true" remarks="Date of the scheduled cancellation" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="SCHEDULED_CANCELLATION_REASON" nullable="true" remarks="Reason for the scheduled cancellation" size="800" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="46" name="CANCELLATION_DATE" nullable="true" remarks="The termination date for a membership, when the latest membership sale or renewal transaction has been manually cancelled." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="CANCELLATION_REASON" nullable="true" remarks="The reason the membership package was terminated" size="800" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="48" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="CANCELLATION_DATE_ONLY" nullable="true" remarks="The termination date for a membership, when the latest membership sale or renewal transaction has been manually cancelled (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="CUSTOMER_SINCE_DATE_ONLY" nullable="true" remarks="The date when the customer account was created (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="EFFECTIVE_DATE_ONLY" nullable="true" remarks="The effective date of the membership package (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="EXPIRATION_DATE_ONLY" nullable="true" remarks="The expiration date of the membership package (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="LAST_RENEWED_DATE_ONLY" nullable="true" remarks="The most recent renewal date for the membership package (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="MEMBER_SINCE_DATE_ONLY" nullable="true" remarks="The earliest date-only on which the membership became effective. &#10;Note: &#10;     Can be prior to the sale date of the membership&#10;     Applies to all memberships regardless of retention eligible status" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="MODIFIED_DATE_ONLY" nullable="true" remarks="The date membership was last modified (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="SCHEDULED_AUTOMATIC_CANCELLATION_DATE_ONLY" nullable="true" remarks="The date when the automatic cancellation at renewal will be executed (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="SCHEDULED_CANCELLATION_DATE_ONLY" nullable="true" remarks="Date of the scheduled cancellation (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="SUSPENDED_FROM_DATE_ONLY" nullable="true" remarks="The date from which the membership package was suspended (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="SUSPENDED_UNTIL_DATE_ONLY" nullable="true" remarks="The date to which the membership package is suspended (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="61" name="SCHEDULED_AUTOMATIC_CANCELLATION_YES_NO" nullable="true" remarks="Whether the membership package is scheduled for a future automatic cancellation at renewal." size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="SUSPEND_AUTO_RENEWAL_YES_NO" nullable="true" remarks="Whether auto renewal is suspended or not." size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="SCHEDULED_CANCELLATION_YES_NO" nullable="true" remarks="Whether the membership has a scheduled cancellation." size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="IS_PRIMARY" nullable="false" remarks="Whether this customer is the primary customer for this membership." size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="65" name="LAST_USAGE_DATE" nullable="true" remarks="The date and time the membership was last used" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="66" name="LAST_USAGE_DATE_ONLY" nullable="true" remarks="The date the membership was last used (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="67" name="MEMBERSHIP_PASS_ID" nullable="true" remarks="The membership pass id for this membership and customer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="68" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="69" name="CANCELLATION_REASON_ID" nullable="true" remarks="The Reason ID for the membership package termination" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="REASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="70" name="SCHEDULED_CANCELLATION_REASON_ID" nullable="true" remarks="Reason ID for the scheduled cancellation" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="REASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="71" name="SCHEDULED_AUTOMATIC_CANCELLATION_REASON_ID" nullable="true" remarks="Reason ID for the scheduled cancellation at renewal" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="REASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="72" name="SCHEDULED_AUTOMATIC_CANCELLATION_REASON" nullable="true" remarks="Reason for the scheduled cancellation at renewal" size="800" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="73" name="SUSPENDED_REASON" nullable="true" remarks="The reason for the membership suspension" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="74" name="SUSPENDED_REASON_ID" nullable="true" remarks="The Reason ID for the membership suspension" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="REASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="75" name="REASON_ID" nullable="true" remarks="DEPRECATED - Same as SCHEDULED_CANCELLATION_REASON_ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="76" name="SUSPENSION_REASON" nullable="true" remarks="DEPRECATED - Same as SUSPENDED_REASON" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="77" name="AUTO_CANCEL_REASON_ID" nullable="true" remarks="DEPRECATED - Same as SCHEDULED_AUTOMATIC_CANCELLATION_REASON_ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="78" name="AUTOMATIC_CANCELLATION_REASON" nullable="true" remarks="DEPRECATED - Same as SCHEDULED_AUTOMATIC_CANCELLATION_REASON" size="800" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="79" name="CANCEL_AUTO_RENEWAL_DATE" nullable="true" remarks="Date of the manual cancellation of auto renewal" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="80" name="CANCEL_AUTO_RENEWAL_DATE_ONLY" nullable="true" remarks="Date of the manual cancellation of auto renewal (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="81" name="CANCEL_AUTO_RENEWAL_REASON_ID" nullable="true" remarks="Reason ID for the manual cancellation of auto renewal" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="REASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="82" name="CANCEL_AUTO_RENEWAL_REASON" nullable="true" remarks="Reason for the manual cancellation of auto renewal" size="800" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="83" name="TPB_COMPANY_ID" nullable="true" remarks="Third party billing company ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="84" name="TPB_RECEIVE_TYPE" nullable="true" remarks="Third party billing receive type (Per Customer, Per Family, Per Month Per Customer, Percent)" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="85" name="TPB_RECEIVE_AMOUNT" nullable="true" remarks="Third party billing amount to receive each scheduled period" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="86" name="TPB_RECEIVE_PERCENT" nullable="true" remarks="Third party billing percent to receive each scheduled period" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="87" name="TPB_LAST_AMOUNT" nullable="true" remarks="Third party billing amount received last period" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="88" name="TPB_LAST_DATE" nullable="true" remarks="Third party billing date last received" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="89" name="TPB_TOTAL_BILLED" nullable="true" remarks="Third party billing total billed to date" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="90" name="CANCELLED_ON_DATE" nullable="true" remarks="The last date that the membership was active and able to be used before it expired or was cancelled. If a cancellation results in a retroactive change to the final expiration date then the date the cancellation was processed is used here." size="20" type="date" typeCode="12"/>
         <primaryKey column="MEMBERSHIP_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="MULTIGLFEE" numRows="0" remarks="Addtional GL fee items" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.MULTIGLFEE&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;&#9;src.MULTIGLFEE_ID,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    src.ACTIVITY_FEES_ID,&#13;&#10;    src.DCPROGRAMFEE_ID,&#13;&#10;    src.PACKAGEFEE_ID,&#13;&#10;&#9;src.PERCENTAGE AS PERCENTAGE,&#13;&#10;    src.REVENUE_SITE_ID,&#13;&#10;&#9;src.ORG_ID AS ORG_ID,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;&#9;src.MULTIGLFEE_ID AS source_id &#13;&#10;FROM [hub].[MULTIGLFEE] src">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="MULTIGLFEE_ID" nullable="false" remarks="Multi GL Fee table unique ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="GLACCOUNT_ID" nullable="true" remarks="The ID of the GL Account that the fee amount will be posted to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ACTIVITY_FEES_ID" nullable="true" remarks="The activity fee ID that this record links to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="DCPROGRAMFEE_ID" nullable="true" remarks="The program fee ID that this record links to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PACKAGEFEE_ID" nullable="true" remarks="The pacakge fee ID that this record links to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="5" name="PERCENTAGE" nullable="true" remarks="Percentage of fee to charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="REVENUE_SITE_ID" nullable="true" remarks="ID of the site for the item that the fee applies to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_KEY" nullable="true" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="LAST_SYNC_TIME" nullable="true" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="source_id" nullable="false" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="NOTE_ALERT_TYPES" numRows="0" remarks="Your organization's defined note alert types" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.NOTE_ALERT_TYPES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.NOTE_ALERT_TYPE_ID,&#13;&#10;    src.NOTE_ALERT_TYPE_NAME,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.NOTE_ALERT_TYPES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="NOTE_ALERT_TYPE_ID" nullable="false" remarks="The note alert type ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="NOTE_ALERT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_NOTES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="NOTE_ALERT_TYPE_NAME" nullable="true" remarks="The note alert type name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="IS_RETIRED" nullable="true" remarks="Whether this note alert type has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="3" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="NOTE_ALERT_TYPE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="OCCUPATIONS" numRows="0" remarks="Your organization's defined occupations" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.OCCUPATIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.OCCUPATION_ID,&#13;&#10;    src.OCCUPATION_NAME,&#13;&#10;    src.OCCUPATION_CODE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.OCCUPATIONS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="OCCUPATION_ID" nullable="false" remarks="The occupation ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="OCCUPATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="OCCUPATION_NAME" nullable="true" remarks="The occupation name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="OCCUPATION_CODE" nullable="true" remarks="The occupation code if applicable" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="3" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="OCCUPATION_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="OFFICIALS" numRows="0" remarks="Your organization's defined officials" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.OFFICIALS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.OFFICIAL_ID,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME) AS CUSTOMER_NAME,&#13;&#10;    cu1.CUSTOMER_EMAIL AS EMAIL_ADDRESS,&#13;&#10;    cu1.HOMEPHONE AS HOME_PHONE,&#13;&#10;    cu1.WORKPHONE AS WORK_PHONE,&#13;&#10;    cu1.CELLPHONE AS CELL_PHONE,&#13;&#10;    cu1.OTHERPHONE AS OTHER_PHONE,&#13;&#10;    cu1.FAXPHONE AS FAX_NUMBER,&#13;&#10;    cu1.PAGERPHONE AS PAGER_NUMBER,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME AS SITE_NAME,&#13;&#10;    src.ALLOW_ONLINE_ADMINISTRATION,&#13;&#10;    src.DISPLAY_EMAIL_ADDRESS,&#13;&#10;    src.DISPLAY_HOME_PHONE,&#13;&#10;    src.DISPLAY_WORK_PHONE,&#13;&#10;    src.DISPLAY_CELL_PHONE,&#13;&#10;    src.DISPLAY_OTHER_PHONE,&#13;&#10;    src.DISPLAY_FAX_NUMBER,&#13;&#10;    src.DISPLAY_PAGER_NUMBER,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.OFFICIALS src&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="OFFICIAL_ID" nullable="false" remarks="The official ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="OFFICIAL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_OFFICIALS"/>
            <child catalog="ActiveHub" column="OFFICIAL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULE_OFFICIALS"/>
            <child catalog="ActiveHub" column="OFFICIAL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULE_PAIRING_OFFICIALS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_ID" nullable="true" remarks="The ID of customer who is the official" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_NAME" nullable="false" remarks="The name of customer who is the official" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="EMAIL_ADDRESS" nullable="true" remarks="The email address of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="HOME_PHONE" nullable="true" remarks="The home phone number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="WORK_PHONE" nullable="true" remarks="The work phone number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CELL_PHONE" nullable="true" remarks="The cell phone number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="OTHER_PHONE" nullable="true" remarks="The other phone number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="FAX_NUMBER" nullable="true" remarks="The fax number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="PAGER_NUMBER" nullable="true" remarks="The pager number of the official" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="SITE_ID" nullable="true" remarks="The ID of the specific site that the official belongs to (NULL for all sites)" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="SITE_NAME" nullable="true" remarks="The name of the specific site that the official belongs to (NULL for all sites)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ALLOW_ONLINE_ADMINISTRATION" nullable="true" remarks="Whether online administration is allowed for this official (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DISPLAY_EMAIL_ADDRESS" nullable="true" remarks="Whether this official's email address may be publicly displayed (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="DISPLAY_HOME_PHONE" nullable="true" remarks="Whether this official's home phone number may be publicly displayed (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="DISPLAY_WORK_PHONE" nullable="true" remarks="Whether this official's work phone number may be publicly displayed (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="DISPLAY_CELL_PHONE" nullable="true" remarks="Whether this official's cell phone number may be publicly displayed (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="DISPLAY_OTHER_PHONE" nullable="true" remarks="Whether this official's other phone number may be publicly displayed (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="DISPLAY_FAX_NUMBER" nullable="true" remarks="Whether this official's fax number may be publicly displayed (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="DISPLAY_PAGER_NUMBER" nullable="true" remarks="Whether this official's pager number may be publicly displayed (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="IS_RETIRED" nullable="true" remarks="Whether this official has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="21" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="OFFICIAL_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="ORGS" numRows="0" remarks="Your organization's information" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.ORGS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;&#9;src.ORG_ID,&#13;&#10;&#9;src.SITE_URL,&#13;&#10;&#9;src.ORG_NAME,&#13;&#10;&#9;src.ORG_ADDR1,&#13;&#10;&#9;src.ORG_ADDR2,&#13;&#10;&#9;src.ORG_CITY,&#13;&#10;&#9;src.ORG_STATE,&#13;&#10;&#9;src.ORG_ZIP,&#13;&#10;&#9;src.RETIRED,&#13;&#10;&#9;src.TIME_ZONE_OFFSET_HR,&#13;&#10;&#9;src.RETIREASOFDATE,&#13;&#10;&#9;src.LAST_SYNC_TIME,&#13;&#10;&#9;src.ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM &#13;&#10;    hub.ORGS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SITE_URL" nullable="false" remarks="Your organization's website name. This is also database name in the Active Net system" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ORG_NAME" nullable="true" remarks="Your organization's full name" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ORG_ADDR1" nullable="true" remarks="Your organization's street address 1" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ORG_ADDR2" nullable="true" remarks="Your organization's street address 2" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ORG_CITY" nullable="true" remarks="Your organization's city" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ORG_STATE" nullable="true" remarks="Your organization's state" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ORG_ZIP" nullable="true" remarks="Your organization's zip" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="RETIRED" nullable="true" remarks="Your organization's marked as retired" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="TIME_ZONE_OFFSET_HR" nullable="true" remarks="Your organization's offset time in number of hours" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="RETIREASOFDATE" nullable="true" remarks="Your organization's unique will be retired as of this date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="11" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="PACKAGE_ALTERNATE_KEY_STATUSES" numRows="0" remarks="Contains information on alternate key statuses which are configured as package prerequisites" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PACKAGE_ALTERNATE_KEY_STATUSES &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    src.ALTERNATE_KEY_STATUS_ID,&#13;&#10;    aks.ALTERNATE_KEY_STATUS,&#13;&#10;    src.PACKAGE_ALTERNATE_KEY_STATUS_ID,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.PACKAGE_LINKS src&#13;&#10;    JOIN hub.PACKAGES pa1 ON (pa1.PACKAGE_ID = src.PACKAGE_ID)&#13;&#10;    JOIN hub.ALTERNATE_KEY_STATUSES aks ON aks.ALTERNATE_KEY_STATUS_ID = src.ALTERNATE_KEY_STATUS_ID&#13;&#10;WHERE&#13;&#10;    src.PACKAGE_ALTERNATE_KEY_STATUS_ID IS NOT NULL;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PACKAGE_ID" nullable="true" remarks="The package ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PACKAGE_NAME" nullable="true" remarks="The package name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ALTERNATE_KEY_STATUS_ID" nullable="true" remarks="The ID of an alternate key status which is a prerequisite for this package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ALTERNATE_KEY_STATUS" nullable="true" remarks="The name of an alternate key status which is a prerequisite for this package" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PACKAGE_ALTERNATE_KEY_STATUS_ID" nullable="true" remarks="The package alternate key status ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="PACKAGE_ALTERNATE_KEY_TYPES" numRows="0" remarks="Contains information on alternate key types which are configured as package prerequisites" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PACKAGE_ALTERNATE_KEY_TYPES &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    src.ALTERNATE_KEY_TYPE_ID,&#13;&#10;    akt.ALTERNATE_KEY_TYPE,&#13;&#10;    src.PACKAGE_ALTERNATE_KEY_TYPE_ID,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.PACKAGE_LINKS src&#13;&#10;    JOIN hub.PACKAGES pa1 ON (pa1.PACKAGE_ID = src.PACKAGE_ID)&#13;&#10;    JOIN hub.ALTERNATE_KEY_TYPES akt ON akt.ALTERNATE_KEY_TYPE_ID = src.ALTERNATE_KEY_TYPE_ID&#13;&#10;WHERE&#13;&#10;    src.PACKAGE_ALTERNATE_KEY_TYPE_ID IS NOT NULL;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PACKAGE_ID" nullable="true" remarks="The package ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PACKAGE_NAME" nullable="true" remarks="The package name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ALTERNATE_KEY_TYPE_ID" nullable="true" remarks="The ID of an alternate key type which is a prerequisite for this package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ALTERNATE_KEY_TYPE" nullable="true" remarks="The name of an alternate key type which is a prerequisite for this package" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PACKAGE_ALTERNATE_KEY_TYPE_ID" nullable="true" remarks="The package alternate key type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="PACKAGE_CATEGORIES" numRows="0" remarks="Your organization's defined package categories" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.PACKAGE_CATEGORIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.PACKAGE_CATEGORY_ID,&#13;&#10;    src.CATEGORY_NAME,&#13;&#10;    src.CATEGORY_DESCRIPTION,&#13;&#10;    src.RETENTION_ELIGIBLE,&#13;&#10;    src.RETENTION_PERIOD,&#13;&#10;    src.HIDE_ON_INTERNET,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;&#9;src.PREVENT_FURTHER_USE,&#13;&#10;    src.PACKAGE_CATEGORY_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.PACKAGE_CATEGORIES src;&#13;&#10;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package category ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="MEMBER_PREFILL_PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="PACKAGECATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="CURRENT_PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_PREREQUISITES"/>
            <child catalog="ActiveHub" column="PREVIOUS_PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_PREREQUISITES"/>
            <child catalog="ActiveHub" column="CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CATEGORY_NAME" nullable="true" remarks="Package category name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CATEGORY_DESCRIPTION" nullable="true" remarks="Package category description" size="125" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="RETENTION_ELIGIBLE" nullable="true" remarks="Whether packages of this category should have retention eligibility (Yes/No)." size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="RETENTION_PERIOD" nullable="true" remarks="The retention period in days for retention eligible memberships." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether packages of this category should be excluded from display on the internet registration site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="PREVENT_FURTHER_USE" nullable="true" remarks="Whether this Package Category has been retired from further use (Yes/No)" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PACKAGE_CATEGORY_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PACKAGE_CUSTOM_QUESTIONS" numRows="0" remarks="Custom questions for membership sale transactions." schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PACKAGE_CUSTOM_QUESTIONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    cql.PACKAGE_ID,&#13;&#10;    NULL CUSTOM_QUESTION_GROUP_ID,&#13;&#10;    NULL GROUP_DESCRIPTION,&#13;&#10;    NULL GROUP_HEADER_TEXT,&#13;&#10;    NULL GROUP_ORDER,&#13;&#10;    cql.QUESTION_ORDER,&#13;&#10;    cq.CUSTOM_QUESTION_ID,&#13;&#10;    cq.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    cq.QUESTION,&#13;&#10;    cq.IS_REQUIRED,&#13;&#10;    cq.QUESTION_TYPE,&#13;&#10;    cq.NOTE,&#13;&#10;    cq.DEFAULT_ANSWER,&#13;&#10;    cq.TITLE,&#13;&#10;    cq.ANSWER_FORMAT,&#13;&#10;    cq.IS_RETIRED,&#13;&#10;    cq.HIDE_ON_INTERNET,&#13;&#10;    cq.ADD_TO_NEW_ACTIVITIES,&#13;&#10;    cq.QUESTION_SCOPE,&#13;&#10;    cq.HIDE_ON_ADMIN,&#13;&#10;    cq.DO_NOT_SHOW_AFTER,&#13;&#10;    cq.DO_NOT_EDIT_AFTER,&#13;&#10;    cq.USE_ANSWER_CODE,&#13;&#10;    cq.QUESTION_HINT,&#13;&#10;    cq.MESSAGE_FOR_USED_UP_ANSWERS,&#13;&#10;    cq.ANSWER_MAX_LENGTH,&#13;&#10;    cq.EXTRA_ANSWER_TEXT,&#13;&#10;    cq.CUSTOM_QUESTION_TYPE_ID,&#13;&#10;    cct.CUSTOM_QUESTION_TYPE_NAME AS CUSTOM_QUESTION_TYPE,&#13;&#10;    cq.APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS,&#13;&#10;    cq.IS_DEMOGRAPHIC_RELATED_QUESTION&#13;&#10;FROM&#13;&#10;    hub.CUSTOM_QUESTION_LINKS cql&#13;&#10;    JOIN hub.CUSTOM_QUESTIONS cq ON cq.CUSTOM_QUESTION_ID = cql.CUSTOM_QUESTION_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.SITE_ID = cq.SITE_ID&#13;&#10;    LEFT JOIN hub.CUSTOM_QUESTION_TYPES cct ON (cct.CUSTOM_QUESTION_TYPE_ID = cq.CUSTOM_QUESTION_TYPE_ID)&#13;&#10;WHERE&#13;&#10;    cql.PACKAGECUSTOMQUESTION_ID IS NOT NULL&#13;&#10;UNION ALL&#13;&#10;SELECT&#13;&#10;    cqgl.PACKAGE_ID,&#13;&#10;    cqgl.CUSTOM_QUESTION_GROUP_ID,&#13;&#10;    cqgl.GROUP_DESCRIPTION,&#13;&#10;    cqgl.GROUP_HEADER_TEXT,&#13;&#10;    cqgl.GROUP_ORDER,&#13;&#10;    cql.QUESTION_ORDER,&#13;&#10;    cq.CUSTOM_QUESTION_ID,&#13;&#10;    cq.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    cq.QUESTION,&#13;&#10;    cq.IS_REQUIRED,&#13;&#10;    cq.QUESTION_TYPE,&#13;&#10;    cq.NOTE,&#13;&#10;    cq.DEFAULT_ANSWER,&#13;&#10;    cq.TITLE,&#13;&#10;    cq.ANSWER_FORMAT,&#13;&#10;    cq.IS_RETIRED,&#13;&#10;    cq.HIDE_ON_INTERNET,&#13;&#10;    cq.ADD_TO_NEW_ACTIVITIES,&#13;&#10;    cq.QUESTION_SCOPE,&#13;&#10;    cq.HIDE_ON_ADMIN,&#13;&#10;    cq.DO_NOT_SHOW_AFTER,&#13;&#10;    cq.DO_NOT_EDIT_AFTER,&#13;&#10;    cq.USE_ANSWER_CODE,&#13;&#10;    cq.QUESTION_HINT,&#13;&#10;    cq.MESSAGE_FOR_USED_UP_ANSWERS,&#13;&#10;    cq.ANSWER_MAX_LENGTH,&#13;&#10;    cq.EXTRA_ANSWER_TEXT,&#13;&#10;    cq.CUSTOM_QUESTION_TYPE_ID,&#13;&#10;    cct.CUSTOM_QUESTION_TYPE_NAME AS CUSTOM_QUESTION_TYPE,&#13;&#10;    cq.APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS,&#13;&#10;    cq.IS_DEMOGRAPHIC_RELATED_QUESTION&#13;&#10;FROM&#13;&#10;    hub.CUSTOM_QUESTION_GROUP_LINKS cqgl&#13;&#10;    JOIN hub.CUSTOM_QUESTION_LINKS cql ON cql.CUSTOM_QUESTION_GROUP_ID = cqgl.CUSTOM_QUESTION_GROUP_ID AND cql.GROUPCUSTOMQUESTION_ID IS NOT NULL&#13;&#10;    JOIN hub.CUSTOM_QUESTIONS cq ON cq.CUSTOM_QUESTION_ID = cql.CUSTOM_QUESTION_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.SITE_ID = cq.SITE_ID&#13;&#10;    LEFT JOIN hub.CUSTOM_QUESTION_TYPES cct ON (cct.CUSTOM_QUESTION_TYPE_ID = cq.CUSTOM_QUESTION_TYPE_ID)&#13;&#10;WHERE&#13;&#10;    cqgl.PACKAGECUSTOM_QUESTION_GROUP_ID IS NOT NULL;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PACKAGE_ID" nullable="true" remarks="Package ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOM_QUESTION_GROUP_ID" nullable="true" remarks="Custom question group ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="GROUP_DESCRIPTION" nullable="true" remarks="Custom question group description" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="GROUP_HEADER_TEXT" nullable="true" remarks="Custom question group heading text" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GROUP_ORDER" nullable="true" remarks="Custom question group display order" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="QUESTION_ORDER" nullable="true" remarks="The order number that the question should be presented in" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOM_QUESTION_ID" nullable="true" remarks="Custom question ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SITE_ID" nullable="true" remarks="Site ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SITE_NAME" nullable="true" remarks="Site name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="QUESTION" nullable="true" remarks="The text of the question to be asked" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="IS_REQUIRED" nullable="true" remarks="Whether an answer is required for the custom question (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="QUESTION_TYPE" nullable="true" remarks="The type of control to be used to answer the question (User Entry / Single Selection - Dropdown / Single Selection - Radio / Multi Selection - Checkbox / Multi Selection - Listbox / Auto-fill Conditional)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="NOTE" nullable="true" remarks="A user note related to the custom question" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DEFAULT_ANSWER" nullable="true" remarks="The optional default answer for the user entry question" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="TITLE" nullable="true" remarks="The title of the custom question" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ANSWER_FORMAT" nullable="true" remarks="The answer format of the user entry question (Free Form / Phone Number / Date / Time / SSN / Postal Code / Upper-case Alpha / Lower-case Alpha / Numbers Only / Alpha Only / Duration)" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="IS_RETIRED" nullable="true" remarks="Whether the custom question has been retired (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether the custom question should be excluded from display on the internet site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ADD_TO_NEW_ACTIVITIES" nullable="true" remarks="Whether the custom question should be automatically added to new activities (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="QUESTION_SCOPE" nullable="true" remarks="The scope of the custom question (Ask for every transaction / Ask once per receipt)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="HIDE_ON_ADMIN" nullable="true" remarks="Whether the custom question should be excluded from display on the admin site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="DO_NOT_SHOW_AFTER" nullable="true" remarks="The last date that the custom question should be displayed" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="DO_NOT_EDIT_AFTER" nullable="true" remarks="The last date that the custom question should allow edits" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="USE_ANSWER_CODE" nullable="true" remarks="Whether the custom question uses answer codes (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="QUESTION_HINT" nullable="true" remarks="A hint to be displayed for the custom question" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="MESSAGE_FOR_USED_UP_ANSWERS" nullable="true" remarks="A message to be displayed for the custom question for answers that have reached their use count limit" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ANSWER_MAX_LENGTH" nullable="true" remarks="The maximum answer length for user entry questions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="EXTRA_ANSWER_TEXT" nullable="true" remarks="Additional instruction text to be displayed for a multiple-choice question" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="CUSTOM_QUESTION_TYPE_ID" nullable="true" remarks="Custom question type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="CUSTOM_QUESTION_TYPE" nullable="true" remarks="Custom question type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS" nullable="true" remarks="Whether the answer given should replace prior answers to the same question for the customer (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="IS_DEMOGRAPHIC_RELATED_QUESTION" nullable="true" remarks="Whether the custom question is related to demographics (Yes/No)" size="5" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="PACKAGE_ENTRY_POINT_TIMES" numRows="0" remarks="Defined open times per package entry point" schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21477&#13;&#10;--FileName=dbo.PACKAGE_ENTRY_POINT_TIMES.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.PACKAGE_ENTRY_POINT_TIMES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.PACKAGEENTRYPOINTTIME_ID,&#13;&#10;    src.PACKAGEENTRYPOINT_ID,&#13;&#10;    src.DAY_OF_WEEK,&#13;&#10;    src.DAY_OF_WEEK_NAME,&#13;&#10;    src.START_TIME,&#13;&#10;    src.END_TIME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.PACKAGE_ENTRY_POINT_TIMES src;&#13;&#10;(datename(weekday,[DAY_OF_WEEK]-(2)))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PACKAGEENTRYPOINTTIME_ID" nullable="true" remarks="Package entry point time ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PACKAGEENTRYPOINT_ID" nullable="true" remarks="Package entry point ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGEENTRYPOINT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_ENTRY_POINTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="DAY_OF_WEEK" nullable="true" remarks="Package entry point day of week number (1=Sunday to 7=Saturday)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="DAY_OF_WEEK_NAME" nullable="true" remarks="Package entry point day of week (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday)" size="60" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="START_TIME" nullable="true" remarks="Package entry point start time for this day of week" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="END_TIME" nullable="true" remarks="Package entry point end time for this day of week" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PACKAGEENTRYPOINTTIME_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PACKAGE_ENTRY_POINTS" numRows="0" remarks="Your organization's defined entry points per membership package" schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21478&#13;&#10;--FileName=dbo.PACKAGE_ENTRY_POINTS.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.PACKAGE_ENTRY_POINTS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    src.ENTRYPOINT_ID,&#13;&#10;    ep1.ENTRY_POINT_NAME,&#13;&#10;    ep1.ENTRY_POINT_DESCRIPTION,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    src.PACKAGEENTRYPOINT_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.OPEN_24_HOURS,&#13;&#10;    src.DEFAULT_OPEN_TIME,&#13;&#10;    src.DEFAULT_CLOSE_TIME,&#13;&#10;    src.MONDAY_CLOSED,&#13;&#10;    src.TUESDAY_CLOSED,&#13;&#10;    src.WEDNESDAY_CLOSED,&#13;&#10;    src.THURSDAY_CLOSED,&#13;&#10;    src.FRIDAY_CLOSED,&#13;&#10;    src.SATURDAY_CLOSED,&#13;&#10;    src.SUNDAY_CLOSED&#13;&#10;FROM &#13;&#10;    hub.PACKAGE_ENTRY_POINTS src&#13;&#10;    INNER JOIN hub.ENTRY_POINTS ep1 ON (src.ENTRYPOINT_ID = ep1.ENTRYPOINT_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PACKAGE_ID" nullable="true" remarks="The ID of the membership package" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ENTRYPOINT_ID" nullable="true" remarks="The ID of the entry point" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ENTRYPOINT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ENTRY_POINTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ENTRY_POINT_NAME" nullable="true" remarks="The name of the entry point" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ENTRY_POINT_DESCRIPTION" nullable="true" remarks="The description of the entry point" size="125" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="FACILITY_ID" nullable="true" remarks="The ID of the facility that the entry point belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PACKAGEENTRYPOINT_ID" nullable="true" remarks="The ID of the package entry point" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="PACKAGEENTRYPOINT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_ENTRY_POINT_TIMES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="OPEN_24_HOURS" nullable="true" remarks="Whether the package entry point is open 24 hours per day (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="DEFAULT_OPEN_TIME" nullable="true" remarks="The default daily opening time of the package entry point" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="DEFAULT_CLOSE_TIME" nullable="true" remarks="The default daily closing time of the package entry point" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="MONDAY_CLOSED" nullable="true" remarks="Whether the package entry point is closed on Mondays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="TUESDAY_CLOSED" nullable="true" remarks="Whether the package entry point is closed on Tuesdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="WEDNESDAY_CLOSED" nullable="true" remarks="Whether the package entry point is closed on Wednesdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="THURSDAY_CLOSED" nullable="true" remarks="Whether the package entry point is closed on Thursdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="FRIDAY_CLOSED" nullable="true" remarks="Whether the package entry point is closed on Fridays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="SATURDAY_CLOSED" nullable="true" remarks="Whether the package entry point is closed on Saturdays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="SUNDAY_CLOSED" nullable="true" remarks="Whether the package entry point is closed on Sundays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <primaryKey column="PACKAGEENTRYPOINT_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PACKAGE_FEE_ALTERNATE_KEY_QUALIFICATIONS" numRows="0" remarks="Master table containing defined package fee alternate key qualifications" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE   VIEW dbo.PACKAGE_FEE_ALTERNATE_KEY_QUALIFICATIONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CHARGE_QUALIFICATION_LINK_ID,&#13;&#10;    src.QUALIFICATION_TYPE_ID,&#13;&#10;    src.QUALIFICATION_TYPE,&#13;&#10;    src.PACKAGE_FEE_ID,&#13;&#10;    pf1.CHARGE_NAME AS PACKAGE_FEE_NAME,&#13;&#10;    src.ALTERNATE_KEY_TYPE_ID,&#13;&#10;    akt.ALTERNATE_KEY_TYPE AS ALTERNATE_KEY_TYPE_NAME,&#13;&#10;    src.ALTERNATE_KEY_STATUS_ID,&#13;&#10;    aks.ALTERNATE_KEY_STATUS AS ALTERNATE_KEY_STATUS_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM hub.CHARGE_QUALIFICATION_LINKS src&#13;&#10;LEFT JOIN hub.PACKAGE_FEES pf1 ON pf1.PACKAGE_FEE_ID = src.PACKAGE_FEE_ID&#13;&#10;LEFT JOIN hub.ALTERNATE_KEY_TYPES akt ON akt.ALTERNATE_KEY_TYPE_ID = src.ALTERNATE_KEY_TYPE_ID&#13;&#10;LEFT JOIN hub.ALTERNATE_KEY_STATUSES aks ON aks.ALTERNATE_KEY_STATUS_ID = src.ALTERNATE_KEY_STATUS_ID&#13;&#10;WHERE src.QUALIFICATION_TYPE_ID = 5; -- KeyType.package_fee_multi_alternate_key = 5&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CHARGE_QUALIFICATION_LINK_ID" nullable="true" remarks="Charge qualification link ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="QUALIFICATION_TYPE_ID" nullable="true" remarks="Qualification type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="QUALIFICATION_TYPE" nullable="true" remarks="Qualification type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PACKAGE_FEE_ID" nullable="true" remarks="Package fee ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PACKAGE_FEE_NAME" nullable="true" remarks="Package fee name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ALTERNATE_KEY_TYPE_ID" nullable="true" remarks="Alternate key type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ALTERNATE_KEY_TYPE_NAME" nullable="true" remarks="Alternate key type name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ALTERNATE_KEY_STATUS_ID" nullable="true" remarks="Alternate key status ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ALTERNATE_KEY_STATUS_NAME" nullable="true" remarks="Alternate key status name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="PACKAGE_FEE_PACKAGE_QUALIFICATIONS" numRows="0" remarks="Master table containing defined activity fee package qualifications" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PACKAGE_FEE_PACKAGE_QUALIFICATIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.PACKAGE_FEE_PACKAGE_ID,&#13;&#10;    src.QUALIFICATION_TYPE_ID,&#13;&#10;    src.QUALIFICATION_TYPE,&#13;&#10;    src.PACKAGE_FEE_ID,&#13;&#10;    af1.CHARGE_NAME AS PACKAGE_FEE_NAME,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    src.PACKAGE_CATEGORY_ID,&#13;&#10;    pc1.CATEGORY_NAME AS PACKAGE_CATEGORY_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM hub.CHARGE_QUALIFICATION_LINKS src&#13;&#10;LEFT JOIN hub.PACKAGE_FEES af1 ON af1.PACKAGE_FEE_ID = src.PACKAGE_FEE_ID&#13;&#10;LEFT JOIN hub.PACKAGES pa1 ON pa1.PACKAGE_ID = src.PACKAGE_ID&#13;&#10;LEFT JOIN hub.PACKAGE_CATEGORIES pc1 ON pc1.PACKAGE_CATEGORY_ID = src.PACKAGE_CATEGORY_ID&#13;&#10;WHERE src.QUALIFICATION_TYPE_ID = -2;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PACKAGE_FEE_PACKAGE_ID" nullable="true" remarks="Package fee package ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="QUALIFICATION_TYPE_ID" nullable="true" remarks="Qualification type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="QUALIFICATION_TYPE" nullable="true" remarks="Qualification type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PACKAGE_FEE_ID" nullable="true" remarks="Package fee ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PACKAGE_FEE_NAME" nullable="true" remarks="Package fee name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PACKAGE_ID" nullable="true" remarks="Package ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="PACKAGE_NAME" nullable="true" remarks="Package name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package category ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package category name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="PACKAGE_FEES" numRows="0" remarks="Master table showing defined package fees data" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PACKAGE_FEES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.PACKAGE_FEE_ID,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    src.CHARGE_NAME,&#13;&#10;    src.CHARGE_TYPE,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.DISCOUNT_PERCENT,&#13;&#10;    src.DISCOUNT_TYPE,&#13;&#10;    src.FEE_AMOUNT,&#13;&#10;    src.FEE_ORDER,&#13;&#10;    src.OVERRIDE_FLAG,&#13;&#10;    src.PREFILL_CONDITION,&#13;&#10;    src.PRIMARY_FEE,&#13;&#10;    src.TAXABLE_BY_TAX_1,&#13;&#10;    src.TAXABLE_BY_TAX_2,&#13;&#10;    src.TAXABLE_BY_TAX_3,&#13;&#10;    src.TAXABLE_BY_TAX_4,&#13;&#10;    src.TAXABLE_BY_TAX_5,&#13;&#10;    src.TAXABLE_BY_TAX_6,&#13;&#10;    src.TAXABLE_BY_TAX_7,&#13;&#10;    src.TAXABLE_BY_TAX_8,&#13;&#10;    src.DISCOUNTABLE,&#13;&#10;    src.ACTIVATION_DATE,&#13;&#10;    src.EXPIRATION_DATE,&#13;&#10;    src.FEE_CHANGE_DATE,&#13;&#10;    src.SCHEDULED_FEE,&#13;&#10;    src.PRORATE_FEE,&#13;&#10;    src.PER_USE_FEE,&#13;&#10;    src.MIN_PASSES,&#13;&#10;    src.MAX_PASSES,&#13;&#10;    src.PER_PASS_FEE,&#13;&#10;    src.CUSTOMER_TYPE_ID,&#13;&#10;    ct1.CUSTOMER_TYPE_NAME AS CUSTOMER_TYPE,&#13;&#10;    src.AGES_MIN,&#13;&#10;    src.AGES_MAX,&#13;&#10;    src.APPLY_ONLY_RENEWAL,&#13;&#10;    src.APPLY_ONLY_TIME_PERIODS,&#13;&#10;    src.PRORATE_REFUND_FEES,&#13;&#10;    src.MIN_USES,&#13;&#10;    src.MAX_USES,&#13;&#10;    src.EXCLUDE_FROM_PAYMENT_PLAN,&#13;&#10;    src.PRORATE_ENROLLMENT_FEE_DATE,&#13;&#10;    src.PRORATE_REFUND_FEES_DATE,&#13;&#10;    src.SYSTEM_GL_ACCOUNT_PACKAGE_ID,&#13;&#10;    sgap.SYSTEM_GL_ACCOUNT_PACKAGE_NAME AS SYSTEM_GL_ACCOUNT_PACKAGE,&#13;&#10;    src.DISCOUNT_ORDER,&#13;&#10;    src.APPLY_ONLY_SUSPENDED_CYCLE_AUTO_RENEWAL,&#13;&#10;    src.IS_MULTI_GL,&#13;&#10;    src.FEE_DESCRIPTION,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.PACKAGE_FEES src&#13;&#10;    LEFT JOIN hub.PACKAGES pa1 ON (src.PACKAGE_ID = pa1.PACKAGE_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (src.GLACCOUNT_ID = gl1.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMER_TYPES ct1 ON (ct1.CUSTOMER_TYPE_ID = src.CUSTOMER_TYPE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_GL_ACCOUNT_PACKAGES sgap ON (sgap.SYSTEM_GL_ACCOUNT_PACKAGE_ID = src.SYSTEM_GL_ACCOUNT_PACKAGE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PACKAGE_FEE_ID" nullable="true" remarks="Package fee ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="PACKAGE_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PACKAGE_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SCHEDULED_FEE_CHANGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PACKAGE_ID" nullable="true" remarks="Package ID which this fee belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PACKAGE_NAME" nullable="true" remarks="Package name which this fee belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CHARGE_ID" nullable="true" remarks="Charge ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CHARGE_NAME" nullable="true" remarks="Charge name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CHARGE_TYPE" nullable="true" remarks="The type of charge (Fee / Discount / Scholarship)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="GLACCOUNT_ID" nullable="true" remarks="The default GL account ID to post this charge to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="GL_ACCOUNT_NAME" nullable="true" remarks="GL account name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="10" name="DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="DISCOUNT_TYPE" nullable="true" remarks="The type of discount (Amount / Percent)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="12" name="FEE_AMOUNT" nullable="true" remarks="The default fee or discount amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="FEE_ORDER" nullable="true" remarks="The order in which the fee should be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="OVERRIDE_FLAG" nullable="true" remarks="Whether this charge can be overridden (Always / Never / By Password)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="PREFILL_CONDITION" nullable="true" remarks="The prefill condition for this fee (Never / Always / If Resident / If Non-resident / If Minor / If Senior / If Internet / If Member / If Non-member)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="PRIMARY_FEE" nullable="true" remarks="Whether this charge is a primary fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="TAXABLE_BY_TAX_1" nullable="true" remarks="Whether tax 1 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="TAXABLE_BY_TAX_2" nullable="true" remarks="Whether tax 2 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="TAXABLE_BY_TAX_3" nullable="true" remarks="Whether tax 3 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="TAXABLE_BY_TAX_4" nullable="true" remarks="Whether tax 4 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="TAXABLE_BY_TAX_5" nullable="true" remarks="Whether tax 5 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="TAXABLE_BY_TAX_6" nullable="true" remarks="Whether tax 6 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="TAXABLE_BY_TAX_7" nullable="true" remarks="Whether tax 7 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="TAXABLE_BY_TAX_8" nullable="true" remarks="Whether tax 8 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="DISCOUNTABLE" nullable="true" remarks="Whether this charge can be discounted (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ACTIVATION_DATE" nullable="true" remarks="The first available date for this fee" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="EXPIRATION_DATE" nullable="true" remarks="The last available date for this fee" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="FEE_CHANGE_DATE" nullable="true" remarks="The date that the fee amount is scheduled to automatically change" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="29" name="SCHEDULED_FEE" nullable="true" remarks="The amount that the fee is scheduled to automatically change to" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="PRORATE_FEE" nullable="true" remarks="Whether this fee can be prorated (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="PER_USE_FEE" nullable="true" remarks="Whether this fee is calculated on a per use basis (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="MIN_PASSES" nullable="true" remarks="The minimum number of passes purchased for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="MAX_PASSES" nullable="true" remarks="The maximum number of passes purchased for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="PER_PASS_FEE" nullable="true" remarks="Whether this fee is calculated on a per pass basis (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="CUSTOMER_TYPE_ID" nullable="true" remarks="The customer type ID that this charge applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="CUSTOMER_TYPE" nullable="true" remarks="The customer type that this fee applies to" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="AGES_MIN" nullable="true" remarks="The minimum age for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="AGES_MAX" nullable="true" remarks="The maximum age for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="APPLY_ONLY_RENEWAL" nullable="true" remarks="Whether this fee is applied only to renewals (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="APPLY_ONLY_TIME_PERIODS" nullable="true" remarks="The minimum number of time periods purchased for this discount to apply" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="PRORATE_REFUND_FEES" nullable="true" remarks="Whether refunds of this fee can be prorated (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="MIN_USES" nullable="true" remarks="The minimum number of uses purchased for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="MAX_USES" nullable="true" remarks="The maximum number of uses purchased for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="EXCLUDE_FROM_PAYMENT_PLAN" nullable="true" remarks="Whether this charge should be excluded from any payment plan (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="PRORATE_ENROLLMENT_FEE_DATE" nullable="true" remarks="The minimum date that the fee can be prorated during purchase" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="PRORATE_REFUND_FEES_DATE" nullable="true" remarks="The minimum date that the fee can be prorated during renewal" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID" nullable="true" remarks="System GL account package ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="SYSTEM_GL_ACCOUNT_PACKAGE" nullable="true" remarks="System GL account package name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="DISCOUNT_ORDER" nullable="true" remarks="The order in which the discount should be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="APPLY_ONLY_SUSPENDED_CYCLE_AUTO_RENEWAL" nullable="true" remarks="Whether the fee should only apply to suspended cycle of auto-renewal (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="IS_MULTI_GL" nullable="true" remarks="Whether this fee splits GL postings across multiple GL accounts (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="FEE_DESCRIPTION" nullable="true" remarks="The description of this fee" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="53" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PACKAGE_FEE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PACKAGE_INTEREST_LISTS" numRows="0" remarks="Contains the interest lists that are assigned to each package" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PACKAGE_INTEREST_LISTS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    il.PACKAGE_ID,&#13;&#10;    pa.PACKAGE_NAME,&#13;&#10;    il.INTEREST_LIST_ID,&#13;&#10;    il.INTEREST_LIST_NAME,&#13;&#10;    il.CATEGORY_ID,&#13;&#10;    acat.ACTIVITY_CATEGORY_NAME AS CATEGORY_NAME,&#13;&#10;    il.SUB_CATEGORY_ID,&#13;&#10;    ascat.ACTIVITY_SUB_CATEGORY_NAME AS SUB_CATEGORY_NAME&#13;&#10;FROM&#13;&#10;    hub.INTEREST_LISTS il&#13;&#10;    JOIN hub.PACKAGES pa ON (pa.PACKAGE_ID = il.PACKAGE_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_CATEGORIES acat ON (acat.ACTIVITY_CATEGORY_ID = il.CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_SUB_CATEGORIES ascat ON (ascat.ACTIVITY_SUB_CATEGORY_ID = il.SUB_CATEGORY_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PACKAGE_ID" nullable="true" remarks="The ID of the package that is assigned to the interest list" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PACKAGE_NAME" nullable="true" remarks="The ID of the package that is assigned to the interest list" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="INTEREST_LIST_ID" nullable="true" remarks="The interest list ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="INTEREST_LIST_NAME" nullable="true" remarks="Name of the interest list" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CATEGORY_ID" nullable="true" remarks="The category ID of the interest list" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CATEGORY_NAME" nullable="true" remarks="The category name of the interest list." size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SUB_CATEGORY_ID" nullable="true" remarks="The sub-category ID of the interest list" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SUB_CATEGORY_NAME" nullable="true" remarks="The sub-category name of the interest list." size="40" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="PACKAGE_LINKS" numRows="0" remarks="Contains information on related records that are linked to package records (for internal use)" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PACKAGE_LINKS &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    src.PACKAGE_ALTERNATE_KEY_TYPE_ID,&#13;&#10;    src.ALTERNATE_KEY_TYPE_ID,&#13;&#10;    akt.ALTERNATE_KEY_TYPE,&#13;&#10;    src.PACKAGE_ALTERNATE_KEY_STATUS_ID,&#13;&#10;    src.ALTERNATE_KEY_STATUS_ID,&#13;&#10;    aks.ALTERNATE_KEY_STATUS,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.PACKAGE_LINKS src&#13;&#10;    JOIN hub.PACKAGES pa1 ON (pa1.PACKAGE_ID = src.PACKAGE_ID)&#13;&#10;    LEFT JOIN hub.ALTERNATE_KEY_TYPES akt ON akt.ALTERNATE_KEY_TYPE_ID = src.ALTERNATE_KEY_TYPE_ID&#13;&#10;    LEFT JOIN hub.ALTERNATE_KEY_STATUSES aks ON aks.ALTERNATE_KEY_STATUS_ID = src.ALTERNATE_KEY_STATUS_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PACKAGE_ID" nullable="true" remarks="The package ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PACKAGE_NAME" nullable="true" remarks="The package name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PACKAGE_ALTERNATE_KEY_TYPE_ID" nullable="true" remarks="The package alternate key type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ALTERNATE_KEY_TYPE_ID" nullable="true" remarks="The ID of an alternate key type which is a prerequisite for this package" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ALTERNATE_KEY_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ALTERNATE_KEY_TYPE" nullable="true" remarks="The name of an alternate key type which is a prerequisite for this package" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PACKAGE_ALTERNATE_KEY_STATUS_ID" nullable="true" remarks="The package alternate key status ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ALTERNATE_KEY_STATUS_ID" nullable="true" remarks="The ID of an alternate key status which is a prerequisite for this package" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ALTERNATE_KEY_STATUS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ALTERNATE_KEY_STATUSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ALTERNATE_KEY_STATUS" nullable="true" remarks="The name of an alternate key status which is a prerequisite for this package" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PACKAGE_ALTERNATE_KEY_STATUS_ID" sequenceNumberInPK="1"/>
         <primaryKey column="PACKAGE_ALTERNATE_KEY_TYPE_ID" sequenceNumberInPK="2"/>
      </table>
      <table catalog="ActiveHub" name="PACKAGE_PREREQUISITES" numRows="0" remarks="Your organization's defined prerequisites for membership packages" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PACKAGE_PREREQUISITES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.PACKAGE_PREREQUISITE_ID,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    src.GROUP_NUMBER,&#13;&#10;    src.CURRENT_PACKAGE_ID,&#13;&#10;    pa2.PACKAGE_NAME AS CURRENT_PACKAGE_NAME,&#13;&#10;    src.CURRENT_PACKAGE_CATEGORY_ID,&#13;&#10;    pc1.CATEGORY_NAME AS CURRENT_PACKAGE_CATEGORY_NAME,&#13;&#10;    src.PREVIOUS_PACKAGE_ID,&#13;&#10;    pa3.PACKAGE_NAME AS PREVIOUS_PACKAGE_NAME,&#13;&#10;    src.PREVIOUS_PACKAGE_CATEGORY_ID,&#13;&#10;    pc2.CATEGORY_NAME AS PREVIOUS_PACKAGE_CATEGORY_NAME,&#13;&#10;    src.DURATION_YEARS,&#13;&#10;    src.DURATION_MONTHS,&#13;&#10;    src.DURATION_DAYS,&#13;&#10;    src.HELD_BY,&#13;&#10;    src.IMMEDIATE_SALE_PACKAGE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.PACKAGE_PREREQUISITES src&#13;&#10;    LEFT JOIN hub.PACKAGES pa1 ON (pa1.PACKAGE_ID = src.PACKAGE_ID)&#13;&#10;    LEFT JOIN hub.PACKAGES pa2 ON (pa2.PACKAGE_ID = src.CURRENT_PACKAGE_ID)&#13;&#10;    LEFT JOIN hub.PACKAGES pa3 ON (pa3.PACKAGE_ID = src.PREVIOUS_PACKAGE_ID)&#13;&#10;    LEFT JOIN hub.PACKAGE_CATEGORIES pc1 ON (pc1.PACKAGE_CATEGORY_ID = src.CURRENT_PACKAGE_CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.PACKAGE_CATEGORIES pc2 ON (pc2.PACKAGE_CATEGORY_ID = src.PREVIOUS_PACKAGE_CATEGORY_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PACKAGE_PREREQUISITE_ID" nullable="true" remarks="Package prerequisite ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PACKAGE_ID" nullable="true" remarks="The ID of the package that the prerequisite belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PACKAGE_NAME" nullable="true" remarks="The name of the package that the prerequisite belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GROUP_NUMBER" nullable="true" remarks="The group number that the prerequisite belongs in" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CURRENT_PACKAGE_ID" nullable="true" remarks="The ID of the prerequisite membership package that must currently be active" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CURRENT_PACKAGE_NAME" nullable="true" remarks="The name of the prerequisite membership package that must currently be active" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CURRENT_PACKAGE_CATEGORY_ID" nullable="true" remarks="The ID of the prerequisite membership package category that must currently be active" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CURRENT_PACKAGE_CATEGORY_NAME" nullable="true" remarks="The name of the prerequisite membership package category that must currently be active" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="PREVIOUS_PACKAGE_ID" nullable="true" remarks="The ID of the prerequisite membership package that must have been held in the past" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="PREVIOUS_PACKAGE_NAME" nullable="true" remarks="The name of the prerequisite membership package that must have been held in the past" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="PREVIOUS_PACKAGE_CATEGORY_ID" nullable="true" remarks="The ID of the prerequisite membership package category that must have been held in the past" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="PREVIOUS_PACKAGE_CATEGORY_NAME" nullable="true" remarks="The name of the prerequisite membership package category that must have been held in the past" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DURATION_YEARS" nullable="true" remarks="The maximum number of years ago that the prerequisite membership may have occurred" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="DURATION_MONTHS" nullable="true" remarks="The maximum number of months ago that the prerequisite membership may have occurred" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="DURATION_DAYS" nullable="true" remarks="The maximum number of days ago that the prerequisite membership may have occurred" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="HELD_BY" nullable="true" remarks="Who must have owned the prerequisite membership (Client Only / Any Family Member)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="IMMEDIATE_SALE_PACKAGE" nullable="true" remarks="Whether the prerequisite membership package may be purchased at the time of registration" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PACKAGE_PREREQUISITE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PACKAGE_RENEWAL_CUSTOM_QUESTIONS" numRows="0" remarks="Custom questions for membership renewal transactions." schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PACKAGE_RENEWAL_CUSTOM_QUESTIONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    cql.PACKAGE_ID,&#13;&#10;    NULL CUSTOM_QUESTION_GROUP_ID,&#13;&#10;    NULL GROUP_DESCRIPTION,&#13;&#10;    NULL GROUP_HEADER_TEXT,&#13;&#10;    NULL GROUP_ORDER,&#13;&#10;    cql.QUESTION_ORDER,&#13;&#10;    cq.CUSTOM_QUESTION_ID,&#13;&#10;    cq.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    cq.QUESTION,&#13;&#10;    cq.IS_REQUIRED,&#13;&#10;    cq.QUESTION_TYPE,&#13;&#10;    cq.NOTE,&#13;&#10;    cq.DEFAULT_ANSWER,&#13;&#10;    cq.TITLE,&#13;&#10;    cq.ANSWER_FORMAT,&#13;&#10;    cq.IS_RETIRED,&#13;&#10;    cq.HIDE_ON_INTERNET,&#13;&#10;    cq.ADD_TO_NEW_ACTIVITIES,&#13;&#10;    cq.QUESTION_SCOPE,&#13;&#10;    cq.HIDE_ON_ADMIN,&#13;&#10;    cq.DO_NOT_SHOW_AFTER,&#13;&#10;    cq.DO_NOT_EDIT_AFTER,&#13;&#10;    cq.USE_ANSWER_CODE,&#13;&#10;    cq.QUESTION_HINT,&#13;&#10;    cq.MESSAGE_FOR_USED_UP_ANSWERS,&#13;&#10;    cq.ANSWER_MAX_LENGTH,&#13;&#10;    cq.EXTRA_ANSWER_TEXT,&#13;&#10;    cq.CUSTOM_QUESTION_TYPE_ID,&#13;&#10;    cct.CUSTOM_QUESTION_TYPE_NAME AS CUSTOM_QUESTION_TYPE,&#13;&#10;    cq.APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS,&#13;&#10;    cq.IS_DEMOGRAPHIC_RELATED_QUESTION&#13;&#10;FROM&#13;&#10;    hub.CUSTOM_QUESTION_LINKS cql&#13;&#10;    JOIN hub.CUSTOM_QUESTIONS cq ON cq.CUSTOM_QUESTION_ID = cql.CUSTOM_QUESTION_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.SITE_ID = cq.SITE_ID&#13;&#10;    LEFT JOIN hub.CUSTOM_QUESTION_TYPES cct ON (cct.CUSTOM_QUESTION_TYPE_ID = cq.CUSTOM_QUESTION_TYPE_ID)&#13;&#10;WHERE&#13;&#10;    cql.PACKAGE_CUSTOMQUESTIONS_RENEWAL_ID IS NOT NULL&#13;&#10;UNION ALL&#13;&#10;SELECT&#13;&#10;    cqgl.PACKAGE_ID,&#13;&#10;    cqgl.CUSTOM_QUESTION_GROUP_ID,&#13;&#10;    cqgl.GROUP_DESCRIPTION,&#13;&#10;    cqgl.GROUP_HEADER_TEXT,&#13;&#10;    cqgl.GROUP_ORDER,&#13;&#10;    cql.QUESTION_ORDER,&#13;&#10;    cq.CUSTOM_QUESTION_ID,&#13;&#10;    cq.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    cq.QUESTION,&#13;&#10;    cq.IS_REQUIRED,&#13;&#10;    cq.QUESTION_TYPE,&#13;&#10;    cq.NOTE,&#13;&#10;    cq.DEFAULT_ANSWER,&#13;&#10;    cq.TITLE,&#13;&#10;    cq.ANSWER_FORMAT,&#13;&#10;    cq.IS_RETIRED,&#13;&#10;    cq.HIDE_ON_INTERNET,&#13;&#10;    cq.ADD_TO_NEW_ACTIVITIES,&#13;&#10;    cq.QUESTION_SCOPE,&#13;&#10;    cq.HIDE_ON_ADMIN,&#13;&#10;    cq.DO_NOT_SHOW_AFTER,&#13;&#10;    cq.DO_NOT_EDIT_AFTER,&#13;&#10;    cq.USE_ANSWER_CODE,&#13;&#10;    cq.QUESTION_HINT,&#13;&#10;    cq.MESSAGE_FOR_USED_UP_ANSWERS,&#13;&#10;    cq.ANSWER_MAX_LENGTH,&#13;&#10;    cq.EXTRA_ANSWER_TEXT,&#13;&#10;    cq.CUSTOM_QUESTION_TYPE_ID,&#13;&#10;    cct.CUSTOM_QUESTION_TYPE_NAME AS CUSTOM_QUESTION_TYPE,&#13;&#10;    cq.APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS,&#13;&#10;    cq.IS_DEMOGRAPHIC_RELATED_QUESTION&#13;&#10;FROM&#13;&#10;    hub.CUSTOM_QUESTION_GROUP_LINKS cqgl&#13;&#10;    JOIN hub.CUSTOM_QUESTION_LINKS cql ON cql.CUSTOM_QUESTION_GROUP_ID = cqgl.CUSTOM_QUESTION_GROUP_ID AND cql.GROUPCUSTOMQUESTION_ID IS NOT NULL&#13;&#10;    JOIN hub.CUSTOM_QUESTIONS cq ON cq.CUSTOM_QUESTION_ID = cql.CUSTOM_QUESTION_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.SITE_ID = cq.SITE_ID&#13;&#10;    LEFT JOIN hub.CUSTOM_QUESTION_TYPES cct ON (cct.CUSTOM_QUESTION_TYPE_ID = cq.CUSTOM_QUESTION_TYPE_ID)&#13;&#10;WHERE&#13;&#10;    cqgl.PACKAGE_CUSTOM_QUESTION_GROUPS_RENEWAL_ID IS NOT NULL;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PACKAGE_ID" nullable="true" remarks="Package ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOM_QUESTION_GROUP_ID" nullable="true" remarks="Custom question group ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="GROUP_DESCRIPTION" nullable="true" remarks="Custom question group description" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="GROUP_HEADER_TEXT" nullable="true" remarks="Custom question group heading text" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GROUP_ORDER" nullable="true" remarks="Custom question group display order" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="QUESTION_ORDER" nullable="true" remarks="The order number that the question should be presented in" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOM_QUESTION_ID" nullable="true" remarks="Custom question ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SITE_ID" nullable="true" remarks="Site ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SITE_NAME" nullable="true" remarks="Site name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="QUESTION" nullable="true" remarks="The text of the question to be asked" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="IS_REQUIRED" nullable="true" remarks="Whether an answer is required for the custom question (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="QUESTION_TYPE" nullable="true" remarks="The type of control to be used to answer the question (User Entry / Single Selection - Dropdown / Single Selection - Radio / Multi Selection - Checkbox / Multi Selection - Listbox / Auto-fill Conditional)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="NOTE" nullable="true" remarks="A user note related to the custom question" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DEFAULT_ANSWER" nullable="true" remarks="The optional default answer for the user entry question" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="TITLE" nullable="true" remarks="The title of the custom question" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ANSWER_FORMAT" nullable="true" remarks="The answer format of the user entry question (Free Form / Phone Number / Date / Time / SSN / Postal Code / Upper-case Alpha / Lower-case Alpha / Numbers Only / Alpha Only / Duration)" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="IS_RETIRED" nullable="true" remarks="Whether the custom question has been retired (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether the custom question should be excluded from display on the internet site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ADD_TO_NEW_ACTIVITIES" nullable="true" remarks="Whether the custom question should be automatically added to new activities (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="QUESTION_SCOPE" nullable="true" remarks="The scope of the custom question (Ask for every transaction / Ask once per receipt)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="HIDE_ON_ADMIN" nullable="true" remarks="Whether the custom question should be excluded from display on the admin site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="DO_NOT_SHOW_AFTER" nullable="true" remarks="The last date that the custom question should be displayed" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="DO_NOT_EDIT_AFTER" nullable="true" remarks="The last date that the custom question should allow edits" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="USE_ANSWER_CODE" nullable="true" remarks="Whether the custom question uses answer codes (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="QUESTION_HINT" nullable="true" remarks="A hint to be displayed for the custom question" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="MESSAGE_FOR_USED_UP_ANSWERS" nullable="true" remarks="A message to be displayed for the custom question for answers that have reached their use count limit" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ANSWER_MAX_LENGTH" nullable="true" remarks="The maximum answer length for user entry questions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="EXTRA_ANSWER_TEXT" nullable="true" remarks="Additional instruction text to be displayed for a multiple-choice question" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="CUSTOM_QUESTION_TYPE_ID" nullable="true" remarks="Custom question type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="CUSTOM_QUESTION_TYPE" nullable="true" remarks="Custom question type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS" nullable="true" remarks="Whether the answer given should replace prior answers to the same question for the customer (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="IS_DEMOGRAPHIC_RELATED_QUESTION" nullable="true" remarks="Whether the custom question is related to demographics (Yes/No)" size="5" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="PACKAGES" numRows="0" remarks="Master table showing packages detail" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.PACKAGES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    src.PACKAGE_NAME,&#13;&#10;    src.PACKAGE_DESCRIPTION,&#13;&#10;    pc1.CATEGORY_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.AGES_MIN,&#13;&#10;    src.AGES_MAX,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    pc1.RETENTION_ELIGIBLE,&#13;&#10;    src.CATEGORY_ID,&#13;&#10;    ge1.GENDER_NAME AS GENDER,&#13;&#10;    src.PACKAGE_STATUS,&#13;&#10;    src.FAMILY_MEMBERSHIP,&#13;&#10;    src.PRIMARY_FEE,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.RENEWABLE,&#13;&#10;    src.QUALIFY_FOR_MEMBER_FEES,&#13;&#10;    src.QUALIFY_FOR_MEMBER_REGISTRATION_DATES,&#13;&#10;    src.HIDE_ON_INTERNET,&#13;&#10;    src.AVAILABLE_AS_PREREQUISITE,&#13;&#10;    src.DISABLE_USAGE_FEE_ON_TRANSFER,&#13;&#10;    src.DISABLE_USAGE_FEE_ON_RENEWAL,&#13;&#10;    src.GENDER_INDEX,&#13;&#10;    src.SPECIFIC_TIMEPERIOD,&#13;&#10;    src.SPECIFIC_TIMEPERIOD_NAME,&#13;&#10;    src.SPECIFIC_NUMBEROFDAYS,&#13;&#10;    src.CATALOG_DESCRIPTION,&#13;&#10;&#9;src.ALLOW_SUBSIDY,&#13;&#10;    src.PACKAGE_ID AS source_id,&#13;&#10;&#9;src.CANCELLATION_REASON_ID,&#13;&#10;&#9;src.CANCELLATION_REASON_TEXT,&#13;&#10;&#9;src.CANCELLATION_REASON_DATE&#9;&#13;&#10;FROM &#13;&#10;    hub.PACKAGES src&#13;&#10;    LEFT JOIN hub.PACKAGE_CATEGORIES pc1 ON (pc1.ORG_ID = src.ORG_ID AND pc1.PACKAGE_CATEGORY_ID = src.CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.GENDERS ge1 ON (ge1.ORG_ID = src.ORG_ID AND ge1.GENDER_INDEX = src.GENDER_INDEX);&#13;&#10;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PACKAGE_ID" nullable="true" remarks="The ID of the membership package." size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="MEMBER_PREFILL_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_PREREQUISITES"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="INTEREST_LISTS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_ENTRY_POINTS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_FEES"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_LINKS"/>
            <child catalog="ActiveHub" column="CURRENT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_PREREQUISITES"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_PREREQUISITES"/>
            <child catalog="ActiveHub" column="PREVIOUS_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_PREREQUISITES"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRELIMINARY_DRAFTS"/>
            <child catalog="ActiveHub" column="PREREQUISITE_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PREREQUISITES"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PACKAGE_NAME" nullable="true" remarks="The name of the membership package." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PACKAGE_DESCRIPTION" nullable="true" remarks="The additional description of the package if it was configured" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CATEGORY_NAME" nullable="true" remarks="The category of the membership package." size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SITE_ID" nullable="true" remarks="The ID of the site of the membership package." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SITE_NAME" nullable="true" remarks="The site name of the membership package." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="AGES_MIN" nullable="true" remarks="Maximum participant age (year) of the membership package." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="AGES_MAX" nullable="true" remarks="Minimum participant age (year) of the membership package." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="RETENTION_ELIGIBLE" nullable="true" remarks="Gives retention eligibility of a package (Yes/No)." size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CATEGORY_ID" nullable="true" remarks="The category ID of the package" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="GENDER" nullable="true" remarks="The gender restriction of the package" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PACKAGE_STATUS" nullable="true" remarks="The status of the package" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="FAMILY_MEMBERSHIP" nullable="true" remarks="Whether this is a family package (Yes/No)." size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="16" name="PRIMARY_FEE" nullable="true" remarks="The primary fee amount of the package" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="RENEWABLE" nullable="true" remarks="Whether memberships of this package are renewable (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="QUALIFY_FOR_MEMBER_FEES" nullable="true" remarks="Whether a membership of this package qualifies the customer for 'Per Member' fees (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="QUALIFY_FOR_MEMBER_REGISTRATION_DATES" nullable="true" remarks="Whether a membership of this package qualifies the customer for member registration dates (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether this package should be excluded from display on the internet registration site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="AVAILABLE_AS_PREREQUISITE" nullable="true" remarks="Whether this package can be used as a prerequisite for activity and program registrations (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="DISABLE_USAGE_FEE_ON_TRANSFER" nullable="true" remarks="Whether usage fees should be waived for a transfer into this package (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="DISABLE_USAGE_FEE_ON_RENEWAL" nullable="true" remarks="Whether usage fees should be waived for a renewal of this package (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="GENDER_INDEX" nullable="true" remarks="The gender ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GENDERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="SPECIFIC_TIMEPERIOD" nullable="true" remarks="Specific time period the package is active (0=N/A, 1=Days, 2=Weekly, 3=Biweekly, 4=Semimonthly, 5=Monthly, 6=Bimonthly, 7=Quarterly, 8=Semiannually, 9=Annually)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="SPECIFIC_TIMEPERIOD_NAME" nullable="true" remarks="Specific time period the package is active" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="SPECIFIC_NUMBEROFDAYS" nullable="true" remarks="Specific number of days the package is active" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="CATALOG_DESCRIPTION" nullable="true" remarks="The catalog description to be displayed for this package" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="ALLOW_SUBSIDY" nullable="true" remarks="Allow subsidy for package" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="CANCELLATION_REASON_ID" nullable="true" remarks="Pacakge cancellation reason ID, from Reasons table." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="CANCELLATION_REASON_TEXT" nullable="true" remarks="Pacakge cancellation reason text, from Reasons table." size="4000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="34" name="CANCELLATION_REASON_DATE" nullable="true" remarks="Pacakge cancellation date." size="16" type="datetime" typeCode="93"/>
         <primaryKey column="PACKAGE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PARENT_LOCATIONS" numRows="0" remarks="Your organization's defined parent locations" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.PARENT_LOCATIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.PARENT_LOCATION_ID,&#13;&#10;    src.PARENT_LOCATION_NAME,&#13;&#10;    src.PARENT_LOCATION_CODE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.PARENT_LOCATIONS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PARENT_LOCATION_ID" nullable="false" remarks="The parent location ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="PARENT_LOCATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHILD_WATCH_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="PARENT_LOCATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_ATTENDANCE_HISTORY"/>
            <child catalog="ActiveHub" column="PARENT_LOCATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_REGISTRATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PARENT_LOCATION_NAME" nullable="true" remarks="The parent location name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PARENT_LOCATION_CODE" nullable="true" remarks="The parent location code" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="3" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PARENT_LOCATION_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PARTICIPANT_ZONE_POSTAL_CODES" numRows="0" remarks="Postal codes that are eligible for priority registration grouped into zones" schema="dbo" type="VIEW" viewSql="&#9;&#9;&#9;&#9;&#9;&#13;&#10;CREATE VIEW dbo.PARTICIPANT_ZONE_POSTAL_CODES &#13;&#10;AS &#9;&#13;&#10;SELECT &#13;&#10;&#9;pzpc.ORG_ID,&#13;&#10;&#9;pzpc.POSTAL_CODE_ID,&#13;&#10;&#9;pzpc.CODE,&#13;&#10;&#9;pzpc.PARTICIPANT_ZONE_ID,&#13;&#10;&#9;pz.PARTICIPANT_ZONE_NAME,&#13;&#10;&#9;pzpc.ROW_VERSION,&#13;&#10;&#9;pzpc.LAST_SYNC_TIME&#13;&#10;FROM hub.PARTICIPANT_ZONE_POSTAL_CODES pzpc&#13;&#10;LEFT JOIN hub.PARTICIPANT_ZONES pz &#13;&#10;&#9;ON pzpc.ORG_ID = pz.ORG_ID AND pzpc.PARTICIPANT_ZONE_ID = pz.PARTICIPANT_ZONE_ID&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="POSTAL_CODE_ID" nullable="false" remarks="The unique ID for this object" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CODE" nullable="true" remarks="The value of the postal code being referenced" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PARTICIPANT_ZONE_ID" nullable="true" remarks="The unique ID of the participant zone in PARTICIPANT_ZONES" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PARTICIPANT_ZONE_NAME" nullable="true" remarks="The descriptive name of the Participant Zone" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time dbo record was last modified" size="16" type="datetime" typeCode="93"/>
      </table>
      <table catalog="ActiveHub" name="PARTICIPANT_ZONES" numRows="0" remarks="Zones that are eligible for pririty registration" schema="dbo" type="VIEW" viewSql="&#9;&#9;&#9;&#9;&#9;&#13;&#10;CREATE VIEW dbo.PARTICIPANT_ZONES &#13;&#10;AS &#9;&#13;&#10;SELECT &#13;&#10;&#9;pz.ORG_ID,&#13;&#10;&#9;pz.PARTICIPANT_ZONE_ID,&#13;&#10;&#9;pz.PARTICIPANT_ZONE_NAME,&#13;&#10;&#9;pz.UPLOADED_FILE_NAME,&#13;&#10;&#9;pz.ROW_VERSION,&#13;&#10;&#9;pz.LAST_SYNC_TIME&#13;&#10;FROM hub.PARTICIPANT_ZONES pz&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PARTICIPANT_ZONE_ID" nullable="false" remarks="The unique ID for this object" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PARTICIPANT_ZONE_NAME" nullable="true" remarks="The descriptive name of the Participant Zone" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="UPLOADED_FILE_NAME" nullable="true" remarks="The name of the uploaded customer import csv file" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time dbo record was last modified" size="16" type="datetime" typeCode="93"/>
      </table>
      <table catalog="ActiveHub" name="PAYMENT_CHARGEBACKS" numRows="0" remarks="Payment chargeback information" schema="dbo" type="VIEW" viewSql="&#13;&#10;&#13;&#10;CREATE VIEW dbo.PAYMENT_CHARGEBACKS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.PAYMENT_CHARGEBACK_ID,&#13;&#10;    src.CLIENT_TRANSACTION_ID,&#13;&#10;    src.RECEIPT_PAYMENT_ID,&#13;&#10;    rp1.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    rp1.CUSTOMER_ID,&#13;&#10;    CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME) AS CUSTOMER_NAME,&#13;&#10;    src.RECEIPT_HEADER_ID,&#13;&#10;    FORMAT(rh1.RECEIPT_NUMBER, '#.0000') AS RECEIPT_NUMBER,&#13;&#10;    src.AMS_TRANSACTION_ID,&#13;&#10;    src.ORIGINAL_TRANSACTION_DATE_TIME,&#13;&#10;    CAST(src.ORIGINAL_TRANSACTION_DATE_TIME AS DATE) AS ORIGINAL_TRANSACTION_DATE_ONLY,&#13;&#10;    src.ORIGINAL_TRANSACTION_AMOUNT,&#13;&#10;    src.MERCHANT_DESCRIPTOR,&#13;&#10;    src.ORDER_DESCRIPTOR,&#13;&#10;    src.ORDER_REFERENCE,&#13;&#10;    src.CC_CARDHOLDER_NAME,&#13;&#10;    src.CC_ACCOUNT_TYPE,&#13;&#10;    src.CC_ACCOUNT_LAST_FOUR,&#13;&#10;    src.ORIGINAL_CHARGEBACK_DATE,&#13;&#10;    src.CHARGEBACK_DATE,&#13;&#10;    src.CHARGEBACK_DUE_DATE,&#13;&#10;    src.LAST_CHARGEBACK_ACTIVITY_DATE,&#13;&#10;    rv1.REFERENCE_VALUE AS CHARGEBACK_CATEGORY,&#13;&#10;    rv2.REFERENCE_VALUE AS CHARGEBACK_REASON,&#13;&#10;    src.PRESENTMENT_CURRENCY,&#13;&#10;    src.PRESENTMENT_AMOUNT,&#13;&#10;    src.CURRENT_ACTION_PRESENTMENT_AMOUNT,&#13;&#10;    src.SETTLEMENT_CURRENCY,&#13;&#10;    src.SETTLEMENT_AMOUNT,&#13;&#10;    src.CURRENT_ACTION_SETTLEMENT_AMOUNT,&#13;&#10;    src.DISPUTE_STATUS,&#13;&#10;    src.IS_FINAL,&#13;&#10;    src.FINALIZATION_DATE,&#13;&#10;    src.MODIFIED_DATE_TIME,&#13;&#10;    CAST(src.MODIFIED_DATE_TIME AS DATE) AS MODIFIED_DATE_ONLY,&#13;&#10;    src.INVOICE_NUMBER,&#13;&#10;    src.INVOICE_BILLED_AMOUNT,&#13;&#10;    src.INVOICE_PROCESSED_DATE_TIME,&#13;&#10;    CAST(src.INVOICE_PROCESSED_DATE_TIME AS DATE) AS INVOICE_PROCESSED_DATE_ONLY,&#13;&#10;    src.INVOICE_EMAIL_ADDRESSES,&#13;&#10;    src.INVOICE_MANUALLY_ADJUSTED,&#13;&#10;    src.INVOICE_STATUS,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.CLIENT_TRANSACTION_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.PAYMENT_CHARGEBACKS src&#13;&#10;    LEFT JOIN hub.RECEIPT_PAYMENTS rp1 ON rp1.ORG_ID = src.ORG_ID AND rp1.RECEIPT_PAYMENT_ID = src.RECEIPT_PAYMENT_ID&#13;&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON rh1.ORG_ID = src.ORG_ID AND rh1.RECEIPT_HEADER_ID = src.RECEIPT_HEADER_ID&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON cu1.ORG_ID = rp1.ORG_ID AND cu1.CUSTOMER_ID = rp1.CUSTOMER_ID&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON co1.ORG_ID = rp1.ORG_ID AND co1.COMPANY_ID = rp1.COMPANY_ID&#13;&#10;    LEFT JOIN hub.REFERENCE_VALUES rv1 ON (rv1.ORG_ID = src.ORG_ID AND rv1.REFERENCE_ID = src.CHARGEBACK_CATEGORY_ID AND rv1.REFERENCE_TABLE = 'CHARGEBACK_CATEGORIES' AND rv1.REFERENCE_COLUMN = 'TITLE')&#13;&#10;    LEFT JOIN hub.REFERENCE_VALUES rv2 ON (rv2.ORG_ID = src.ORG_ID AND rv2.REFERENCE_ID = src.CHARGEBACK_REASON_ID AND rv2.REFERENCE_TABLE = 'CHARGEBACK_REASONS' AND rv2.REFERENCE_COLUMN = 'TITLE');&#13;&#10;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PAYMENT_CHARGEBACK_ID" nullable="true" remarks="ID used to uniquely identify a chargeback daily status row (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CLIENT_TRANSACTION_ID" nullable="true" remarks="Client transaction ID for the charged back payment" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="RECEIPT_PAYMENT_ID" nullable="true" remarks="Original receipt payment ID for the charged back payment" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_PAYMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="COMPANY_ID" nullable="true" remarks="ID of the company who made the payment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="COMPANY_NAME" nullable="true" remarks="Name of the company who made the payment" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMER_ID" nullable="true" remarks="ID of the customer who made the payment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOMER_NAME" nullable="false" remarks="Name of the customer who made the payment" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="RECEIPT_HEADER_ID" nullable="true" remarks="Original receipt header ID for the charged back payment" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="RECEIPT_NUMBER" nullable="true" remarks="Original receipt number for the charged back payment" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="AMS_TRANSACTION_ID" nullable="true" remarks="The AMS transaction ID for the charged back payment" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="ORIGINAL_TRANSACTION_DATE_TIME" nullable="true" remarks="Date and time the original payment transaction occurred as recorded in the payment processing system, and is presented in the time zone of that system which may differ from your local time zone" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ORIGINAL_TRANSACTION_DATE_ONLY" nullable="true" remarks="Date the original payment transaction occurred as recorded in the payment processing system, and is presented in the time zone of that system which may differ from your local time zone (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="12" name="ORIGINAL_TRANSACTION_AMOUNT" nullable="true" remarks="Amount of the original payment transaction as recorded in the payment processing system" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="MERCHANT_DESCRIPTOR" nullable="true" remarks="Merchant Descriptor of the organization for which an order was taken. This descriptor is sent to the payment processor and may show on CC statements." size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ORDER_DESCRIPTOR" nullable="true" remarks="Descriptor providing some information about the order from which the charged back payment originated" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ORDER_REFERENCE" nullable="true" remarks="Order reference from the source application for which the payment transaction occurred" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="CC_CARDHOLDER_NAME" nullable="true" remarks="Name of the cardholder for which the chargeback was initiated" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="CC_ACCOUNT_TYPE" nullable="true" remarks="Type of credit card that was used for the payment being charged back" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="CC_ACCOUNT_LAST_FOUR" nullable="true" remarks="Last 4 digits of the credit card number used as payment for the transaction being charged back" size="4" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ORIGINAL_CHARGEBACK_DATE" nullable="true" remarks="Date a chargeback for the transaction was first received. May be different than the current chargeback date if the chargeback was submitted more than once" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="CHARGEBACK_DATE" nullable="true" remarks="Date the chargeback for the transaction was initiated" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="CHARGEBACK_DUE_DATE" nullable="true" remarks="Date by which supporting documentation must be presented to protest a chargeback" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="LAST_CHARGEBACK_ACTIVITY_DATE" nullable="true" remarks="Last date chargeback activity occurred. Corresponds to the date that the current chargeback category was set" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="CHARGEBACK_CATEGORY" nullable="true" remarks="Identifies the last activity that occurred regarding the chargeback" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="CHARGEBACK_REASON" nullable="true" remarks="Identifies the reason that the chargeback was initiated" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="PRESENTMENT_CURRENCY" nullable="true" remarks="The three-character ISO code identifying the currency in which presentment amounts are displayed" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="26" name="PRESENTMENT_AMOUNT" nullable="true" remarks="The amount of this chargeback at the time it was received from the issuer, expressed in the cardholder’s Presentment Currency" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="27" name="CURRENT_ACTION_PRESENTMENT_AMOUNT" nullable="true" remarks="The value of the current action, as indicated by the Category, for the item included in this Data Record and indicated in the merchant’s presentment currency" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="SETTLEMENT_CURRENCY" nullable="true" remarks="The three-character ISO code identifying the currency in which settlement amounts are displayed" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="29" name="SETTLEMENT_AMOUNT" nullable="true" remarks="The amount of this chargeback, expressed in the merchant’s settlement currency, at the time it was received from the issuer" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="30" name="CURRENT_ACTION_SETTLEMENT_AMOUNT" nullable="true" remarks="The value of the items included in a Data Record expressed in the merchant’s settlement funding currency" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="DISPUTE_STATUS" nullable="true" remarks="Dispute status, options include WIN, LOSS and PENDING. A status of WIN means that the cardholder's dispute of the charge has been rejected, while a status of LOSS means that the cardholder's dispute of the charge has been upheld." size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="IS_FINAL" nullable="true" remarks="Indicates whether or not this chargeback is considered to be in a final state. At this point the status should be WIN or LOSS with enough time passed since the outcome that it is unlikely to be challenged (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="FINALIZATION_DATE" nullable="true" remarks="Date the chargeback was considered finalized" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="34" name="MODIFIED_DATE_TIME" nullable="true" remarks="Date and Time the record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="MODIFIED_DATE_ONLY" nullable="true" remarks="Date the record was last modified (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="INVOICE_NUMBER" nullable="true" remarks="The identifying number of the invoice generated for reimbursement of the chargeback amount" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="37" name="INVOICE_BILLED_AMOUNT" nullable="true" remarks="The amount of the generated invoice" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="38" name="INVOICE_PROCESSED_DATE_TIME" nullable="true" remarks="The date and time that the invoice was processed" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="INVOICE_PROCESSED_DATE_ONLY" nullable="true" remarks="The date that the invoice was processed (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="INVOICE_EMAIL_ADDRESSES" nullable="true" remarks="The email distribution list to be notified regarding the invoice" size="800" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="INVOICE_MANUALLY_ADJUSTED" nullable="true" remarks="Whether the invoice amount has been manually adjusted (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="INVOICE_STATUS" nullable="true" remarks="The status of the invoice for this chargeback" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="44" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="50" type="varchar" typeCode="12"/>
         <primaryKey column="CLIENT_TRANSACTION_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PAYMENTPLANCONFIG" numRows="0" remarks="Payment plan configurations" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.PAYMENTPLANCONFIG &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    ACTIVE_HUB_KEY,&#13;&#10;&#9;ORG_ID,&#13;&#10;&#9;PAYMENTPLAN_CONFIG_ID,&#13;&#10;&#9;ACTIVITY_ID,&#13;&#10;    INITIAL_AMOUNT,&#13;&#10;    CHARGE_CREDIT_CARD,&#13;&#10;    ALLOW_ONLINE,&#13;&#10;    ALLOW_PERCENTAGE_OF_BALANCE,&#13;&#10;    PAYMENT_PLAN_NAME,&#13;&#10;    IS_DEFAULT,&#13;&#10;&#9;CHARGE_ID,&#13;&#10;    CHARGE_NAME,&#13;&#10;    CHARGE_TYPE,&#13;&#10;    FEE_AMOUNT,&#13;&#10;&#9;GLACCOUNT_ID,&#13;&#10;    PREFILL_CONDITION,&#13;&#10;    DISCOUNTABLE,&#13;&#10;    DISCOUNT_TYPE,&#13;&#10;    OVERRIDE_FLAG,&#13;&#10;    DISCOUNT_PERCENT,&#13;&#10;    TAXABLE_BY_TAX1,&#13;&#10;    TAXABLE_BY_TAX2,&#13;&#10;    TAXABLE_BY_TAX3,&#13;&#10;    TAXABLE_BY_TAX4,&#13;&#10;&#9;CUSTOMERTYPE_ID,&#13;&#10;&#9;CUSTOMERTYPE,&#13;&#10;    AGES_MAX,&#13;&#10;    AGES_MIN,&#13;&#10;    ACTIVATION_DATE,&#13;&#10;    EXPIRATION_DATE,&#13;&#10;    EXCLUDE_FROM_PAYMENT_PLAN,&#13;&#10;    ENABLE_USAGE_CHARGE,&#13;&#10;    PAYMENT_PLAN_DESCRIPTION,&#13;&#10;    INITIAL_PERCENT,&#13;&#10;&#9;SEASON_ID,&#13;&#10;&#9;CHILD_SEASON_ID,&#13;&#10;    PAYMENT_SCHEDULE_TYPE,&#13;&#10;    PAYMENT_DISTRIBUTION_TYPE,&#13;&#10;    INITIAL_PAYMENT_TYPE,&#13;&#10;    PAYMENT_CYCLE,&#13;&#10;    NUM_DAYS_INTO_PAYMENT_CYCLE,&#13;&#10;    PAYMENT_CYCLE_START_TYPE,&#13;&#10;    NUM_PAYMENT_CYCLE_EVEN_DISTRIBUTIONS,&#13;&#10;    INCLUDE_PAST_MEETING_DATES,&#13;&#10;    TAXABLE_BY_TAX5,&#13;&#10;    TAXABLE_BY_TAX6,&#13;&#10;    TAXABLE_BY_TAX7,&#13;&#10;    TAXABLE_BY_TAX8,&#13;&#10;&#9;PACKAGE_ID,&#13;&#10;    DUE_DATE_LEAD_TIME_DAYS,&#13;&#10;&#9;SYSTEM_GL_ACCOUNT_PACKAGE_ID,&#13;&#10;    PRORATED_EARLIEST_TO_LATEST,&#13;&#10;&#9;ROW_VERSION,&#13;&#10;&#9;LAST_SYNC_TIME,&#13;&#10;&#9;ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM &#13;&#10;    hub.PAYMENTPLANCONFIG&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PAYMENTPLAN_CONFIG_ID" nullable="false" remarks="ID of the this table" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVITY_ID" nullable="true" remarks="Activity ID for payment plan" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="4" name="INITIAL_AMOUNT" nullable="true" remarks="Initital payment amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CHARGE_CREDIT_CARD" nullable="true" remarks="Whether the saved credit card should be charged when payments become due" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ALLOW_ONLINE" nullable="true" remarks="Whether this payment plan is allowed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ALLOW_PERCENTAGE_OF_BALANCE" nullable="true" remarks="Allow percentage of balance payment" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="PAYMENT_PLAN_NAME" nullable="true" remarks="The name of the payment plan" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="IS_DEFAULT" nullable="true" remarks="Is this the default payment plan" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="CHARGE_ID" nullable="true" remarks="The ID of the base charge used to derive the payment plan" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="CHARGE_NAME" nullable="true" remarks="The name of the base charge used to derive the payment plan" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CHARGE_TYPE" nullable="true" remarks="The type of charge (Fee/Discount)" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="13" name="FEE_AMOUNT" nullable="true" remarks="Payment plan price amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="GLACCOUNT_ID" nullable="true" remarks="The ID of the GL Account that the payment plan amount will be posted to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="PREFILL_CONDITION" nullable="true" remarks="The prefill condition for this payment plan (Never / Always / If Resident / If Non-resident / If Minor / If Senior / If Internet / If Member / If Non-member)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="DISCOUNTABLE" nullable="true" remarks="Whether this charge can be payment planed (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="DISCOUNT_TYPE" nullable="true" remarks="The type of discount for payment plan (Amount / Percent)" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="OVERRIDE_FLAG" nullable="true" remarks="Whether this charge can be overridden" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="19" name="DISCOUNT_PERCENT" nullable="true" remarks="The discount percentage for the payment plan" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="TAXABLE_BY_TAX1" nullable="true" remarks="Whether tax 1 applies to this payment plan (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="TAXABLE_BY_TAX2" nullable="true" remarks="Whether tax 2 applies to this payment plan (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="TAXABLE_BY_TAX3" nullable="true" remarks="Whether tax 3 applies to this payment plan (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="TAXABLE_BY_TAX4" nullable="true" remarks="Whether tax 4 applies to this payment plan (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="CUSTOMERTYPE_ID" nullable="true" remarks="The customer type ID that this charge applies to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="CUSTOMERTYPE" nullable="true" remarks="The customer type description (General/General Public)" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="AGES_MAX" nullable="true" remarks="The maximum age (years) allowed for this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="AGES_MIN" nullable="true" remarks="The minimum age (years) allowed for this activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="28" name="ACTIVATION_DATE" nullable="true" remarks="The first available date for this payment plan" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="29" name="EXPIRATION_DATE" nullable="true" remarks="The last available date for this payment plan" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="EXCLUDE_FROM_PAYMENT_PLAN" nullable="true" remarks="Whether the fee amount for the target should be excluded from any payment plan (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="ENABLE_USAGE_CHARGE" nullable="true" remarks="Enable usage charges for the payment plan" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="PAYMENT_PLAN_DESCRIPTION" nullable="true" remarks="The description of the payment plan" size="250" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="33" name="INITIAL_PERCENT" nullable="true" remarks="Initial payment percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="SEASON_ID" nullable="true" remarks="The parent season ID of the activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="CHILD_SEASON_ID" nullable="true" remarks="The child season ID of the activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="PAYMENT_SCHEDULE_TYPE" nullable="true" remarks="Type of payment schedule for this permit(None / Weekly / Monthly / By First Booking / By Each Booking)" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="PAYMENT_DISTRIBUTION_TYPE" nullable="true" remarks="Distribution type for payment plan (Unknown, Even distribution, Custom percentage distribution, Based on meetings per payment cycle)" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="INITIAL_PAYMENT_TYPE" nullable="true" remarks="Type of initial payment (Unknown, Fixed amount, Percent of total, First payment cycle due)" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="PAYMENT_CYCLE" nullable="true" remarks="How payment plans should be billed (No Automatic Plans / Weekly / Every Other Week / Twice a Month / Monthly / Quarterly / Every Four Weeks / Per Session)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="NUM_DAYS_INTO_PAYMENT_CYCLE" nullable="true" remarks="Number of days after start date to charge" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="PAYMENT_CYCLE_START_TYPE" nullable="true" remarks="Type of start of payment plan (Unknown, Payment cycle for first_meeting, Next after sale)" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="NUM_PAYMENT_CYCLE_EVEN_DISTRIBUTIONS" nullable="true" remarks="Number of payment cycles to distribute payments across" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="INCLUDE_PAST_MEETING_DATES" nullable="true" remarks="Include previous meeting dates in payment plan (Yes/No)" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="TAXABLE_BY_TAX5" nullable="true" remarks="Whether tax 5 applies to this payment plan (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="TAXABLE_BY_TAX6" nullable="true" remarks="Whether tax 6 applies to this payment plan (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="TAXABLE_BY_TAX7" nullable="true" remarks="Whether tax 7 applies to this payment plan (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="TAXABLE_BY_TAX8" nullable="true" remarks="Whether tax 8 applies to this payment plan (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="PACKAGE_ID" nullable="true" remarks="The package ID that the revenue applies to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="DUE_DATE_LEAD_TIME_DAYS" nullable="true" remarks="The number of days prior to each payment cycle that payment should be due" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="PRORATED_EARLIEST_TO_LATEST" nullable="true" remarks="Whether the amount should be prorated from earlies to latest (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="ROW_VERSION" nullable="true" remarks="System timestamp (for INTernal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="53" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="PAYMENTPLANCONFIGSCHEDULES" numRows="0" remarks="Schedule configuration for payment plans" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.PAYMENTPLANCONFIGSCHEDULES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    ACTIVE_HUB_KEY,&#13;&#10;&#9;ORG_ID,&#13;&#10;&#9;PAYMENTPLAN_CONFIG_SCHEDULE_ID,&#13;&#10;&#9;PAYMENTPLAN_CONFIG_ID,&#13;&#10;&#9;SCHEDULE_DATE,&#13;&#10;&#9;NUMBER_OF_DAYS_AFTER,&#13;&#10;&#9;PAY_START_DATE,&#13;&#10;&#9;PERCENTAGE_OF_BALANCE,&#13;&#10;&#9;ROW_VERSION,&#13;&#10;&#9;LAST_SYNC_TIME,&#13;&#10;&#9;ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM &#13;&#10;    hub.PAYMENTPLANCONFIGSCHEDULES&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PAYMENTPLAN_CONFIG_SCHEDULE_ID" nullable="false" remarks="ID of the this table" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PAYMENTPLAN_CONFIG_ID" nullable="true" remarks="The ID of the related PAYMENTPLANCONFIG" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="SCHEDULE_DATE" nullable="true" remarks="Date of the scheduled cancellation" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="NUMBER_OF_DAYS_AFTER" nullable="true" remarks="Number of days after start date to charge" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PAY_START_DATE" nullable="true" remarks="Start date for payment schedule" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="7" name="PERCENTAGE_OF_BALANCE" nullable="true" remarks="Percentage of blanace to charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ROW_VERSION" nullable="true" remarks="System timestamp (for INTernal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="PEAK_LOAD_PERIODS" numRows="0" remarks="Rush event data" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.PEAK_LOAD_PERIODS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.PEAK_LOAD_PERIOD_ID AS PEAK_LOAD_PERIOD_ID,&#13;&#10;&#9;src.PEAK_LOAD_PERIOD,&#13;&#10;&#9;src.START_DATESTAMP,&#13;&#10;&#9;src.END_DATESTAMP,&#13;&#10;&#9;src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;&#9;src.DATESTAMP,&#13;&#10;&#9;src.IS_ANNUAL_EVENT,&#13;&#10;&#9;src.PREVIOUS_YEAR_REG_DATE,&#13;&#10;&#9;src.FIRST_10MIN,&#13;&#10;&#9;src.FIRST_1HOUR,&#13;&#10;&#9;src.PRINT_MEDIA,&#13;&#10;&#9;src.ONLINE_MEDIA,&#13;&#10;&#9;src.SOCIAL_MEDIA,&#13;&#10;&#9;src.MASS_MEDIA,&#13;&#10;&#9;src.FOR_TYPE,&#13;&#10;&#9;src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.PEAK_LOAD_PERIOD_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.PEAK_LOAD_PERIODS src&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PEAK_LOAD_PERIOD_ID" nullable="false" remarks="Unique ID of the table" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PEAK_LOAD_PERIOD" nullable="true" remarks="Rush event name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="2" name="START_DATESTAMP" nullable="true" remarks="Rush event start date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="3" name="END_DATESTAMP" nullable="true" remarks="Rush event end date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the user who created the rush event" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the user who created the rush event" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="DATESTAMP" nullable="true" remarks="Rush event creatred date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="IS_ANNUAL_EVENT" nullable="true" remarks="Is this annual event (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="PREVIOUS_YEAR_REG_DATE" nullable="true" remarks="Previous year registration date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="FIRST_10MIN" nullable="true" remarks="Number of registrations in the first 10 minutes" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="FIRST_1HOUR" nullable="true" remarks="Number of registrations in the first 10 hour" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="PRINT_MEDIA" nullable="true" remarks="Whether Print Media was used for this peak period (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ONLINE_MEDIA" nullable="true" remarks="Whether Online Media was used for this peak period (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="SOCIAL_MEDIA" nullable="true" remarks="Whether Social Media was used for this peak period (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="MASS_MEDIA" nullable="true" remarks="Whether Mass Media was used for this peak period (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="FOR_TYPE" nullable="true" remarks="Rush event type" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="source_id" nullable="false" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="PERMITS" numRows="0" remarks="Table containing rental permit data" schema="dbo" type="VIEW" viewSql="&#10;CREATE VIEW dbo.PERMITS&#10;AS&#10;SELECT&#10;    src.ACTIVE_HUB_KEY,&#10;    src.PERMIT_ID,&#10;    src.PERMIT_NUMBER,&#10;    src.EVENT_NAME,&#10;    src.COMPANY_ID,&#10;    co1.COMPANY_NAME,&#10;    src.CUSTOMER_ID,&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS CUSTOMER_NAME,&#10;    src.CUSTOMER_TYPE_ID,&#10;    ct1.CUSTOMER_TYPE_NAME AS CUSTOMER_TYPE,&#10;    src.PERMIT_DATE,&#10;    src.SYSTEMUSER_ID,&#10;    NULLIF(CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME), '') AS SYSTEM_USER_NAME,&#10;    src.SITE_ID,&#10;    si1.SITE_NAME,&#10;    src.PERMIT_STATUS,&#10;    src.ORIGINAL_REQUEST_NUMBER,&#10;    src.EXPIRATION_DATE,&#10;    src.EVENT_DATE_DESCRIPTION,&#10;    src.RESERVATION_PERIOD_UNIT,&#10;    src.PAYMENT_SCHEDULE_TYPE,&#10;    src.DUE_DAY_OF_WEEK,&#10;    src.DUE_DAY_OF_MONTH,&#10;    src.DUE_MONTH_OFFSET,&#10;    src.DUE_DATE_OFFSET,&#10;    src.PERMIT_ADMINISTRATOR_ID,&#10;    NULLIF(CONCAT(su2.USER_FIRST_NAME, IIF(su2.USER_FIRST_NAME IS NOT NULL AND su2.USER_LAST_NAME IS NOT NULL, ' ', ''), su2.USER_LAST_NAME), '') AS PERMIT_ADMINISTRATOR_NAME,&#10;    src.CREATED_BY_NEW_WORKFLOW,&#10;    src.APPLY_CHARGE_AT_RESOURCE_LEVEL,&#10;    src.LAST_SYNC_TIME,&#10;    src.ACTIVE_HUB_PROCESS_ID,&#10;    src.ORG_ID,&#10;    src.PERMIT_ID AS source_id &#10;FROM&#10;    hub.PERMITS src&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.ORG_ID = src.ORG_ID AND co1.COMPANY_ID = src.COMPANY_ID)&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.SITE_ID)&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#10;    LEFT JOIN hub.SYSTEM_USERS su2 ON (su2.ORG_ID = src.ORG_ID AND su2.SYSTEMUSER_ID = src.PERMIT_ADMINISTRATOR_ID)&#10;    LEFT JOIN hub.CUSTOMER_TYPES ct1 ON (ct1.ORG_ID = src.ORG_ID AND ct1.CUSTOMER_TYPE_ID = src.CUSTOMER_TYPE_ID);&#10;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PERMIT_ID" nullable="true" remarks="Permit ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="PERMIT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_HEADERS"/>
            <child catalog="ActiveHub" column="PERMIT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="PERMIT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="PERMIT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_USAGE_REVENUE"/>
            <child catalog="ActiveHub" column="PERMIT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PERMIT_NUMBER" nullable="true" remarks="Permit number" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="EVENT_NAME" nullable="true" remarks="Permit event name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="COMPANY_ID" nullable="true" remarks="Company ID that the permit is for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="COMPANY_NAME" nullable="true" remarks="Company name that the permit is for" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOMER_ID" nullable="true" remarks="Customer ID that the permit is for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CUSTOMER_NAME" nullable="true" remarks="Customer name that the permit is for" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CUSTOMER_TYPE_ID" nullable="true" remarks="Customer type ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CUSTOMER_TYPE" nullable="true" remarks="Customer type name" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="PERMIT_DATE" nullable="true" remarks="Date that the permit was created" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="SYSTEMUSER_ID" nullable="true" remarks="System user ID who created the permit" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="SYSTEM_USER_NAME" nullable="true" remarks="System user name who created the permit" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="SITE_ID" nullable="true" remarks="Site ID that the permit belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="SITE_NAME" nullable="true" remarks="Site ID that the permit belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="PERMIT_STATUS" nullable="true" remarks="Permit status (Approved / Denied / Tentative / Stage Denied / Issued / Cancelled / Waiting Decision / Completed / On Hold)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ORIGINAL_REQUEST_NUMBER" nullable="true" remarks="Original request number" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="EXPIRATION_DATE" nullable="true" remarks="Request expiration date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="EVENT_DATE_DESCRIPTION" nullable="true" remarks="Event dates description" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="RESERVATION_PERIOD_UNIT" nullable="true" remarks="Default reservation period (Use Default / Minute / Hour / Day / Week / Month / Defined Date Range / Rental Block / Overnight)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="PAYMENT_SCHEDULE_TYPE" nullable="true" remarks="Type of payment schedule for this permit (None / Weekly / Monthly / By First Booking / By Each Booking)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="DUE_DAY_OF_WEEK" nullable="true" remarks="Default due day of week (Sunday to Saturday)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="DUE_DAY_OF_MONTH" nullable="true" remarks="Default due day of month (1 to 31)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="DUE_MONTH_OFFSET" nullable="true" remarks="Number of days that the due date should be offset (Current Month / Previous Month / Next Month)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="DUE_DATE_OFFSET" nullable="true" remarks="Number of days that the due date should be offset from the booking date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="PERMIT_ADMINISTRATOR_ID" nullable="true" remarks="System user ID who is the permit administrator" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="PERMIT_ADMINISTRATOR_NAME" nullable="true" remarks="System user name who is the permit administrator" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="CREATED_BY_NEW_WORKFLOW" nullable="true" remarks="Whether this permit was created using the new reservation workflow (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="APPLY_CHARGE_AT_RESOURCE_LEVEL" nullable="true" remarks="Whether fees for this permit should be charged at the resource level (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="29" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PERMIT_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="POS_CONTROL_CODES" numRows="0" remarks="Your organization's defined POS control codes" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.POS_CONTROL_CODES &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.POS_CONTROL_CODE_ID,&#13;&#10;    src.POS_CONTROL_CODE_NAME,&#13;&#10;    src.POP_CASH_DRAWER,&#13;&#10;    src.SMALL_FONT,&#13;&#10;    src.SMALL_FONT_CHARACTERS_PER_LINE,&#13;&#10;    src.MEDIUM_FONT,&#13;&#10;    src.MEDIUM_FONT_CHARACTERS_PER_LINE,&#13;&#10;    src.LARGE_FONT,&#13;&#10;    src.LARGE_FONT_CHARACTERS_PER_LINE,&#13;&#10;    src.AUTO_CUT,&#13;&#10;    src.EJECT_LINE_COUNT,&#13;&#10;    src.POLE_DISPLAY_SET_CURSOR_FIRST_LINE,&#13;&#10;    src.POLE_DISPLAY_SET_CURSOR_SECOND_LINE,&#13;&#10;    src.POLE_DISPLAY_CLEAR_DISPLAY,&#13;&#10;    src.POLE_DISPLAY_SCROLL_TEXT_FIRST_LINE,&#13;&#10;    src.POLE_DISPLAY_SCROLL_TEXT_SECOND_LINE,&#13;&#10;    src.POLE_DISPLAY_DISPLAY_CLOCK,&#13;&#10;    src.POLE_DISPLAY_CHARACTER_BETWEEN_HOURS_AND_MINUTES,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.POS_CONTROL_CODES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="POS_CONTROL_CODE_ID" nullable="false" remarks="The control code ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="POS_CONTROL_CODE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="POS_CONTROL_CODE_NAME" nullable="true" remarks="The control code name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="POP_CASH_DRAWER" nullable="true" remarks="The control codes to open the cash drawer" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SMALL_FONT" nullable="true" remarks="The control codes to print characters in a small sized font" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SMALL_FONT_CHARACTERS_PER_LINE" nullable="true" remarks="The number of characters that can be printed per line with the small sized font" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="MEDIUM_FONT" nullable="true" remarks="The control codes to print characters in a medium sized font" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="MEDIUM_FONT_CHARACTERS_PER_LINE" nullable="true" remarks="The number of characters that can be printed per line with the medium sized font" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="LARGE_FONT" nullable="true" remarks="The control codes to print characters in a large sized font" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="LARGE_FONT_CHARACTERS_PER_LINE" nullable="true" remarks="The number of characters that can be printed per line with the large sized font" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="AUTO_CUT" nullable="true" remarks="The control codes to auto cut the paper" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="EJECT_LINE_COUNT" nullable="true" remarks="The number of lines to eject when completing the receipt" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="POLE_DISPLAY_SET_CURSOR_FIRST_LINE" nullable="true" remarks="The control codes to set the cursor onto the first line of the pole display" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="POLE_DISPLAY_SET_CURSOR_SECOND_LINE" nullable="true" remarks="The control codes to set the cursor onto the second line of the pole display" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="POLE_DISPLAY_CLEAR_DISPLAY" nullable="true" remarks="The control codes to clear the pole display" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="POLE_DISPLAY_SCROLL_TEXT_FIRST_LINE" nullable="true" remarks="The control codes to scroll the first line of the pole display" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="POLE_DISPLAY_SCROLL_TEXT_SECOND_LINE" nullable="true" remarks="The control codes to scroll the second line of the pole display" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="POLE_DISPLAY_DISPLAY_CLOCK" nullable="true" remarks="The control codes to display the clock on the pole display" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="POLE_DISPLAY_CHARACTER_BETWEEN_HOURS_AND_MINUTES" nullable="true" remarks="The control code for the character to display between the minutes and seconds on the clock on the pole display" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="POS_CONTROL_CODE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="POS_LAYOUTS" numRows="0" remarks="Your organization's defined POS button layouts" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.POS_LAYOUTS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.POS_LAYOUT_ID,&#13;&#10;    src.POS_LAYOUT_NAME,&#13;&#10;    src.PARENT_POS_LAYOUT_ID,&#13;&#10;    pg1.POS_LAYOUT_NAME AS PARENT_POS_LAYOUT_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.POS_LAYOUTS src&#13;&#10;    LEFT JOIN hub.POS_LAYOUTS pg1 ON (pg1.POS_LAYOUT_ID = src.PARENT_POS_LAYOUT_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="POS_LAYOUT_ID" nullable="false" remarks="The POS layout ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="PARENT_POS_LAYOUT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_LAYOUTS"/>
            <child catalog="ActiveHub" column="EQUIPMENT_LENDING_LAYOUT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="POS_LAYOUT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="POS_LAYOUT_NAME" nullable="true" remarks="The POS layout name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PARENT_POS_LAYOUT_ID" nullable="true" remarks="The ID of the parent POS layout" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="POS_LAYOUT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_LAYOUTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PARENT_POS_LAYOUT_NAME" nullable="true" remarks="The name of the parent POS layout" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="POS_LAYOUT_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="POS_PRODUCT_CUSTOM_QUESTIONS" numRows="0" remarks="Custom questions for membership sale transactions." schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.POS_PRODUCT_CUSTOM_QUESTIONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    cql.POSPRODUCT_ID,&#13;&#10;    NULL CUSTOM_QUESTION_GROUP_ID,&#13;&#10;    NULL GROUP_DESCRIPTION,&#13;&#10;    NULL GROUP_HEADER_TEXT,&#13;&#10;    NULL GROUP_ORDER,&#13;&#10;    cql.QUESTION_ORDER,&#13;&#10;    cq.CUSTOM_QUESTION_ID,&#13;&#10;    cq.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    cq.QUESTION,&#13;&#10;    cq.IS_REQUIRED,&#13;&#10;    cq.QUESTION_TYPE,&#13;&#10;    cq.NOTE,&#13;&#10;    cq.DEFAULT_ANSWER,&#13;&#10;    cq.TITLE,&#13;&#10;    cq.ANSWER_FORMAT,&#13;&#10;    cq.IS_RETIRED,&#13;&#10;    cq.HIDE_ON_INTERNET,&#13;&#10;    cq.ADD_TO_NEW_ACTIVITIES,&#13;&#10;    cq.QUESTION_SCOPE,&#13;&#10;    cq.HIDE_ON_ADMIN,&#13;&#10;    cq.DO_NOT_SHOW_AFTER,&#13;&#10;    cq.DO_NOT_EDIT_AFTER,&#13;&#10;    cq.USE_ANSWER_CODE,&#13;&#10;    cq.QUESTION_HINT,&#13;&#10;    cq.MESSAGE_FOR_USED_UP_ANSWERS,&#13;&#10;    cq.ANSWER_MAX_LENGTH,&#13;&#10;    cq.EXTRA_ANSWER_TEXT,&#13;&#10;    cq.CUSTOM_QUESTION_TYPE_ID,&#13;&#10;    cct.CUSTOM_QUESTION_TYPE_NAME AS CUSTOM_QUESTION_TYPE,&#13;&#10;    cq.APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS,&#13;&#10;    cq.IS_DEMOGRAPHIC_RELATED_QUESTION&#13;&#10;FROM&#13;&#10;    hub.CUSTOM_QUESTION_LINKS cql&#13;&#10;    JOIN hub.CUSTOM_QUESTIONS cq ON cq.ORG_ID = cql.ORG_ID AND cq.CUSTOM_QUESTION_ID = cql.CUSTOM_QUESTION_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.ORG_ID = cq.ORG_ID AND si1.SITE_ID = cq.SITE_ID&#13;&#10;    LEFT JOIN hub.CUSTOM_QUESTION_TYPES cct ON (cct.ORG_ID = cq.ORG_ID AND cct.CUSTOM_QUESTION_TYPE_ID = cq.CUSTOM_QUESTION_TYPE_ID)&#13;&#10;WHERE&#13;&#10;    cql.POS_PRODUCT_CUSTOM_QUESTION_ID IS NOT NULL&#13;&#10;UNION ALL&#13;&#10;SELECT&#13;&#10;    ISNULL(cql.POSPRODUCT_ID, cqgl.POSPRODUCT_ID) AS POSPRODUCT_ID,&#13;&#10;    cqgl.CUSTOM_QUESTION_GROUP_ID,&#13;&#10;    cqgl.GROUP_DESCRIPTION,&#13;&#10;    cqgl.GROUP_HEADER_TEXT,&#13;&#10;    cqgl.GROUP_ORDER,&#13;&#10;    cql.QUESTION_ORDER,&#13;&#10;    cq.CUSTOM_QUESTION_ID,&#13;&#10;    cq.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    cq.QUESTION,&#13;&#10;    cq.IS_REQUIRED,&#13;&#10;    cq.QUESTION_TYPE,&#13;&#10;    cq.NOTE,&#13;&#10;    cq.DEFAULT_ANSWER,&#13;&#10;    cq.TITLE,&#13;&#10;    cq.ANSWER_FORMAT,&#13;&#10;    cq.IS_RETIRED,&#13;&#10;    cq.HIDE_ON_INTERNET,&#13;&#10;    cq.ADD_TO_NEW_ACTIVITIES,&#13;&#10;    cq.QUESTION_SCOPE,&#13;&#10;    cq.HIDE_ON_ADMIN,&#13;&#10;    cq.DO_NOT_SHOW_AFTER,&#13;&#10;    cq.DO_NOT_EDIT_AFTER,&#13;&#10;    cq.USE_ANSWER_CODE,&#13;&#10;    cq.QUESTION_HINT,&#13;&#10;    cq.MESSAGE_FOR_USED_UP_ANSWERS,&#13;&#10;    cq.ANSWER_MAX_LENGTH,&#13;&#10;    cq.EXTRA_ANSWER_TEXT,&#13;&#10;    cq.CUSTOM_QUESTION_TYPE_ID,&#13;&#10;    cct.CUSTOM_QUESTION_TYPE_NAME AS CUSTOM_QUESTION_TYPE,&#13;&#10;    cq.APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS,&#13;&#10;    cq.IS_DEMOGRAPHIC_RELATED_QUESTION&#13;&#10;FROM&#13;&#10;    hub.CUSTOM_QUESTION_GROUP_LINKS cqgl&#13;&#10;    JOIN hub.CUSTOM_QUESTION_LINKS cql ON cql.ORG_ID = cqgl.ORG_ID AND cql.CUSTOM_QUESTION_GROUP_ID = cqgl.CUSTOM_QUESTION_GROUP_ID AND cql.GROUPCUSTOMQUESTION_ID IS NOT NULL&#13;&#10;    JOIN hub.CUSTOM_QUESTIONS cq ON cq.ORG_ID = cql.ORG_ID AND cq.CUSTOM_QUESTION_ID = cql.CUSTOM_QUESTION_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.ORG_ID = cq.ORG_ID AND si1.SITE_ID = cq.SITE_ID&#13;&#10;    LEFT JOIN hub.CUSTOM_QUESTION_TYPES cct ON (cct.ORG_ID = cq.ORG_ID AND cct.CUSTOM_QUESTION_TYPE_ID = cq.CUSTOM_QUESTION_TYPE_ID)&#13;&#10;WHERE&#13;&#10;    cqgl.POS_PRODUCT_CUSTOM_QUESTION_GROUP_ID IS NOT NULL;&#13;&#10;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="POSPRODUCT_ID" nullable="true" remarks="POS Product ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOM_QUESTION_GROUP_ID" nullable="true" remarks="Custom question group ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="GROUP_DESCRIPTION" nullable="true" remarks="Custom question group description" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="GROUP_HEADER_TEXT" nullable="true" remarks="Custom question group heading text" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GROUP_ORDER" nullable="true" remarks="Custom question group display order" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="QUESTION_ORDER" nullable="true" remarks="The order number that the question should be presented in" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOM_QUESTION_ID" nullable="true" remarks="Custom question ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SITE_ID" nullable="true" remarks="Site ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SITE_NAME" nullable="true" remarks="Site name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="QUESTION" nullable="true" remarks="The text of the question to be asked" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="IS_REQUIRED" nullable="true" remarks="Whether an answer is required for the custom question (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="QUESTION_TYPE" nullable="true" remarks="The type of control to be used to answer the question (User Entry / Single Selection - Dropdown / Single Selection - Radio / Multi Selection - Checkbox / Multi Selection - Listbox / Auto-fill Conditional)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="NOTE" nullable="true" remarks="A user note related to the custom question" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DEFAULT_ANSWER" nullable="true" remarks="The optional default answer for the user entry question" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="TITLE" nullable="true" remarks="The title of the custom question" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ANSWER_FORMAT" nullable="true" remarks="The answer format of the user entry question (Free Form / Phone Number / Date / Time / SSN / Postal Code / Upper-case Alpha / Lower-case Alpha / Numbers Only / Alpha Only / Duration)" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="IS_RETIRED" nullable="true" remarks="Whether the custom question has been retired (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether the custom question should be excluded from display on the internet site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ADD_TO_NEW_ACTIVITIES" nullable="true" remarks="Whether the custom question should be automatically added to new activities (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="QUESTION_SCOPE" nullable="true" remarks="The scope of the custom question (Ask for every transaction / Ask once per receipt)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="HIDE_ON_ADMIN" nullable="true" remarks="Whether the custom question should be excluded from display on the admin site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="DO_NOT_SHOW_AFTER" nullable="true" remarks="The last date that the custom question should be displayed" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="DO_NOT_EDIT_AFTER" nullable="true" remarks="The last date that the custom question should allow edits" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="USE_ANSWER_CODE" nullable="true" remarks="Whether the custom question uses answer codes (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="QUESTION_HINT" nullable="true" remarks="A hint to be displayed for the custom question" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="MESSAGE_FOR_USED_UP_ANSWERS" nullable="true" remarks="A message to be displayed for the custom question for answers that have reached their use count limit" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ANSWER_MAX_LENGTH" nullable="true" remarks="The maximum answer length for user entry questions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="EXTRA_ANSWER_TEXT" nullable="true" remarks="Additional instruction text to be displayed for a multiple-choice question" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="CUSTOM_QUESTION_TYPE_ID" nullable="true" remarks="Custom question type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="CUSTOM_QUESTION_TYPE" nullable="true" remarks="Custom question type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS" nullable="true" remarks="Whether the answer given should replace prior answers to the same question for the customer (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="IS_DEMOGRAPHIC_RELATED_QUESTION" nullable="true" remarks="Whether the custom question is related to demographics (Yes/No)" size="5" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="POS_PRODUCTS" numRows="0" remarks="Master table showing defined POS products" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.POS_PRODUCTS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.POSPRODUCT_ID,&#13;&#10;    src.PRODUCT_NAME,&#13;&#10;    src.PRODUCT_TYPE,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    src.PRODUCT_DESCRIPTION,&#13;&#10;    src.IMAGE_FILE_ID,&#13;&#10;    uf1.DISPLAY_NAME AS IMAGE_FILE_NAME,&#13;&#10;    src.UPC,&#13;&#10;    src.PRODUCT_DEPARTMENT_ID,&#13;&#10;    pd1.PRODUCT_DEPARTMENT_NAME AS PRODUCT_DEPARTMENT,&#13;&#10;    src.PRODUCT_CLASS_ID,&#13;&#10;    pc1.PRODUCT_CLASS_NAME AS PRODUCT_CLASS,&#13;&#10;    src.PRODUCT_SUBCLASS_ID,&#13;&#10;    psc1.PRODUCT_SUBCLASS_NAME AS PRODUCT_SUBCLASS,&#13;&#10;    src.FEE_AMOUNT,&#13;&#10;    src.DEFAULT_QUANTITY,&#13;&#10;    src.USE_INDIVIDUAL_PRICE,&#13;&#10;    src.ALLOW_INDIVIDUAL_SALE,&#13;&#10;    src.IS_FREE_PROMOTIONAL_ITEM,&#13;&#10;    src.EXCLUDE_FROM_PAYMENT_PLAN,&#13;&#10;    src.TAXABLE_BY_TAX_1,&#13;&#10;    src.TAXABLE_BY_TAX_2,&#13;&#10;    src.TAXABLE_BY_TAX_3,&#13;&#10;    src.TAXABLE_BY_TAX_4,&#13;&#10;    src.TAXABLE_BY_TAX_5,&#13;&#10;    src.TAXABLE_BY_TAX_6,&#13;&#10;    src.TAXABLE_BY_TAX_7,&#13;&#10;    src.TAXABLE_BY_TAX_8,&#13;&#10;    src.PROMPT_FOR_PRICE,&#13;&#10;    src.LOG_USAGE,&#13;&#10;    src.NO_RECEIPT,&#13;&#10;    src.DISCLAIMER_ID,&#13;&#10;    di1.DISCLAIMER_NAME,&#13;&#10;    src.IS_DISCOUNTABLE,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.IS_DISCOUNT,&#13;&#10;    src.DISCOUNT_TYPE,&#13;&#10;    src.DISCOUNT_PERCENT,&#13;&#10;    src.DISCOUNT_COUPON_CODE,&#13;&#10;    src.DISCOUNT_ALLOWS_MULTIPLE_USE_PER_CUSTOMER,&#13;&#10;    src.DISCOUNT_START_DATE,&#13;&#10;    src.DISCOUNT_END_DATE,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.SYSTEM_GL_ACCOUNT_PACKAGE_ID,&#13;&#10;    sgap.SYSTEM_GL_ACCOUNT_PACKAGE_NAME,&#13;&#10;    src.FEATURE_NAME_1,&#13;&#10;    src.FEATURE_LIST_1,&#13;&#10;    src.FEATURE_NAME_2,&#13;&#10;    src.FEATURE_LIST_2,&#13;&#10;    src.TRACK_INVENTORY,&#13;&#10;    src.TRACK_INVENTORY_BY_CENTER,&#13;&#10;    src.QUANTITY_ON_HAND,&#13;&#10;    src.REORDER_POINT,&#13;&#10;    src.REORDER_ALERT_EMAIL,&#13;&#10;    src.LAST_RECEIVED_QUANTITY,&#13;&#10;    src.LAST_PURCHASE_PRICE,&#13;&#10;    src.LAST_RECEIVED_DATE,&#13;&#10;    src.LAST_VENDOR_COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME AS LAST_VENDOR_COMPANY_NAME,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.POS_PRODUCTS src&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.GLACCOUNT_ID = src.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.COMPANY_ID = src.LAST_VENDOR_COMPANY_ID)&#13;&#10;    LEFT JOIN hub.DISCLAIMERS di1 ON (di1.DISCLAIMER_ID = src.DISCLAIMER_ID)&#13;&#10;    LEFT JOIN hub.PRODUCT_DEPARTMENTS pd1 ON (pd1.PRODUCT_DEPARTMENT_ID = src.PRODUCT_DEPARTMENT_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf1 ON (uf1.UPLOADED_FILE_ID = src.IMAGE_FILE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_GL_ACCOUNT_PACKAGES sgap ON (sgap.SYSTEM_GL_ACCOUNT_PACKAGE_ID = src.SYSTEM_GL_ACCOUNT_PACKAGE_ID)&#13;&#10;    LEFT JOIN hub.PRODUCT_CLASSES pc1 ON (pc1.PRODUCT_CLASS_ID = src.PRODUCT_CLASS_ID)&#13;&#10;    LEFT JOIN hub.PRODUCT_SUBCLASSES psc1 ON (psc1.PRODUCT_SUBCLASS_ID = src.PRODUCT_SUBCLASS_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="POSPRODUCT_ID" nullable="true" remarks="Product ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="PRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS_CENTER_QUANTITY"/>
            <child catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_SALES_DETAILS"/>
            <child catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PRODUCT_NAME" nullable="true" remarks="Product name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PRODUCT_TYPE" nullable="true" remarks="Product type (Standard POS Product / Activity Drop In)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVITY_ID" nullable="true" remarks="Activity ID if product type is 'Activity Drop In'" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PRODUCT_DESCRIPTION" nullable="true" remarks="Product description" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="IMAGE_FILE_ID" nullable="true" remarks="The file ID for the product image" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="IMAGE_FILE_NAME" nullable="true" remarks="The file name for the product image" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="UPC" nullable="true" remarks="Product UPC code" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="PRODUCT_DEPARTMENT_ID" nullable="true" remarks="The ID of the department to which this product belongs" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PRODUCT_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRODUCT_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="PRODUCT_DEPARTMENT" nullable="true" remarks="The name of the department to which this product belongs" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="PRODUCT_CLASS_ID" nullable="true" remarks="The ID of the class category to which this product belongs" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PRODUCT_CLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRODUCT_CLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="PRODUCT_CLASS" nullable="true" remarks="The name of the class category to which this product belongs" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="PRODUCT_SUBCLASS_ID" nullable="true" remarks="The ID of the subclass category to which this product belongs" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PRODUCT_SUBCLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRODUCT_SUBCLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="PRODUCT_SUBCLASS" nullable="true" remarks="The name of the subclass category to which this product belongs" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="14" name="FEE_AMOUNT" nullable="true" remarks="Product price amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="DEFAULT_QUANTITY" nullable="true" remarks="Default sale quantity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="USE_INDIVIDUAL_PRICE" nullable="true" remarks="Whether the product's individual price should be used when included in a bundle (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ALLOW_INDIVIDUAL_SALE" nullable="true" remarks="Whether the product may be sold individually rather than included in a bundle (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="IS_FREE_PROMOTIONAL_ITEM" nullable="true" remarks="Whether this product is a free promotional item (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="EXCLUDE_FROM_PAYMENT_PLAN" nullable="true" remarks="Whether the fee amount for this product should be excluded from any payment plan (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="TAXABLE_BY_TAX_1" nullable="true" remarks="Whether tax 1 applies to this product (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="TAXABLE_BY_TAX_2" nullable="true" remarks="Whether tax 2 applies to this product (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="TAXABLE_BY_TAX_3" nullable="true" remarks="Whether tax 3 applies to this product (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="TAXABLE_BY_TAX_4" nullable="true" remarks="Whether tax 4 applies to this product (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="TAXABLE_BY_TAX_5" nullable="true" remarks="Whether tax 5 applies to this product (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="TAXABLE_BY_TAX_6" nullable="true" remarks="Whether tax 6 applies to this product (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="TAXABLE_BY_TAX_7" nullable="true" remarks="Whether tax 7 applies to this product (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="TAXABLE_BY_TAX_8" nullable="true" remarks="Whether tax 8 applies to this product (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="PROMPT_FOR_PRICE" nullable="true" remarks="Whether the user should be prompted to enter the price of this product (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="LOG_USAGE" nullable="true" remarks="Whether the sale of this product should be logged (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="NO_RECEIPT" nullable="true" remarks="Whether generation of a receipt should be skipped for this product (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="DISCLAIMER_ID" nullable="true" remarks="Product disclaimer ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="DISCLAIMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="DISCLAIMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="DISCLAIMER_NAME" nullable="true" remarks="System account package name for the product." size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="IS_DISCOUNTABLE" nullable="true" remarks="Whether the fee amount for this product can be discounted (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="SITE_ID" nullable="true" remarks="The ID of the site that the product belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="SITE_NAME" nullable="true" remarks="The name of the site that the product belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="IS_RETIRED" nullable="true" remarks="Whether this product has been retired from use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="IS_DISCOUNT" nullable="true" remarks="Whether this product is a discount (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="DISCOUNT_TYPE" nullable="true" remarks="The type of discount (Amount / Percent)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="39" name="DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="DISCOUNT_COUPON_CODE" nullable="true" remarks="The coupon code to enter to activate this discount" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="DISCOUNT_ALLOWS_MULTIPLE_USE_PER_CUSTOMER" nullable="true" remarks="Whether this discount can be claimed multiple times by the same customer (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="DISCOUNT_START_DATE" nullable="true" remarks="The first date for when this discount may be used" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="DISCOUNT_END_DATE" nullable="true" remarks="The last date for when this discount may be used" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="GLACCOUNT_ID" nullable="true" remarks="The ID of the GL Account that the product fee amount will be posted to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="GL_ACCOUNT_NAME" nullable="true" remarks="The name of the GL Account that the product fee amount will be posted to" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="The number of the GL Account that the product fee amount will be posted to" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID" nullable="true" remarks="System account package ID for the product" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="SYSTEM_GL_ACCOUNT_PACKAGE_NAME" nullable="true" remarks="System account package name for the product." size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="FEATURE_NAME_1" nullable="true" remarks="Feature 1 name to be displayed during sale of this product" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="FEATURE_LIST_1" nullable="true" remarks="Feature 1 options to be selected during sale of this product" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="FEATURE_NAME_2" nullable="true" remarks="Feature 2 name to be displayed during sale of this product" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="FEATURE_LIST_2" nullable="true" remarks="Feature 2 options to be selected during sale of this product" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="TRACK_INVENTORY" nullable="true" remarks="Whether inventory should be tracked for this product (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="TRACK_INVENTORY_BY_CENTER" nullable="true" remarks="Whether inventory should be tracked per center for this product (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="QUANTITY_ON_HAND" nullable="true" remarks="Quantity on hand for this product" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="REORDER_POINT" nullable="true" remarks="Reorder point for this product" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="REORDER_ALERT_EMAIL" nullable="true" remarks="Reorder alert email address to be notified when the quantity on hand falls below the reorder point for this product" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="LAST_RECEIVED_QUANTITY" nullable="true" remarks="The quantity of this product received in the last order" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="59" name="LAST_PURCHASE_PRICE" nullable="true" remarks="The price paid for this product in the last order" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="LAST_RECEIVED_DATE" nullable="true" remarks="The date the last order of this product was received" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="61" name="LAST_VENDOR_COMPANY_ID" nullable="true" remarks="The company ID of the vendor for this product" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="LAST_VENDOR_COMPANY_NAME" nullable="true" remarks="The company name of the vendor for this product" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="64" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="65" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="66" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="POSPRODUCT_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="POS_PRODUCTS_CENTER_QUANTITY" numRows="0" remarks="Master table showing POS product inventory levels and settings per center and site" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.POS_PRODUCTS_CENTER_QUANTITY&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.POSPRODUCT_ID,&#13;&#10;    pr1.PRODUCT_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.CENTER_ID,&#13;&#10;    ce1.CENTER_NAME,&#13;&#10;    src.QUANTITY_ON_HAND,&#13;&#10;    src.REORDER_POINT,&#13;&#10;    src.REORDER_ALERT_EMAIL,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.IS_CHECKED,&#13;&#10;    src.POSPRODUCT_CENTER_QUANTITY_ID,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.POS_PRODUCTS_CENTER_QUANTITY src&#13;&#10;    JOIN hub.POS_PRODUCTS pr1 ON (pr1.POSPRODUCT_ID = src.POSPRODUCT_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.CENTERS ce1 ON (ce1.CENTER_ID = src.CENTER_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.GLACCOUNT_ID = src.GLACCOUNT_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="POSPRODUCT_ID" nullable="true" remarks="Product ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PRODUCT_NAME" nullable="true" remarks="Product name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_ID" nullable="true" remarks="The ID of the site that the product inventory belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_NAME" nullable="true" remarks="The name of the site that the product inventory belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CENTER_ID" nullable="true" remarks="The ID of the site that the product inventory belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CENTERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CENTER_NAME" nullable="true" remarks="The name of the center that the product inventory belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="QUANTITY_ON_HAND" nullable="true" remarks="Quantity on hand for this product at this center" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="REORDER_POINT" nullable="true" remarks="Reorder point for this product at this center" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="REORDER_ALERT_EMAIL" nullable="true" remarks="Reorder alert email address to be notified when the quantity on hand falls below the reorder point for this product at this center" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="GLACCOUNT_ID" nullable="true" remarks="The ID of the GL Account that the product fee amount will be posted to when sold at this center" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="GL_ACCOUNT_NAME" nullable="true" remarks="The name of the GL Account that the product fee amount will be posted to when sold at this center" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="The number of the GL Account that the product fee amount will be posted to when sold at this center" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="IS_CHECKED" nullable="true" remarks="Whether this center has been selected and checked in the POS Product maintenance page" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="POSPRODUCT_CENTER_QUANTITY_ID" nullable="true" remarks="Product center quantity ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="15" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="POSPRODUCT_CENTER_QUANTITY_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="POS_RECEIPTS" numRows="0" remarks="Your organization's defined POS receipts" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.POS_RECEIPTS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.POS_RECEIPT_ID,&#13;&#10;    src.POS_RECEIPT_NAME,&#13;&#10;    src.IS_DEFAULT_RECEIPT,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.POS_RECEIPTS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="POS_RECEIPT_ID" nullable="false" remarks="The POS receipt ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="POS_RECEIPT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="POS_RECEIPT_NAME" nullable="true" remarks="The POS receipt name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="IS_DEFAULT_RECEIPT" nullable="true" remarks="Whether this POS receipt is the default receipt to be used (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="IS_RETIRED" nullable="true" remarks="Whether this POS receipt has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="POS_RECEIPT_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="POS_SALES_DETAILS" numRows="0" remarks="POS product sales" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.POS_SALES_DETAILS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.RECEIPT_NUMBER,&#13;&#10;    src.TRANSACTION_SITE_ID,&#13;&#10;    si1.SITE_NAME AS TRANSACTION_SITE,&#13;&#10;    src.PRODUCT_SITE_ID,&#13;&#10;    si2.SITE_NAME AS PRODUCT_SITE,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.TRANSACTION_CENTER_ID,&#13;&#10;    ce1.CENTER_NAME AS TRANSACTION_CENTER,&#13;&#10;    src.PRODUCT_TYPE,&#13;&#10;    src.PRODUCT_DEPARTMENT_ID,&#13;&#10;    pd1.PRODUCT_DEPARTMENT_NAME AS DEPARTMENT,&#13;&#10;    src.PRODUCT_CLASS_ID,&#13;&#10;    pc1.PRODUCT_CLASS_NAME AS CLASS,&#13;&#10;    src.PRODUCT_SUBCLASS_ID,&#13;&#10;    psc1.PRODUCT_SUBCLASS_NAME AS SUBCLASS,&#13;&#10;    src.POSPRODUCT_ID,&#13;&#10;    ppr.PRODUCT_NAME,&#13;&#10;    ppr.UPC,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    src.RECEIPT_DATE,&#13;&#10;    src.RECEIPT_TIME,&#13;&#10;    src.GROSS_QTY,&#13;&#10;    src.RFND_QTY,&#13;&#10;    src.NET_QTY,&#13;&#10;    src.GROSS_AMOUNT,&#13;&#10;    src.DISCOUNT,&#13;&#10;    src.REFUND_AMOUNT,&#13;&#10;    src.NET_AMOUNT,&#13;&#10;    src.TOTAL_TAX,&#13;&#10;    NULL AS GROUP_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.TRANSACTION_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.TRANSACTION_ID AS source_id &#13;&#10;FROM&#13;&#10;    hub.POS_SALES_DETAILS src&#13;&#10;    LEFT JOIN hub.CENTERS ce1 ON (ce1.ORG_ID = src.ORG_ID AND ce1.CENTER_ID = src.TRANSACTION_CENTER_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.TRANSACTION_SITE_ID)&#13;&#10;    LEFT JOIN hub.SITES si2 ON (si2.ORG_ID = src.ORG_ID AND si2.SITE_ID = src.PRODUCT_SITE_ID)&#13;&#10;    LEFT JOIN hub.POS_PRODUCTS ppr ON (ppr.ORG_ID = src.ORG_ID AND src.POSPRODUCT_ID = ppr.POSPRODUCT_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.PRODUCT_DEPARTMENTS pd1 ON (pd1.ORG_ID = src.ORG_ID AND pd1.PRODUCT_DEPARTMENT_ID = ppr.PRODUCT_DEPARTMENT_ID)&#13;&#10;    LEFT JOIN hub.PRODUCT_CLASSES pc1 ON (pc1.ORG_ID = src.ORG_ID AND pc1.PRODUCT_CLASS_ID = ppr.PRODUCT_CLASS_ID)&#13;&#10;    LEFT JOIN hub.PRODUCT_SUBCLASSES psc1 ON (psc1.ORG_ID = src.ORG_ID AND psc1.PRODUCT_SUBCLASS_ID = ppr.PRODUCT_SUBCLASS_ID);&#13;&#10;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="RECEIPT_NUMBER" nullable="true" remarks="Receipt number" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="TRANSACTION_SITE_ID" nullable="true" remarks="The ID of the transaction site." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="TRANSACTION_SITE" nullable="true" remarks="The name of the transaction site." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PRODUCT_SITE_ID" nullable="true" remarks="The ID of the product site." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PRODUCT_SITE" nullable="true" remarks="The product site" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="WORKSTATION_ID" nullable="true" remarks="The ID of workstation where this transaction took place." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="WORKSTATION_NAME" nullable="true" remarks="The workstation where this transaction took place." size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="TRANSACTION_CENTER_ID" nullable="true" remarks="The ID of transaction center for which to report sales." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="TRANSACTION_CENTER" nullable="true" remarks="The transaction center for which to report sales." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="PRODUCT_TYPE" nullable="true" remarks="The product type linked to this product." size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="PRODUCT_DEPARTMENT_ID" nullable="true" remarks="The ID of the department to which this product belongs." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="DEPARTMENT" nullable="true" remarks="The name of the department to which this product belongs." size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="PRODUCT_CLASS_ID" nullable="true" remarks="The ID of the class category to which this product belongs." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="CLASS" nullable="true" remarks="The Name of the class category to which this product belongs." size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="PRODUCT_SUBCLASS_ID" nullable="true" remarks="The ID of the Sub-class category to which this product belongs." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SUBCLASS" nullable="true" remarks="The Name of the sub-class category to which this product belongs." size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="POSPRODUCT_ID" nullable="true" remarks="The ID of the POS product." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="PRODUCT_NAME" nullable="true" remarks="The name of the POS product." size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="UPC" nullable="true" remarks="The Universal Product Code configured for the POS product" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="CUSTOMER_ID" nullable="true" remarks="Customer ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="RECEIPT_DATE" nullable="true" remarks="Receipt date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="RECEIPT_TIME" nullable="true" remarks="Receipt time" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="23" name="GROSS_QTY" nullable="true" remarks="The gross quantity sold (including zero)." size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="24" name="RFND_QTY" nullable="true" remarks="Quantity refunded if not zero." size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="25" name="NET_QTY" nullable="true" remarks="The net quantity sold (including zero)." size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="26" name="GROSS_AMOUNT" nullable="true" remarks="The gross amount sold (including zero). This is the amount after discount: the actual paid amount." size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="27" name="DISCOUNT" nullable="true" remarks="The discount applied to the sale." size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="28" name="REFUND_AMOUNT" nullable="true" remarks="The total amount refunded" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="29" name="NET_AMOUNT" nullable="true" remarks="The net amount sold (including zero)." size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="30" name="TOTAL_TAX" nullable="true" remarks="The tax amount for the sale" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="GROUP_NAME" nullable="true" remarks="Name of the grouping method" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="32" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="ACTIVE_HUB_PROCESS_ID" nullable="false" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="TRANSACTION_ID" nullable="true" remarks="The ID of the transaction." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="RECEIPT_NUMBER" sequenceNumberInPK="1"/>
         <primaryKey column="TRANSACTION_ID" sequenceNumberInPK="2"/>
      </table>
      <table catalog="ActiveHub" name="POSTPONEMENT_REASONS" numRows="0" remarks="Your organization's defined postponement reasons" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.POSTPONEMENT_REASONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.POSTPONEMENT_REASON_ID,&#13;&#10;    src.POSTPONEMENT_REASON_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.POSTPONEMENT_REASONS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="POSTPONEMENT_REASON_ID" nullable="false" remarks="The postponement reason ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="POSTPONEMENT_REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULE_PAIRINGS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="POSTPONEMENT_REASON_NAME" nullable="true" remarks="The postponement reason name" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="2" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="POSTPONEMENT_REASON_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PRELIMINARY_DRAFTS" numRows="0" remarks="Contains information on upcoming membership renewals" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.PRELIMINARY_DRAFTS &#13;&#10;AS &#13;&#10;SELECT DISTINCT&#13;&#10;    src.PRELIMINARY_DRAFT_ID,&#13;&#10;    src.DRAFT_DATE,&#13;&#10;    src.MEMBERSHIP_ID,&#13;&#10;    me1.PRIMARY_MEMBER_CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu2.CUSTOMER_FIRST_NAME, IIF(cu2.CUSTOMER_FIRST_NAME IS NOT NULL AND cu2.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu2.CUSTOMER_LAST_NAME), '') AS PRIMARY_MEMBER_CUSTOMER_NAME,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    src.MEMBERSHIP_EXPIRES_DATE,&#13;&#10;    src.AMOUNT_NOT_INCLUDING_DISCOUNTS,&#13;&#10;    src.AMOUNT_OF_SCHOLARSHIPS,&#13;&#10;    src.AMOUNT_OF_DISCOUNTS,&#13;&#10;    src.AMOUNT_OF_USAGE_FEES,&#13;&#10;    src.AMOUNT_OF_THIRD_PARTY_BILLINGS,&#13;&#10;    src.PAYER_CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS PAYER_CUSTOMER_NAME,&#13;&#10;    src.PAYER_COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME AS PAYER_COMPANY_NAME,&#13;&#10;    src.AUTOMATIC_RENEWAL_TYPE,&#13;&#10;    ct1.CARD_TYPE_NAME AS CARD_TYPE,&#13;&#10;    src.CARD_NUMBER,&#13;&#10;    src.CARD_EXPIRATION,&#13;&#10;    src.BANK_ACCOUNT_NUMBER,&#13;&#10;    src.REVENUE_SITE_ID,&#13;&#10;    si1.SITE_NAME AS REVENUE_SITE_NAME,&#13;&#10;    src.IS_ERROR_EXPECTED,&#13;&#10;    src.ERROR_DESCRIPTION,&#13;&#10;    src.UPDATED_DATE_TIME,&#13;&#10;    CAST(src.UPDATED_DATE_TIME AS DATE) AS UPDATED_DATE_ONLY,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.PRELIMINARY_DRAFTS src&#13;&#10;    LEFT JOIN hub.MEMBERSHIPS me1 ON (me1.MEMBERSHIP_ID = src.MEMBERSHIP_ID AND me1.CUSTOMER_ID = me1.PRIMARY_MEMBER_CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = src.PAYER_CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.COMPANY_ID = src.PAYER_COMPANY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu2 ON (cu2.CUSTOMER_ID = me1.PRIMARY_MEMBER_CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.PACKAGES pa1 ON (pa1.PACKAGE_ID = src.PACKAGE_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.REVENUE_SITE_ID)&#13;&#10;    LEFT JOIN hub.CARD_TYPES ct1 ON (ct1.CARD_TYPE_ID = src.CARD_TYPE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PRELIMINARY_DRAFT_ID" nullable="true" remarks="The preliminary draft ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="DRAFT_DATE" nullable="true" remarks="The expected renewal date for the membership" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="MEMBERSHIP_ID" nullable="true" remarks="The ID of the membership to be renewed" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="MEMBERSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PRIMARY_MEMBER_CUSTOMER_ID" nullable="true" remarks="The ID of the primary customer to which the membership to be renewed is assigned" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PRIMARY_MEMBER_CUSTOMER_NAME" nullable="true" remarks="The name of the primary customer to which the membership to be renewed is assigned" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PACKAGE_ID" nullable="true" remarks="The ID of the package for the membership to be renewed" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PACKAGE_NAME" nullable="true" remarks="The name of the package for the membership to be renewed" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="MEMBERSHIP_EXPIRES_DATE" nullable="true" remarks="The current expiration date of the membership" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="8" name="AMOUNT_NOT_INCLUDING_DISCOUNTS" nullable="true" remarks="The expected renewal amount excluding any discounts that may be applied" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="9" name="AMOUNT_OF_SCHOLARSHIPS" nullable="true" remarks="The expected amount of scholarships to be applied at time of renewal" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="10" name="AMOUNT_OF_DISCOUNTS" nullable="true" remarks="The expected amount of discounts to be applied at time of renewal" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="11" name="AMOUNT_OF_USAGE_FEES" nullable="true" remarks="The expected amount of usage fees to be applied at time of renewal" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="12" name="AMOUNT_OF_THIRD_PARTY_BILLINGS" nullable="true" remarks="The expected amount of third party billings to be applied at time of renewal" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="PAYER_CUSTOMER_ID" nullable="true" remarks="The ID of customer to be set as payer for the renewal charges" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PAYER_CUSTOMER_NAME" nullable="true" remarks="The name of customer to be set as payer for the renewal charges" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="PAYER_COMPANY_ID" nullable="true" remarks="The ID of company to be set as payer for the renewal charges" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="PAYER_COMPANY_NAME" nullable="true" remarks="The name of company to be set as payer for the renewal charges" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="AUTOMATIC_RENEWAL_TYPE" nullable="true" remarks="The payment method selected for the auto-renewal of the membership (Not Auto-Renewed / Credit Card / ECP / Manual Deduction / Payment Plan)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="CARD_TYPE" nullable="true" remarks="The card type of credit card to be used for the membership renewal payment" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="CARD_NUMBER" nullable="true" remarks="The masked credit card number to be used for the membership renewal payment" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="CARD_EXPIRATION" nullable="true" remarks="The credit card expiration date (mm/yyyy) to be used for the membership renewal payment" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="BANK_ACCOUNT_NUMBER" nullable="true" remarks="The masked bank account number to be used for the membership renewal payment" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="CARD_TYPE_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CARD_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="REVENUE_SITE_ID" nullable="true" remarks="The ID of the site that the membership renewal revenue will be posted to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="REVENUE_SITE_NAME" nullable="true" remarks="The name of the site that the membership renewal revenue will be posted to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="IS_ERROR_EXPECTED" nullable="true" remarks="Whether an error is expected for this membership renewal (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ERROR_DESCRIPTION" nullable="true" remarks="The error message that is expected for this membership renewal" size="2000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="26" name="UPDATED_DATE_TIME" nullable="true" remarks="The date and time that this membership draft was generated" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="UPDATED_DATE_ONLY" nullable="true" remarks="The date that this membership draft was generated (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="29" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PRELIMINARY_DRAFT_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PREP_CODES" numRows="0" remarks="Contains information on defined activity groups for shared registration capacity" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PREP_CODES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.PREP_CODE_ID,&#13;&#10;    src.PREP_CODE_NAME,&#13;&#10;    src.SETUP_TIME_MINUTES,&#13;&#10;    src.TEARDOWN_TIME_MINUTES,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.PREP_CODES src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PREP_CODE_ID" nullable="true" remarks="The prep code ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="PREP_CODE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="EVENT_TYPES"/>
            <child catalog="ActiveHub" column="PREP_CODE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
            <child catalog="ActiveHub" column="PREP_CODE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PREP_CODE_NAME" nullable="true" remarks="The prep code name" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SETUP_TIME_MINUTES" nullable="true" remarks="The number of minutes required for setup time" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="TEARDOWN_TIME_MINUTES" nullable="true" remarks="The number of minutes required for teardown time" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SITE_ID" nullable="true" remarks="The ID of the site that the prep code belongs to, or null for all sites" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SITE_NAME" nullable="true" remarks="The name of the site that the prep code belongs to, or null for all sites" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PREP_CODE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PREREQUISITES" numRows="0" remarks="Your organization's defined prerequisites for activities and programs" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PREREQUISITES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.PREREQUISITE_ID,&#13;&#10;    src.RETURNING_PARTICIPANT_CRITERIA,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    src.PROGRAM_ID,&#13;&#10;    src.GROUP_NUMBER,&#13;&#10;    src.PREREQUISITE_ACTIVITY_ID,&#13;&#10;    src.PREREQUISITE_PROGRAM_ID,&#13;&#10;    src.ACTIVITY_PROGRAM_NUMBER_WILDCARD,&#13;&#10;    src.DURATION_YEARS,&#13;&#10;    src.DURATION_MONTHS,&#13;&#10;    src.DURATION_DAYS,&#13;&#10;    src.PREREQUISITE_PACKAGE_ID,&#13;&#10;    src.IMMEDIATE_SALE_PACKAGE,&#13;&#10;    src.SKILL_ID,&#13;&#10;    sk1.SKILL_NAME,&#13;&#10;    src.ALTERNATE_KEY_TYPE_ID,&#13;&#10;    ak2.ALTERNATE_KEY_TYPE,&#13;&#10;    src.ACTIVITY_CATEGORY_ID,&#13;&#10;    acat.ACTIVITY_CATEGORY_NAME AS ACTIVITY_CATEGORY,&#13;&#10;    src.ACTIVITY_SUB_CATEGORY_ID,&#13;&#10;    ascat.ACTIVITY_SUB_CATEGORY_NAME AS ACTIVITY_SUBCATEGORY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.PREREQUISITES src&#13;&#10;    LEFT JOIN hub.ALTERNATE_KEY_TYPES ak2 ON (ak2.ALTERNATE_KEY_TYPE_ID = src.ALTERNATE_KEY_TYPE_ID)&#13;&#10;    LEFT JOIN hub.SKILLS sk1 ON (sk1.SKILL_ID = src.SKILL_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_CATEGORIES acat ON (acat.ACTIVITY_CATEGORY_ID = src.ACTIVITY_CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_SUB_CATEGORIES ascat ON (ascat.ACTIVITY_SUB_CATEGORY_ID = src.ACTIVITY_SUB_CATEGORY_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PREREQUISITE_ID" nullable="true" remarks="Prerequisite ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="RETURNING_PARTICIPANT_CRITERIA" nullable="true" remarks="Whether this record is for activity returning participant criteria (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVITY_ID" nullable="true" remarks="The ID of the activity that the prerequisite belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PROGRAM_ID" nullable="true" remarks="The ID of the program that the prerequisite belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="GROUP_NUMBER" nullable="true" remarks="The group number that the prerequisite belongs in" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PREREQUISITE_ACTIVITY_ID" nullable="true" remarks="The ID of the prerequisite activity" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="PREREQUISITE_PROGRAM_ID" nullable="true" remarks="The ID of the prerequisite program" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVITY_PROGRAM_NUMBER_WILDCARD" nullable="true" remarks="The activity or program catalog number of the prerequisite activity or program" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="DURATION_YEARS" nullable="true" remarks="The maximum number of years ago that the prerequisite registration may have occurred" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="DURATION_MONTHS" nullable="true" remarks="The maximum number of months ago that the prerequisite registration may have occurred" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="DURATION_DAYS" nullable="true" remarks="The maximum number of days ago that the prerequisite registration may have occurred" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="PREREQUISITE_PACKAGE_ID" nullable="true" remarks="The ID of the prerequisite membership package" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="IMMEDIATE_SALE_PACKAGE" nullable="true" remarks="Whether the prerequisite membership package may be purchased at the time of registration" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="SKILL_ID" nullable="true" remarks="The ID of the prerequisite skill" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SKILL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SKILLS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="SKILL_NAME" nullable="true" remarks="The name of the prerequisite skill" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ALTERNATE_KEY_TYPE_ID" nullable="true" remarks="The ID of the prerequisite alternate key type" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ALTERNATE_KEY_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ALTERNATE_KEY_TYPE" nullable="true" remarks="The name of the prerequisite alternate key type" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ACTIVITY_CATEGORY_ID" nullable="true" remarks="The activity category ID of the prerequisite activity" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ACTIVITY_CATEGORY" nullable="true" remarks="The activity category name of the prerequisite activity" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ACTIVITY_SUB_CATEGORY_ID" nullable="true" remarks="The activity subcategory ID of the prerequisite activity" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_SUB_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_SUB_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ACTIVITY_SUBCATEGORY" nullable="true" remarks="The activity subcategory name of the prerequisite activity" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="22" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PREREQUISITE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PRODUCT_CLASSES" numRows="0" remarks="Your organization's defined product classes" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PRODUCT_CLASSES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.PRODUCT_CLASS_ID,&#13;&#10;    src.PRODUCT_CLASS_NAME,&#13;&#10;    src.PRODUCT_DEPARTMENT_ID,&#13;&#10;    pd1.PRODUCT_DEPARTMENT_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.PRODUCT_CLASSES src&#13;&#10;    LEFT JOIN hub.PRODUCT_DEPARTMENTS pd1 ON (pd1.PRODUCT_DEPARTMENT_ID = src.PRODUCT_DEPARTMENT_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PRODUCT_CLASS_ID" nullable="false" remarks="The product class ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="PRODUCT_CLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PRODUCT_CLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PRODUCT_CLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PRODUCT_CLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS"/>
            <child catalog="ActiveHub" column="PRODUCT_CLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRODUCT_SUBCLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PRODUCT_CLASS_NAME" nullable="true" remarks="The product class name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PRODUCT_DEPARTMENT_ID" nullable="true" remarks="The ID of the product department that this product class belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PRODUCT_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRODUCT_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PRODUCT_DEPARTMENT_NAME" nullable="true" remarks="The name of the product department that this product class belongs to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PRODUCT_CLASS_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PRODUCT_DEPARTMENTS" numRows="0" remarks="Your organization's defined product departments" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PRODUCT_DEPARTMENTS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.PRODUCT_DEPARTMENT_ID,&#13;&#10;    src.PRODUCT_DEPARTMENT_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.PRODUCT_DEPARTMENTS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PRODUCT_DEPARTMENT_ID" nullable="false" remarks="The product department ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="PRODUCT_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PRODUCT_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PRODUCT_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PRODUCT_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS"/>
            <child catalog="ActiveHub" column="PRODUCT_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRODUCT_CLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PRODUCT_DEPARTMENT_NAME" nullable="true" remarks="The product department name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="2" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PRODUCT_DEPARTMENT_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PRODUCT_SUBCLASSES" numRows="0" remarks="Your organization's defined product subclasses" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PRODUCT_SUBCLASSES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.PRODUCT_SUBCLASS_ID,&#13;&#10;    src.PRODUCT_SUBCLASS_NAME,&#13;&#10;    src.PRODUCT_CLASS_ID,&#13;&#10;    pc1.PRODUCT_CLASS_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.PRODUCT_SUBCLASSES src&#13;&#10;    LEFT JOIN hub.PRODUCT_CLASSES pc1 ON (pc1.PRODUCT_CLASS_ID = src.PRODUCT_CLASS_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PRODUCT_SUBCLASS_ID" nullable="false" remarks="The product subclass ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="PRODUCT_SUB_CLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PRODUCT_SUBCLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PRODUCT_SUBCLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PRODUCT_SUBCLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PRODUCT_SUBCLASS_NAME" nullable="true" remarks="The product subclass name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PRODUCT_CLASS_ID" nullable="true" remarks="The ID of the product class that this product subclass belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PRODUCT_CLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRODUCT_CLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PRODUCT_CLASS_NAME" nullable="true" remarks="The name of the product class that this product subclass belongs to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PRODUCT_SUBCLASS_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PROFILES" numRows="0" remarks="Your organization's defined profiles" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PROFILES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.PROFILE_ID,&#13;&#10;    src.PROFILE_NAME,&#13;&#10;    src.ASSIGNED_BY_SYSTEM_ADMIN_ONLY,&#13;&#10;    src.SALESFORCE_CONTACT_ROLE_TYPE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.PROFILES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PROFILE_ID" nullable="false" remarks="The user profile ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="PROFILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USER_PROFILES"/>
            <child catalog="ActiveHub" column="PROFILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PROFILE_NAME" nullable="true" remarks="The user profile name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ASSIGNED_BY_SYSTEM_ADMIN_ONLY" nullable="true" remarks="Whether this user profile can only be assigned by a system administrator (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SALESFORCE_CONTACT_ROLE_TYPE" nullable="true" remarks="The type of Salesforce access that users with this profile will have (Read Only / Submit / Super User / No Access)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PROFILE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PROGRAM_ATTENDANCE_HISTORY" numRows="0" remarks="Contains the program attendance history of registrant drop-offs and pick-ups" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.PROGRAM_ATTENDANCE_HISTORY &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.PROGRAM_ATTENDANCE_HISTORY_ID,&#13;&#10;    src.REGISTRATION_ID,&#13;&#10;    pr1.CUSTOMER_ID AS REGISTRANT_CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS REGISTRANT_CUSTOMER_NAME,&#13;&#10;    pr1.PROGRAM_ID,&#13;&#10;    pr2.PROGRAM_NAME,&#13;&#10;    pr1.SESSION_ID,&#13;&#10;    se1.SESSION_NAME,&#13;&#10;    se1.BEGIN_DATE_TIME AS SESSION_BEGIN_DATE_TIME,&#13;&#10;    se1.END_DATE_TIME AS SESSION_END_DATE_TIME,&#13;&#10;    src.IS_CHECK_IN,&#13;&#10;    src.CHECK_IN_DATE_TIME,&#13;&#10;    CAST(src.CHECK_IN_DATE_TIME AS DATE) AS CHECK_IN_DATE_ONLY,&#13;&#10;    src.DROP_OFF_CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu2.CUSTOMER_FIRST_NAME, IIF(cu2.CUSTOMER_FIRST_NAME IS NOT NULL AND cu2.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu2.CUSTOMER_LAST_NAME), '') AS DROP_OFF_CUSTOMER_NAME,&#13;&#10;    src.PARENT_LOCATION_ID,&#13;&#10;    pl1.PARENT_LOCATION_NAME,&#13;&#10;    src.CHOOSE_CUBBY,&#13;&#10;    src.IS_CHECK_OUT,&#13;&#10;    src.CHECK_OUT_DATE_TIME,&#13;&#10;    CAST(src.CHECK_OUT_DATE_TIME AS DATE) AS CHECK_OUT_DATE_ONLY,&#13;&#10;    src.PICK_UP_CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu3.CUSTOMER_FIRST_NAME, IIF(cu3.CUSTOMER_FIRST_NAME IS NOT NULL AND cu3.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu3.CUSTOMER_LAST_NAME), '') AS PICK_UP_CUSTOMER_NAME,&#13;&#10;    src.IS_STAFF_PICK_UP,&#13;&#10;    src.BULK_SIGNATURE_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    src.SOURCE_TYPE,&#13;&#10;    src.ATTENDANCE_NOTES,&#13;&#10;    src.UNDO_SYSTEMUSER_ID,&#13;&#10;    CONCAT(su2.USER_FIRST_NAME, IIF(su2.USER_FIRST_NAME IS NOT NULL AND su2.USER_LAST_NAME IS NOT NULL, ' ', ''), su2.USER_LAST_NAME) AS UNDO_SYSTEM_USER_NAME,&#13;&#10;    src.UNDO_DATE_TIME,&#13;&#10;    CAST(src.UNDO_DATE_TIME AS DATE) AS UNDO_DATE_ONLY,&#13;&#10;    src.IS_DELETED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.PROGRAM_ATTENDANCE_HISTORY src&#13;&#10;    LEFT JOIN hub.PROGRAM_REGISTRATIONS pr1 ON pr1.REGISTRATION_ID = src.REGISTRATION_ID&#13;&#10;    LEFT JOIN hub.PROGRAMS pr2 ON pr2.PROGRAM_ID = pr1.PROGRAM_ID&#13;&#10;    LEFT JOIN hub.SESSIONS se1 ON se1.SESSION_ID = pr1.SESSION_ID&#13;&#10;    LEFT JOIN hub.PARENT_LOCATIONS pl1 ON (pl1.PARENT_LOCATION_ID = src.PARENT_LOCATION_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = pr1.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu2 ON (cu2.CUSTOMER_ID = src.DROP_OFF_CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu3 ON (cu3.CUSTOMER_ID = src.PICK_UP_CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su2 ON (su2.SYSTEMUSER_ID = src.UNDO_SYSTEMUSER_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PROGRAM_ATTENDANCE_HISTORY_ID" nullable="false" remarks="The program attendance history ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CHECK_IN_HISTORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="CHECK_OUT_HISTORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_REGISTRATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="REGISTRATION_ID" nullable="true" remarks="The program registration ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="REGISTRATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_REGISTRATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="REGISTRANT_CUSTOMER_ID" nullable="true" remarks="The customer ID of the registrant" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="REGISTRANT_CUSTOMER_NAME" nullable="true" remarks="The name of the registrant" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PROGRAM_ID" nullable="true" remarks="The ID of the program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PROGRAM_NAME" nullable="true" remarks="The name of the program" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SESSION_ID" nullable="true" remarks="The ID of the session" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SESSION_NAME" nullable="true" remarks="The name of the session" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="SESSION_BEGIN_DATE_TIME" nullable="true" remarks="The start date and time of the session" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="SESSION_END_DATE_TIME" nullable="true" remarks="The end date and time of the session" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="IS_CHECK_IN" nullable="true" remarks="Whether the history record is for a check-in (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="11" name="CHECK_IN_DATE_TIME" nullable="true" remarks="The check-in date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CHECK_IN_DATE_ONLY" nullable="true" remarks="The check-in date (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DROP_OFF_CUSTOMER_ID" nullable="true" remarks="The ID of the customer who dropped off the registrant" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="DROP_OFF_CUSTOMER_NAME" nullable="true" remarks="The name of the customer who dropped off the registrant" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="PARENT_LOCATION_ID" nullable="true" remarks="The ID of the parent's location during the session" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PARENT_LOCATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PARENT_LOCATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="PARENT_LOCATION_NAME" nullable="true" remarks="The name of the parent's location during the session" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="CHOOSE_CUBBY" nullable="true" remarks="Whether a cubby was chosen during check-in (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="IS_CHECK_OUT" nullable="true" remarks="Whether the history record is for a check-out (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="19" name="CHECK_OUT_DATE_TIME" nullable="true" remarks="The check-out date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="CHECK_OUT_DATE_ONLY" nullable="true" remarks="The check-out date (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="PICK_UP_CUSTOMER_ID" nullable="true" remarks="The ID of the customer who picked up the registrant" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="PICK_UP_CUSTOMER_NAME" nullable="true" remarks="The name of the customer who picked up the registrant" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="IS_STAFF_PICK_UP" nullable="true" remarks="Whether a staff member picked up the registrant (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="BULK_SIGNATURE_NAME" nullable="true" remarks="The bulk signature name if a signature was captured" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who performed the check-in or check-out" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="SYSTEM_USER_NAME" nullable="false" remarks="The name of the system user who performed the check-in or check-out" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="SOURCE_TYPE" nullable="true" remarks="The source type of the check-in or check-out (Staff Admin / Online)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="ATTENDANCE_NOTES" nullable="true" remarks="Attendance notes entered" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="UNDO_SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who performed an undo of the check-in or check-out" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="UNDO_SYSTEM_USER_NAME" nullable="false" remarks="The name of the system user who performed an undo of the check-in or check-out" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="31" name="UNDO_DATE_TIME" nullable="true" remarks="The date and time that an undo of the check-in or check-out was performed" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="UNDO_DATE_ONLY" nullable="true" remarks="The date that an undo of the check-in or check-out was performed (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="IS_DELETED" nullable="true" remarks="Whether the history record is considered to be deleted (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="34" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PROGRAM_ATTENDANCE_HISTORY_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PROGRAM_CUSTOM_QUESTIONS" numRows="0" remarks="Custom questions for program enrollment transactions." schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PROGRAM_CUSTOM_QUESTIONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    cql.DCPROGRAM_ID AS PROGRAM_ID,&#13;&#10;    NULL CUSTOM_QUESTION_GROUP_ID,&#13;&#10;    NULL GROUP_DESCRIPTION,&#13;&#10;    NULL GROUP_HEADER_TEXT,&#13;&#10;    NULL GROUP_ORDER,&#13;&#10;    cql.QUESTION_ORDER,&#13;&#10;    cq.CUSTOM_QUESTION_ID,&#13;&#10;    cq.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    cq.QUESTION,&#13;&#10;    cq.IS_REQUIRED,&#13;&#10;    cq.QUESTION_TYPE,&#13;&#10;    cq.NOTE,&#13;&#10;    cq.DEFAULT_ANSWER,&#13;&#10;    cq.TITLE,&#13;&#10;    cq.ANSWER_FORMAT,&#13;&#10;    cq.IS_RETIRED,&#13;&#10;    cq.HIDE_ON_INTERNET,&#13;&#10;    cq.ADD_TO_NEW_ACTIVITIES,&#13;&#10;    cq.QUESTION_SCOPE,&#13;&#10;    cq.HIDE_ON_ADMIN,&#13;&#10;    cq.DO_NOT_SHOW_AFTER,&#13;&#10;    cq.DO_NOT_EDIT_AFTER,&#13;&#10;    cq.USE_ANSWER_CODE,&#13;&#10;    cq.QUESTION_HINT,&#13;&#10;    cq.MESSAGE_FOR_USED_UP_ANSWERS,&#13;&#10;    cq.ANSWER_MAX_LENGTH,&#13;&#10;    cq.EXTRA_ANSWER_TEXT,&#13;&#10;    cq.CUSTOM_QUESTION_TYPE_ID,&#13;&#10;    cct.CUSTOM_QUESTION_TYPE_NAME AS CUSTOM_QUESTION_TYPE,&#13;&#10;    cq.APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS,&#13;&#10;    cq.IS_DEMOGRAPHIC_RELATED_QUESTION&#13;&#10;FROM&#13;&#10;    hub.CUSTOM_QUESTION_LINKS cql&#13;&#10;    JOIN hub.CUSTOM_QUESTIONS cq ON cq.CUSTOM_QUESTION_ID = cql.CUSTOM_QUESTION_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.SITE_ID = cq.SITE_ID&#13;&#10;    LEFT JOIN hub.CUSTOM_QUESTION_TYPES cct ON (cct.CUSTOM_QUESTION_TYPE_ID = cq.CUSTOM_QUESTION_TYPE_ID)&#13;&#10;WHERE&#13;&#10;    cql.DCPROGRAMCUSTOMQUESTION_ID IS NOT NULL&#13;&#10;UNION ALL&#13;&#10;SELECT&#13;&#10;    cqgl.DCPROGRAM_ID AS PROGRAM_ID,&#13;&#10;    cqgl.CUSTOM_QUESTION_GROUP_ID,&#13;&#10;    cqgl.GROUP_DESCRIPTION,&#13;&#10;    cqgl.GROUP_HEADER_TEXT,&#13;&#10;    cqgl.GROUP_ORDER,&#13;&#10;    cql.QUESTION_ORDER,&#13;&#10;    cq.CUSTOM_QUESTION_ID,&#13;&#10;    cq.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    cq.QUESTION,&#13;&#10;    cq.IS_REQUIRED,&#13;&#10;    cq.QUESTION_TYPE,&#13;&#10;    cq.NOTE,&#13;&#10;    cq.DEFAULT_ANSWER,&#13;&#10;    cq.TITLE,&#13;&#10;    cq.ANSWER_FORMAT,&#13;&#10;    cq.IS_RETIRED,&#13;&#10;    cq.HIDE_ON_INTERNET,&#13;&#10;    cq.ADD_TO_NEW_ACTIVITIES,&#13;&#10;    cq.QUESTION_SCOPE,&#13;&#10;    cq.HIDE_ON_ADMIN,&#13;&#10;    cq.DO_NOT_SHOW_AFTER,&#13;&#10;    cq.DO_NOT_EDIT_AFTER,&#13;&#10;    cq.USE_ANSWER_CODE,&#13;&#10;    cq.QUESTION_HINT,&#13;&#10;    cq.MESSAGE_FOR_USED_UP_ANSWERS,&#13;&#10;    cq.ANSWER_MAX_LENGTH,&#13;&#10;    cq.EXTRA_ANSWER_TEXT,&#13;&#10;    cq.CUSTOM_QUESTION_TYPE_ID,&#13;&#10;    cct.CUSTOM_QUESTION_TYPE_NAME AS CUSTOM_QUESTION_TYPE,&#13;&#10;    cq.APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS,&#13;&#10;    cq.IS_DEMOGRAPHIC_RELATED_QUESTION&#13;&#10;FROM&#13;&#10;    hub.CUSTOM_QUESTION_GROUP_LINKS cqgl&#13;&#10;    JOIN hub.CUSTOM_QUESTION_LINKS cql ON cql.CUSTOM_QUESTION_GROUP_ID = cqgl.CUSTOM_QUESTION_GROUP_ID AND cql.GROUPCUSTOMQUESTION_ID IS NOT NULL&#13;&#10;    JOIN hub.CUSTOM_QUESTIONS cq ON cq.CUSTOM_QUESTION_ID = cql.CUSTOM_QUESTION_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.SITE_ID = cq.SITE_ID&#13;&#10;    LEFT JOIN hub.CUSTOM_QUESTION_TYPES cct ON (cct.CUSTOM_QUESTION_TYPE_ID = cq.CUSTOM_QUESTION_TYPE_ID)&#13;&#10;WHERE&#13;&#10;    cqgl.DCPROGRAMCUSTOM_QUESTION_GROUP_ID IS NOT NULL;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PROGRAM_ID" nullable="true" remarks="Program ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOM_QUESTION_GROUP_ID" nullable="true" remarks="Custom question group ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="GROUP_DESCRIPTION" nullable="true" remarks="Custom question group description" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="GROUP_HEADER_TEXT" nullable="true" remarks="Custom question group heading text" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GROUP_ORDER" nullable="true" remarks="Custom question group display order" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="QUESTION_ORDER" nullable="true" remarks="The order number that the question should be presented in" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOM_QUESTION_ID" nullable="true" remarks="Custom question ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SITE_ID" nullable="true" remarks="Site ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SITE_NAME" nullable="true" remarks="Site name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="QUESTION" nullable="true" remarks="The text of the question to be asked" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="IS_REQUIRED" nullable="true" remarks="Whether an answer is required for the custom question (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="QUESTION_TYPE" nullable="true" remarks="The type of control to be used to answer the question (User Entry / Single Selection - Dropdown / Single Selection - Radio / Multi Selection - Checkbox / Multi Selection - Listbox / Auto-fill Conditional)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="NOTE" nullable="true" remarks="A user note related to the custom question" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DEFAULT_ANSWER" nullable="true" remarks="The optional default answer for the user entry question" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="TITLE" nullable="true" remarks="The title of the custom question" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ANSWER_FORMAT" nullable="true" remarks="The answer format of the user entry question (Free Form / Phone Number / Date / Time / SSN / Postal Code / Upper-case Alpha / Lower-case Alpha / Numbers Only / Alpha Only / Duration)" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="IS_RETIRED" nullable="true" remarks="Whether the custom question has been retired (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether the custom question should be excluded from display on the internet site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ADD_TO_NEW_ACTIVITIES" nullable="true" remarks="Whether the custom question should be automatically added to new activities (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="QUESTION_SCOPE" nullable="true" remarks="The scope of the custom question (Ask for every transaction / Ask once per receipt)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="HIDE_ON_ADMIN" nullable="true" remarks="Whether the custom question should be excluded from display on the admin site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="DO_NOT_SHOW_AFTER" nullable="true" remarks="The last date that the custom question should be displayed" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="DO_NOT_EDIT_AFTER" nullable="true" remarks="The last date that the custom question should allow edits" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="USE_ANSWER_CODE" nullable="true" remarks="Whether the custom question uses answer codes (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="QUESTION_HINT" nullable="true" remarks="A hint to be displayed for the custom question" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="MESSAGE_FOR_USED_UP_ANSWERS" nullable="true" remarks="A message to be displayed for the custom question for answers that have reached their use count limit" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ANSWER_MAX_LENGTH" nullable="true" remarks="The maximum answer length for user entry questions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="EXTRA_ANSWER_TEXT" nullable="true" remarks="Additional instruction text to be displayed for a multiple-choice question" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="CUSTOM_QUESTION_TYPE_ID" nullable="true" remarks="Custom question type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="CUSTOM_QUESTION_TYPE" nullable="true" remarks="Custom question type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="APPLY_LATEST_ANSWER_TO_PREVIOUS_TRANSACTIONS" nullable="true" remarks="Whether the answer given should replace prior answers to the same question for the customer (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="IS_DEMOGRAPHIC_RELATED_QUESTION" nullable="true" remarks="Whether the custom question is related to demographics (Yes/No)" size="5" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="PROGRAM_FEE_ALTERNATE_KEY_QUALIFICATIONS" numRows="0" remarks="Master table containing defined program fee alternate key qualifications" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE   VIEW dbo.PROGRAM_FEE_ALTERNATE_KEY_QUALIFICATIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CHARGE_QUALIFICATION_LINK_ID,&#13;&#10;    src.QUALIFICATION_TYPE_ID,&#13;&#10;    src.QUALIFICATION_TYPE,&#13;&#10;    src.PROGRAM_FEE_ID,&#13;&#10;    pf2.CHARGE_NAME AS PROGRAM_FEE_NAME,&#13;&#10;    src.ALTERNATE_KEY_TYPE_ID,&#13;&#10;    akt.ALTERNATE_KEY_TYPE AS ALTERNATE_KEY_TYPE_NAME,&#13;&#10;    src.ALTERNATE_KEY_STATUS_ID,&#13;&#10;    aks.ALTERNATE_KEY_STATUS AS ALTERNATE_KEY_STATUS_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM hub.CHARGE_QUALIFICATION_LINKS src&#13;&#10;LEFT JOIN hub.PROGRAM_FEES pf2 ON pf2.PROGRAM_FEE_ID = src.PROGRAM_FEE_ID&#13;&#10;LEFT JOIN hub.ALTERNATE_KEY_TYPES akt ON akt.ALTERNATE_KEY_TYPE_ID = src.ALTERNATE_KEY_TYPE_ID&#13;&#10;LEFT JOIN hub.ALTERNATE_KEY_STATUSES aks ON aks.ALTERNATE_KEY_STATUS_ID = src.ALTERNATE_KEY_STATUS_ID&#13;&#10;WHERE src.QUALIFICATION_TYPE_ID = 7; -- KeyType.dcprogram_fee_multi_alternate_key = 7&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CHARGE_QUALIFICATION_LINK_ID" nullable="true" remarks="Charge qualification link ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="QUALIFICATION_TYPE_ID" nullable="true" remarks="Qualification type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="QUALIFICATION_TYPE" nullable="true" remarks="Qualification type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PROGRAM_FEE_ID" nullable="true" remarks="Program fee ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PROGRAM_FEE_NAME" nullable="true" remarks="Program fee name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ALTERNATE_KEY_TYPE_ID" nullable="true" remarks="Alternate key type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ALTERNATE_KEY_TYPE_NAME" nullable="true" remarks="Alternate key type name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ALTERNATE_KEY_STATUS_ID" nullable="true" remarks="Alternate key status ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ALTERNATE_KEY_STATUS_NAME" nullable="true" remarks="Alternate key status name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="PROGRAM_FEES" numRows="0" remarks="Master table showing defined program fees data" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PROGRAM_FEES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.PROGRAM_FEE_ID,&#13;&#10;    src.PROGRAM_ID,&#13;&#10;    pr1.PROGRAM_NAME,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    src.CHARGE_NAME,&#13;&#10;    src.CHARGE_TYPE,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.FEE_AMOUNT,&#13;&#10;    src.FEE_ORDER,&#13;&#10;    src.DISCOUNT_TYPE,&#13;&#10;    src.DISCOUNT_PERCENT,&#13;&#10;    src.DISCOUNTABLE,&#13;&#10;    src.OVERRIDE_FLAG,&#13;&#10;    src.PREFILL_CONDITION,&#13;&#10;    src.TAXABLE_BY_TAX_1,&#13;&#10;    src.TAXABLE_BY_TAX_2,&#13;&#10;    src.TAXABLE_BY_TAX_3,&#13;&#10;    src.TAXABLE_BY_TAX_4,&#13;&#10;    src.TAXABLE_BY_TAX_5,&#13;&#10;    src.TAXABLE_BY_TAX_6,&#13;&#10;    src.TAXABLE_BY_TAX_7,&#13;&#10;    src.TAXABLE_BY_TAX_8,&#13;&#10;    src.UNIT_OF_MEASURE,&#13;&#10;    src.MULTI_CHILD_MIN,&#13;&#10;    src.MULTI_CHILD_MAX,&#13;&#10;    src.DAYS_PER_WEEK_MIN,&#13;&#10;    src.DAYS_PER_WEEK_MAX,&#13;&#10;    src.ACTIVATION_DATE,&#13;&#10;    src.EXPIRATION_DATE,&#13;&#10;    src.SESSION_MIN,&#13;&#10;    src.SESSION_MAX,&#13;&#10;    src.CUSTOMER_TYPE_ID,&#13;&#10;    ct1.CUSTOMER_TYPE_NAME AS CUSTOMER_TYPE,&#13;&#10;    src.AGES_MIN,&#13;&#10;    src.AGES_MAX,&#13;&#10;    src.ONLINE_QUESTION,&#13;&#10;    src.ACTIVATION_PASSWORD,&#13;&#10;    src.ALLOWED_QUANTITY_CHANGED,&#13;&#10;    src.ALLOWED_MIN_QUANTITY,&#13;&#10;    src.ALLOWED_MAX_QUANTITY,&#13;&#10;    src.PRORATE_FEES,&#13;&#10;    src.CONCURRENT_SESSIONS,&#13;&#10;    src.MIN_SESSION_HOURS,&#13;&#10;    src.MAX_SESSION_HOURS,&#13;&#10;    src.TRIAL_CLASS_FEE,&#13;&#10;    src.EXCLUDE_FROM_PAYMENT_PLAN,&#13;&#10;    src.DATES_RELATIVE_TO_REGISTRATION,&#13;&#10;    src.APPLY_TO_ORIGINAL_ENROLLMENT_ONLY,&#13;&#10;    src.QUALIFIED_SESSION_ID,&#13;&#10;    se1.SESSION_NAME AS QUALIFIED_SESSION_NAME,&#13;&#10;    src.MIN_SESSION_BOOKINGS_PER_UNIT,&#13;&#10;    src.MAX_SESSION_BOOKINGS_PER_UNIT,&#13;&#10;    src.SYSTEM_GL_ACCOUNT_PACKAGE_ID,&#13;&#10;    sgap.SYSTEM_GL_ACCOUNT_PACKAGE_NAME AS SYSTEM_GL_ACCOUNT_PACKAGE,&#13;&#10;    src.DISCOUNT_ORDER,&#13;&#10;    src.ONE_TIME_FEE,&#13;&#10;    src.MULTI_PERSON_QUALIFYING_TIME_PERIOD,&#13;&#10;    src.DISCOUNT_CHEAPEST,&#13;&#10;    src.IS_MULTI_GL,&#13;&#10;    src.MULTI_WEEK_MIN,&#13;&#10;    src.MULTI_WEEK_MAX,&#13;&#10;    src.NON_REFUNDABLE,&#13;&#10;    src.PRIMARY_FEE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.PROGRAM_FEES src&#13;&#10;    LEFT JOIN hub.PROGRAMS pr1 ON (pr1.PROGRAM_ID = src.PROGRAM_ID)&#13;&#10;    LEFT JOIN hub.SESSIONS se1 ON (se1.SESSION_ID = src.QUALIFIED_SESSION_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.GLACCOUNT_ID = src.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMER_TYPES ct1 ON (ct1.CUSTOMER_TYPE_ID = src.CUSTOMER_TYPE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_GL_ACCOUNT_PACKAGES sgap ON (sgap.SYSTEM_GL_ACCOUNT_PACKAGE_ID = src.SYSTEM_GL_ACCOUNT_PACKAGE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PROGRAM_FEE_ID" nullable="true" remarks="Program fee ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="PROGRAM_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PROGRAM_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SCHEDULED_FEE_CHANGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PROGRAM_ID" nullable="true" remarks="Program ID which this fee belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PROGRAM_NAME" nullable="true" remarks="Program name which this fee belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CHARGE_ID" nullable="true" remarks="Charge ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CHARGE_NAME" nullable="true" remarks="Charge name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CHARGE_TYPE" nullable="true" remarks="The type of charge (Fee / Discount / Scholarship)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="GLACCOUNT_ID" nullable="true" remarks="The default GL account ID to post this charge to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="GL_ACCOUNT_NAME" nullable="true" remarks="GL account name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="10" name="FEE_AMOUNT" nullable="true" remarks="The default fee or discount amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="FEE_ORDER" nullable="true" remarks="The order in which the fee should be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="DISCOUNT_TYPE" nullable="true" remarks="The type of discount (Amount / Percent)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="13" name="DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="DISCOUNTABLE" nullable="true" remarks="Whether this charge can be discounted (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="OVERRIDE_FLAG" nullable="true" remarks="Whether this charge can be overridden (Always / Never / By Password)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="PREFILL_CONDITION" nullable="true" remarks="The prefill condition for this fee (Never / Always / If Resident / If Non-resident / If Minor / If Senior / If Internet / If Member / If Non-member)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="TAXABLE_BY_TAX_1" nullable="true" remarks="Whether tax 1 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="TAXABLE_BY_TAX_2" nullable="true" remarks="Whether tax 2 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="TAXABLE_BY_TAX_3" nullable="true" remarks="Whether tax 3 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="TAXABLE_BY_TAX_4" nullable="true" remarks="Whether tax 4 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="TAXABLE_BY_TAX_5" nullable="true" remarks="Whether tax 5 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="TAXABLE_BY_TAX_6" nullable="true" remarks="Whether tax 6 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="TAXABLE_BY_TAX_7" nullable="true" remarks="Whether tax 7 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="TAXABLE_BY_TAX_8" nullable="true" remarks="Whether tax 8 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="UNIT_OF_MEASURE" nullable="true" remarks="The default unit of measure for the amount" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="MULTI_CHILD_MIN" nullable="true" remarks="The minimum number of registrants for multi-person registration with this fee" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="MULTI_CHILD_MAX" nullable="true" remarks="The maximum number of registrants for multi-person registration with this fee" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="DAYS_PER_WEEK_MIN" nullable="true" remarks="The minimum number of days per week booked for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="DAYS_PER_WEEK_MAX" nullable="true" remarks="The maximum number of days per week booked for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="ACTIVATION_DATE" nullable="true" remarks="The first available date for this fee" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="EXPIRATION_DATE" nullable="true" remarks="The last available date for this fee" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="SESSION_MIN" nullable="true" remarks="The minimum number of sessions booked for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="SESSION_MAX" nullable="true" remarks="The maximum number of sessions booked for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="CUSTOMER_TYPE_ID" nullable="true" remarks="The customer type ID that this charge applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="CUSTOMER_TYPE" nullable="true" remarks="The customer type that this fee applies to" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="AGES_MIN" nullable="true" remarks="The minimum age for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="AGES_MAX" nullable="true" remarks="The maximum age for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="ONLINE_QUESTION" nullable="true" remarks="Online question to be asked for this fee" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="ACTIVATION_PASSWORD" nullable="true" remarks="The answer to the online question that must be entered to activate this fee" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="ALLOWED_QUANTITY_CHANGED" nullable="true" remarks="Whether the quantity for this fee can be changed online (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="ALLOWED_MIN_QUANTITY" nullable="true" remarks="The minimum allowed quantity for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="ALLOWED_MAX_QUANTITY" nullable="true" remarks="The maximum allowed quantity for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="PRORATE_FEES" nullable="true" remarks="Whether this fee can be prorated (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="CONCURRENT_SESSIONS" nullable="true" remarks="Whether the sessions booked need to be concurrent for the number of sessions qualification (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="45" name="MIN_SESSION_HOURS" nullable="true" remarks="The minimum number of hours per week booked for this fee to be applied" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="46" name="MAX_SESSION_HOURS" nullable="true" remarks="The maximum number of hours per week booked for this fee to be applied" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="TRIAL_CLASS_FEE" nullable="true" remarks="Whether this charge can be a trial class fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="EXCLUDE_FROM_PAYMENT_PLAN" nullable="true" remarks="Whether this charge should be excluded from any payment plan (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="DATES_RELATIVE_TO_REGISTRATION" nullable="true" remarks="Whether the activation and expiration dates are based on registration date rather than session date (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="APPLY_TO_ORIGINAL_ENROLLMENT_ONLY" nullable="true" remarks="Whether the fee should be included in the original enrollment only (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="QUALIFIED_SESSION_ID" nullable="true" remarks="Session ID which this fee belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SESSION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SESSIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="QUALIFIED_SESSION_NAME" nullable="true" remarks="Session name which this fee belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="MIN_SESSION_BOOKINGS_PER_UNIT" nullable="true" remarks="The minimum number of session bookings per billing unit for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="MAX_SESSION_BOOKINGS_PER_UNIT" nullable="true" remarks="The maximum number of session bookings per billing unit for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID" nullable="true" remarks="System GL account package ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="SYSTEM_GL_ACCOUNT_PACKAGE" nullable="true" remarks="System GL account package name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="DISCOUNT_ORDER" nullable="true" remarks="The order in which the discount should be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="ONE_TIME_FEE" nullable="true" remarks="Whether this is a one-time fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="MULTI_PERSON_QUALIFYING_TIME_PERIOD" nullable="true" remarks="This multi-person registration fee will only consider prior registrations within this last number of months" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="DISCOUNT_CHEAPEST" nullable="true" remarks="Whether the discount should be applied to the lowest cost enrollment in a multi-person registration" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="61" name="IS_MULTI_GL" nullable="true" remarks="Whether this fee splits GL postings across multiple GL accounts (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="MULTI_WEEK_MIN" nullable="true" remarks="The minimum number of weeks booked for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="MULTI_WEEK_MAX" nullable="true" remarks="The maximum number of weeks booked for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="NON_REFUNDABLE" nullable="true" remarks="Whether the fee is non-refundable (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="65" name="PRIMARY_FEE" nullable="true" remarks="Whether this charge is a primary fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="66" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="67" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="68" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PROGRAM_FEE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PROGRAM_INTEREST_LISTS" numRows="0" remarks="Contains the interest lists that are assigned to each program" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PROGRAM_INTEREST_LISTS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    il.PROGRAM_ID,&#13;&#10;    pr.PROGRAM_NAME,&#13;&#10;    il.INTEREST_LIST_ID,&#13;&#10;    il.INTEREST_LIST_NAME,&#13;&#10;    il.CATEGORY_ID,&#13;&#10;    acat.ACTIVITY_CATEGORY_NAME AS CATEGORY_NAME,&#13;&#10;    il.SUB_CATEGORY_ID,&#13;&#10;    ascat.ACTIVITY_SUB_CATEGORY_NAME AS SUB_CATEGORY_NAME&#13;&#10;FROM&#13;&#10;    hub.INTEREST_LISTS il&#13;&#10;    JOIN hub.PROGRAMS pr ON pr.PROGRAM_ID = il.PROGRAM_ID&#13;&#10;    LEFT JOIN hub.ACTIVITY_CATEGORIES acat ON (acat.ACTIVITY_CATEGORY_ID = il.CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_SUB_CATEGORIES ascat ON (ascat.ACTIVITY_SUB_CATEGORY_ID = il.SUB_CATEGORY_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PROGRAM_ID" nullable="true" remarks="The ID of the program that is assigned to the interest list" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PROGRAM_NAME" nullable="true" remarks="The name of the program that is assigned to the interest list" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="INTEREST_LIST_ID" nullable="true" remarks="The interest list ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="INTEREST_LIST_NAME" nullable="true" remarks="Name of the interest list" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CATEGORY_ID" nullable="true" remarks="The category ID of the interest list" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CATEGORY_NAME" nullable="true" remarks="The category name of the interest list." size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SUB_CATEGORY_ID" nullable="true" remarks="The sub-category ID of the interest list" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SUB_CATEGORY_NAME" nullable="true" remarks="The sub-category name of the interest list." size="40" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="PROGRAM_NET_REVENUE" numRows="0" remarks="Your organization's defined program net revenue" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.PROGRAM_NET_REVENUE &#13;&#10;AS &#13;&#10;SELECT  &#13;&#10;      src.PROGRAM_ID,&#13;&#10;       SRC.CUSTOMER_ID,&#13;&#10;&#9;   SRC.PROGRAM_NAME,&#13;&#10;       SRC.NET_REVENUE,&#13;&#10;&#9;   SRC.LAST_SYNC_TIME,&#13;&#10;       --src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;&#9;   SRC.ORG_ID,&#13;&#10;&#9;   SRC.PROGRAM_ID as source_id&#13;&#10;FROM&#13;&#10;(&#13;&#10;    SELECT &#13;&#10;&#9;&#9;  P.PROGRAM_ID,&#13;&#10;           T.CUSTOMER_ID,&#13;&#10;           P.PROGRAM_NAME,&#13;&#10;           T.ORG_ID,&#13;&#10;           FORMAT(SUM(   CASE&#13;&#10;                             WHEN GLA.GLACCOUNT_ID = 5 THEN&#13;&#10;                                 -(GL.AMOUNT)&#13;&#10;                             ELSE&#13;&#10;                                 0.00&#13;&#10;                         END&#13;&#10;                     ) + SUM(   CASE&#13;&#10;                                    WHEN GLA.SYSTEM_ACCOUNT = 0 THEN&#13;&#10;                                        -(GL.AMOUNT)&#13;&#10;                                    ELSE&#13;&#10;                                        0.00&#13;&#10;                                END&#13;&#10;                            ),&#13;&#10;                  'N',&#13;&#10;                  'EN-US'&#13;&#10;                 ) AS NET_REVENUE,&#13;&#10;           MAX(RD.ACTIVE_HUB_PROCESS_ID) AS ACTIVE_HUB_PROCESS_ID,&#13;&#10;           MAX(RD.LAST_SYNC_TIME) AS LAST_SYNC_TIME&#13;&#10;FROM HUB.TRANSACTIONS T&#13;&#10;    INNER JOIN hub.CUSTOMERS c&#13;&#10;        ON T.CUSTOMER_ID = c.CUSTOMER_ID&#13;&#10;           AND T.ORG_ID = c.ORG_ID&#13;&#10;    INNER JOIN HUB.RECEIPT_DETAILS RD&#13;&#10;        ON RD.TRANSACTION_ID = T.TRANSACTION_ID&#13;&#10;           AND T.ORG_ID = RD.ORG_ID&#13;&#10;    INNER JOIN HUB.RECEIPT_GL_POSTINGS GL&#13;&#10;        ON GL.RECEIPT_DETAIL_ID = RD.RECEIPT_DETAIL_ID&#13;&#10;           AND GL.ORG_ID = RD.ORG_ID&#13;&#10;    INNER JOIN HUB.GLACCOUNTS GLA&#13;&#10;        ON GLA.GLACCOUNT_ID = GL.GLACCOUNT_ID&#13;&#10;           AND GLA.ORG_ID = GL.ORG_ID&#13;&#10;    INNER JOIN HUB.PROGRAMS P&#13;&#10;        ON P.PROGRAM_ID = T.PROGRAM_ID&#13;&#10;           AND P.ORG_ID = T.ORG_ID&#13;&#10;WHERE T.VOIDED = 0&#13;&#10;      AND T.PROGRAM_ID &gt; 0&#13;&#10;      AND RD.VOIDED = 0&#13;&#10;      AND GL.VOIDED = 0&#13;&#10;GROUP BY P.PROGRAM_ID,&#13;&#10;         T.CUSTOMER_ID,&#13;&#10;         P.PROGRAM_NAME,&#13;&#10;         T.ORG_ID&#13;&#10;) SRC;&#13;&#10;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PROGRAM_ID" nullable="true" remarks="The program ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_ID" nullable="true" remarks="Identified one customer by id" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PROGRAM_NAME" nullable="true" remarks="The program Name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="NET_REVENUE" nullable="true" remarks="The net revenue of this program" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="LAST_SYNC_TIME" nullable="true" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="PROGRAM_PREREQUISITES" numRows="0" remarks="Your organization's defined prerequisites for programs" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PROGRAM_PREREQUISITES&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    pr1.ORG_ID,&#13;&#10;    pr1.PREREQUISITE_ID,&#13;&#10;    pr1.PROGRAM_ID,&#13;&#10;    pr2.PROGRAM_NAME,&#13;&#10;    pr2.CATALOGNUMBER AS PROGRAM_NUMBER,&#13;&#10;    pr1.GROUP_NUMBER,&#13;&#10;    pr1.PREREQUISITE_ACTIVITY_ID,&#13;&#10;    ac3.ACTIVITYNAME AS PREREQUISITE_ACTIVITY_NAME,&#13;&#10;    ac3.ACTIVITYNUMBER AS PREREQUISITE_ACTIVITY_NUMBER,&#13;&#10;    pr1.PREREQUISITE_PROGRAM_ID,&#13;&#10;    pr3.PROGRAM_NAME AS PREREQUISITE_PROGRAM_NAME,&#13;&#10;    pr3.CATALOGNUMBER AS PREREQUISITE_PROGRAM_NUMBER,&#13;&#10;    pr1.ACTIVITY_PROGRAM_NUMBER_WILDCARD,&#13;&#10;    pr1.DURATION_YEARS,&#13;&#10;    pr1.DURATION_MONTHS,&#13;&#10;    pr1.DURATION_DAYS,&#13;&#10;    pr1.PREREQUISITE_PACKAGE_ID,&#13;&#10;    pa3.PACKAGE_NAME AS PREREQUISITE_PACKAGE_NAME,&#13;&#10;    pr1.IMMEDIATE_SALE_PACKAGE,&#13;&#10;    pr1.SKILL_ID,&#13;&#10;    sk1.SKILL_NAME&#13;&#10;FROM&#13;&#10;    hub.PREREQUISITES pr1&#13;&#10;    JOIN hub.PROGRAMS pr2 ON pr2.PROGRAM_ID = pr1.PROGRAM_ID&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac3 ON ac3.ACTIVITY_ID = pr1.PREREQUISITE_ACTIVITY_ID&#13;&#10;    LEFT JOIN hub.PROGRAMS pr3 ON pr3.PROGRAM_ID = pr1.PREREQUISITE_PROGRAM_ID&#13;&#10;    LEFT JOIN hub.PACKAGES pa3 ON pa3.PACKAGE_ID = pr1.PREREQUISITE_PACKAGE_ID&#13;&#10;    LEFT JOIN hub.SKILLS sk1 ON (sk1.SKILL_ID = pr1.SKILL_ID)&#13;&#10;WHERE&#13;&#10;    pr1.RETURNING_PARTICIPANT_CRITERIA = 'No'&#13;&#10;    AND pr1.ACTIVITY_PROGRAM_NUMBER_WILDCARD IS NULL&#13;&#10;UNION ALL&#13;&#10;SELECT&#13;&#10;    pr1.ORG_ID,&#13;&#10;    pr1.PREREQUISITE_ID,&#13;&#10;    pr1.PROGRAM_ID,&#13;&#10;    pr2.PROGRAM_NAME,&#13;&#10;    pr2.CATALOGNUMBER AS PROGRAM_NUMBER,&#13;&#10;    pr1.GROUP_NUMBER,&#13;&#10;    ac3.ACTIVITY_ID AS PREREQUISITE_ACTIVITY_ID,&#13;&#10;    ac3.ACTIVITYNAME AS PREREQUISITE_ACTIVITY_NAME,&#13;&#10;    ac3.ACTIVITYNUMBER AS PREREQUISITE_ACTIVITY_NUMBER,&#13;&#10;    NULL AS PREREQUISITE_PROGRAM_ID,&#13;&#10;    NULL AS PREREQUISITE_PROGRAM_NAME,&#13;&#10;    NULL AS PREREQUISITE_PROGRAM_NUMBER,&#13;&#10;    pr1.ACTIVITY_PROGRAM_NUMBER_WILDCARD,&#13;&#10;    pr1.DURATION_YEARS,&#13;&#10;    pr1.DURATION_MONTHS,&#13;&#10;    pr1.DURATION_DAYS,&#13;&#10;    NULL AS PREREQUISITE_PACKAGE_ID,&#13;&#10;    NULL AS PREREQUISITE_PACKAGE_NAME,&#13;&#10;    'No' AS IMMEDIATE_SALE_PACKAGE,&#13;&#10;    NULL AS SKILL_ID,&#13;&#10;    NULL AS SKILL_NAME&#13;&#10;FROM&#13;&#10;    hub.PREREQUISITES pr1&#13;&#10;    JOIN hub.PROGRAMS pr2 ON pr2.PROGRAM_ID = pr1.PROGRAM_ID&#13;&#10;    CROSS JOIN hub.ACTIVITIES ac3&#13;&#10;WHERE&#13;&#10;    pr1.RETURNING_PARTICIPANT_CRITERIA = 'No'&#13;&#10;    AND pr1.ACTIVITY_PROGRAM_NUMBER_WILDCARD IS NOT NULL&#13;&#10;    AND ac3.ACTIVITYNUMBER LIKE REPLACE(pr1.ACTIVITY_PROGRAM_NUMBER_WILDCARD, '*', '%')&#13;&#10;UNION ALL&#13;&#10;SELECT&#13;&#10;    pr1.ORG_ID,&#13;&#10;    pr1.PREREQUISITE_ID,&#13;&#10;    pr1.PROGRAM_ID,&#13;&#10;    pr2.PROGRAM_NAME,&#13;&#10;    pr2.CATALOGNUMBER AS PROGRAM_NUMBER,&#13;&#10;    pr1.GROUP_NUMBER,&#13;&#10;    NULL AS PREREQUISITE_ACTIVITY_ID,&#13;&#10;    NULL AS PREREQUISITE_ACTIVITY_NAME,&#13;&#10;    NULL AS PREREQUISITE_ACTIVITY_NUMBER,&#13;&#10;    pr3.PROGRAM_ID AS PREREQUISITE_PROGRAM_ID,&#13;&#10;    pr3.PROGRAM_NAME AS PREREQUISITE_PROGRAM_NAME,&#13;&#10;    pr3.CATALOGNUMBER AS PREREQUISITE_PROGRAM_NUMBER,&#13;&#10;    pr1.ACTIVITY_PROGRAM_NUMBER_WILDCARD,&#13;&#10;    pr1.DURATION_YEARS,&#13;&#10;    pr1.DURATION_MONTHS,&#13;&#10;    pr1.DURATION_DAYS,&#13;&#10;    NULL AS PREREQUISITE_PACKAGE_ID,&#13;&#10;    NULL AS PREREQUISITE_PACKAGE_NAME,&#13;&#10;    'No' AS IMMEDIATE_SALE_PACKAGE,&#13;&#10;    NULL AS SKILL_ID,&#13;&#10;    NULL AS SKILL_NAME&#13;&#10;FROM&#13;&#10;    hub.PREREQUISITES pr1&#13;&#10;    JOIN hub.PROGRAMS pr2 ON pr2.PROGRAM_ID = pr1.PROGRAM_ID&#13;&#10;    CROSS JOIN hub.PROGRAMS pr3&#13;&#10;WHERE&#13;&#10;    pr1.RETURNING_PARTICIPANT_CRITERIA = 'No'&#13;&#10;    AND pr1.ACTIVITY_PROGRAM_NUMBER_WILDCARD IS NOT NULL&#13;&#10;    AND pr3.CATALOGNUMBER LIKE REPLACE(pr1.ACTIVITY_PROGRAM_NUMBER_WILDCARD, '*', '%');&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PREREQUISITE_ID" nullable="true" remarks="Prerequisite ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PROGRAM_ID" nullable="true" remarks="The ID of the program that the prerequisite belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PROGRAM_NAME" nullable="true" remarks="The name of the program that the prerequisite belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PROGRAM_NUMBER" nullable="true" remarks="The number of the program that the prerequisite belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="GROUP_NUMBER" nullable="true" remarks="The group number that the prerequisite belongs in" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PREREQUISITE_ACTIVITY_ID" nullable="true" remarks="The ID of the prerequisite activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="PREREQUISITE_ACTIVITY_NAME" nullable="true" remarks="The name of the prerequisite activity" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="PREREQUISITE_ACTIVITY_NUMBER" nullable="true" remarks="The number of the prerequisite activity" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="PREREQUISITE_PROGRAM_ID" nullable="true" remarks="The ID of the prerequisite program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="PREREQUISITE_PROGRAM_NAME" nullable="true" remarks="The name of the prerequisite program" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="PREREQUISITE_PROGRAM_NUMBER" nullable="true" remarks="The number of the prerequisite program" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ACTIVITY_PROGRAM_NUMBER_WILDCARD" nullable="true" remarks="The activity or program catalog number of the prerequisite activity or program" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DURATION_YEARS" nullable="true" remarks="The maximum number of years ago that the prerequisite registration may have occurred" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="DURATION_MONTHS" nullable="true" remarks="The maximum number of months ago that the prerequisite registration may have occurred" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="DURATION_DAYS" nullable="true" remarks="The maximum number of days ago that the prerequisite registration may have occurred" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="PREREQUISITE_PACKAGE_ID" nullable="true" remarks="The ID of the prerequisite membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="PREREQUISITE_PACKAGE_NAME" nullable="true" remarks="The name of the prerequisite membership package" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="IMMEDIATE_SALE_PACKAGE" nullable="true" remarks="Whether the prerequisite membership package may be purchased at the time of registration (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="SKILL_ID" nullable="true" remarks="The ID of the prerequisite skill" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="SKILL_NAME" nullable="true" remarks="The name of the prerequisite skill" size="50" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="PROGRAM_REGISTRATION_SUMMARY" numRows="0" remarks="FlexReg registration summary by customer, program and session" schema="dbo" type="VIEW" viewSql="&#10;CREATE VIEW dbo.PROGRAM_REGISTRATION_SUMMARY&#10;AS&#10;WITH cte_PROGRAM_REGISTRATIONS (&#10;&#9;&#9;ORG_ID,&#10;        CUSTOMER_ID,&#10;        PROGRAM_ID,&#10;        SESSION_ID,&#10;        TRANSACTION_ID,&#10;        RECEIPT_HEADER_ID,&#10;        ORIGINAL_TRANSACTION_ID,&#10;        ORIGINAL_RECEIPT_HEADER_ID,&#10;        TRANSACTION_DATE_TIME,&#10;        MIN_BEGIN_DATE_TIME,&#10;        MIN_END_DATE_TIME,&#10;        MAX_BEGIN_DATE_TIME,&#10;        MAX_END_DATE_TIME,&#10;        NUM_REGISTERED_TIMESLOTS,&#10;        NUM_REGISTERED_DAYS,&#10;        NUM_REGISTERED_WEEKS,&#10;        ON_MONDAY,&#10;        ON_TUESDAY,&#10;        ON_WEDNESDAY,&#10;        ON_THURSDAY,&#10;        ON_FRIDAY,&#10;        ON_SATURDAY,&#10;        ON_SUNDAY,&#10;&#9;&#9;NET_REVENUE,&#10;&#9;&#9;TOTAL_TAX&#10;    ) AS (&#10;        SELECT&#10;&#9;&#9;&#9;pr1.ORG_ID,&#10;            pr1.CUSTOMER_ID,&#10;            pr1.PROGRAM_ID,&#10;            pr1.SESSION_ID,&#10;            pr1.TRANSACTION_ID,&#10;            pr1.RECEIPT_HEADER_ID,&#10;            pr1.ORIGINAL_TRANSACTION_ID,&#10;            pr1.ORIGINAL_RECEIPT_HEADER_ID,&#10;            pr1.TRANSACTION_DATE_TIME,&#10;            MIN(pr1.BEGIN_DATE_TIME) AS MIN_BEGIN_DATE_TIME,&#10;            MIN(pr1.END_DATE_TIME) AS MIN_END_DATE_TIME,&#10;            MAX(pr1.BEGIN_DATE_TIME) AS MAX_BEGIN_DATE_TIME,&#10;            MAX(pr1.END_DATE_TIME) AS MAX_END_DATE_TIME,&#10;            COUNT(1) AS NUM_REGISTERED_TIMESLOTS,&#10;            COUNT(DISTINCT pr1.BEGIN_DATE_ONLY) AS NUM_REGISTERED_DAYS,&#10;            COUNT(DISTINCT DATEDIFF(WEEK, '1900-01-01', pr1.BEGIN_DATE_ONLY)) AS NUM_REGISTERED_WEEKS,&#10;            MAX(CASE WHEN DATEPART(WEEKDAY, pr1.BEGIN_DATE_ONLY) = 2 THEN 1 ELSE 0 END) ON_MONDAY,&#10;            MAX(CASE WHEN DATEPART(WEEKDAY, pr1.BEGIN_DATE_ONLY) = 3 THEN 1 ELSE 0 END) ON_TUESDAY,&#10;            MAX(CASE WHEN DATEPART(WEEKDAY, pr1.BEGIN_DATE_ONLY) = 4 THEN 1 ELSE 0 END) ON_WEDNESDAY,&#10;            MAX(CASE WHEN DATEPART(WEEKDAY, pr1.BEGIN_DATE_ONLY) = 5 THEN 1 ELSE 0 END) ON_THURSDAY,&#10;            MAX(CASE WHEN DATEPART(WEEKDAY, pr1.BEGIN_DATE_ONLY) = 6 THEN 1 ELSE 0 END) ON_FRIDAY,&#10;            MAX(CASE WHEN DATEPART(WEEKDAY, pr1.BEGIN_DATE_ONLY) = 7 THEN 1 ELSE 0 END) ON_SATURDAY,&#10;            MAX(CASE WHEN DATEPART(WEEKDAY, pr1.BEGIN_DATE_ONLY) = 1 THEN 1 ELSE 0 END) ON_SUNDAY,&#10;&#9;&#9;&#9;NET_REVENUE,&#10;&#9;&#9;&#9;TOTAL_TAX&#10;        FROM &#10;            hub.PROGRAM_REGISTRATIONS pr1&#10;        WHERE pr1.ENROLLMENTS &gt; 0&#10;        GROUP BY&#10;&#9;&#9;&#9;pr1.ORG_ID,&#10;            pr1.CUSTOMER_ID,&#10;            pr1.PROGRAM_ID,&#10;            pr1.SESSION_ID,&#10;            pr1.TRANSACTION_ID,&#10;            pr1.RECEIPT_HEADER_ID,&#10;            pr1.ORIGINAL_TRANSACTION_ID,&#10;            pr1.ORIGINAL_RECEIPT_HEADER_ID,&#10;            pr1.TRANSACTION_DATE_TIME,&#10;&#9;&#9;&#9;pr1.NET_REVENUE,&#10;&#9;&#9;&#9;pr1.TOTAL_TAX&#10;    ),&#10;cte_RECEIPT_DETAILS (&#10;&#9;&#9;ORG_ID,&#10;        TRANSACTION_ID,&#10;        TOTAL_FEE&#10;    ) AS (&#10;        SELECT&#10;&#9;&#9;&#9;rd1.ORG_ID,&#10;            rd1.TRANSACTION_ID,&#10;            SUM(rd1.AMOUNT + rd1.TAX_AMOUNT_1 + rd1.TAX_AMOUNT_2 + rd1.TAX_AMOUNT_3 + rd1.TAX_AMOUNT_4 + rd1.TAX_AMOUNT_5 + rd1.TAX_AMOUNT_6 + rd1.TAX_AMOUNT_7 + rd1.TAX_AMOUNT_8) AS TOTAL_FEE&#10;        FROM hub.RECEIPT_DETAILS rd1&#10;        GROUP BY rd1.ORG_ID,rd1.TRANSACTION_ID&#10;    ),&#10;&#10;cte_AR_SCHEDULED_DETAILS (&#10;&#9;&#9;TOTAL_UNPAID,&#10;        TOTAL_DUE,&#10;&#9;&#9;ot_transaction_id,&#10;&#9;&#9;ORG_ID&#10;&#9;&#9;&#10;    ) AS (&#10;&#9;&#9;&#9;&#10;&#9;&#9;&#9;SELECT sum(x.TOTAL_UNPAID) as TOTAL_UNPAID,sum(x.TOTAL_DUE) as TOTAL_DUE ,ot.TRANSACTION_ID as ot_transaction_id,ot.ORG_ID&#10;&#9;&#9;&#9;&#9;FROM hub.TRANSACTIONS t&#10;&#9;&#9;&#9;INNER JOIN (&#10;&#9;&#9;&#9;&#9;&#9;&#9; SELECT ard.ORG_ID,&#10;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;ard.TRANSACTION_ID,&#10;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;ard.RECEIPT_DETAIL_ID,&#10;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;SUM(ard.AMOUNT_DUE) AS TOTAL_UNPAID,&#10;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;SUM(CASE WHEN ard.DATE_DUE &lt; GETDATE() THEN ard.AMOUNT_DUE ELSE 0 END) AS TOTAL_DUE&#10;&#9;&#9;&#9;&#9;&#9;&#9;&#9;FROM hub.AR_SCHEDULED_DETAILS ard &#10;&#9;&#9;&#9;&#9;&#9;&#9;   GROUP BY ard.ORG_ID,ard.TRANSACTION_ID,ard.RECEIPT_DETAIL_ID&#10;&#9;&#9;&#9;&#9;&#9;&#9;   ) &#10;&#9;&#9;x ON   t.TRANSACTION_ID=x.TRANSACTION_ID AND t.ORG_ID=X.org_id&#10;&#9;&#9;&#10;&#9;&#9;LEFT JOIN  hub.TRANSACTIONS ot &#10;&#9;&#9;       ON t.ROOT_TRANSACTION_ID=ot.TRANSACTION_ID and ot.org_id=t.org_id&#10;      GROUP BY ot.TRANSACTION_ID,ot.ORG_ID&#10;    )&#10;&#10;&#9;&#10;SELECT&#10;    pr1.CUSTOMER_ID,&#10;    cu1.CUSTOMER_FIRST_NAME,&#10;    cu1.CUSTOMER_LAST_NAME,&#10;    cu1.CUSTOMER_GENDER,&#10;    cu1.DATE_OF_BIRTH AS CUSTOMER_BIRTH_DATE,&#10;    hub.udf_AgeInYearsMonths(cu1.DATE_OF_BIRTH, GETDATE()) AS CUSTOMER_AGE,&#10;    pr1.PROGRAM_ID,&#10;    pr2.PROGRAM_NAME,&#10;    pr1.SESSION_ID,&#10;    se1.SESSION_NAME,&#10;    pr1.TRANSACTION_ID,&#10;    pr1.RECEIPT_HEADER_ID,&#10;    FORMAT(rh1.RECEIPT_NUMBER, '#.0000') AS RECEIPT_NUMBER,&#10;    pr1.ORIGINAL_TRANSACTION_ID,&#10;    pr1.ORIGINAL_RECEIPT_HEADER_ID,&#10;    rh2.IS_ONLINE_RECEIPT,&#10;    pr1.TRANSACTION_DATE_TIME,&#10;    CAST(pr1.TRANSACTION_DATE_TIME AS DATE) AS TRANSACTION_DATE_ONLY,&#10;    CAST(pr1.MIN_BEGIN_DATE_TIME AS DATE) AS FIRST_DATE,&#10;    CAST(pr1.MIN_BEGIN_DATE_TIME AS TIME(0)) AS FIRST_START_TIME,&#10;    CAST(pr1.MIN_END_DATE_TIME AS TIME(0)) AS FIRST_END_TIME,&#10;    CAST(pr1.MAX_BEGIN_DATE_TIME AS DATE) AS LAST_DATE,&#10;    CAST(pr1.MAX_BEGIN_DATE_TIME AS TIME(0)) AS LAST_START_TIME,&#10;    CAST(pr1.MAX_END_DATE_TIME AS TIME(0)) AS LAST_END_TIME,&#10;    pr1.NUM_REGISTERED_TIMESLOTS,&#10;    pr1.NUM_REGISTERED_DAYS,&#10;    pr1.NUM_REGISTERED_WEEKS,&#10;    SUBSTRING(CONCAT(&#10;        IIF(pr1.ON_MONDAY = 1, ',Mon', ''),&#10;        IIF(pr1.ON_TUESDAY = 1, ',Tue', ''),&#10;        IIF(pr1.ON_WEDNESDAY = 1, ',Wed', ''),&#10;        IIF(pr1.ON_THURSDAY = 1, ',Thu', ''),&#10;        IIF(pr1.ON_FRIDAY = 1, ',Fri', ''),&#10;        IIF(pr1.ON_SATURDAY = 1, ',Sat', ''),&#10;        IIF(pr1.ON_SUNDAY = 1, ',Sun', '')&#10;        ), 2, 27) AS REGISTERED_DAYS,&#10;    ISNULL(rd1.TOTAL_FEE, 0) AS TOTAL_FEE,&#10;    ISNULL(rd1.TOTAL_FEE, 0) - ISNULL(ard.TOTAL_UNPAID, 0) AS TOTAL_PAID,&#10;    ISNULL(ard.TOTAL_DUE, 0) AS TOTAL_DUE,&#10;&#9;pr1.NET_REVENUE,&#10;&#9;pr1.TOTAL_TAX,&#10;    rh3.IS_ONLINE_RECEIPT AS INITIATED_ONLINE&#10;FROM &#10;    cte_PROGRAM_REGISTRATIONS pr1&#10;    LEFT JOIN hub.PROGRAMS pr2 ON pr2.ORG_ID = pr1.ORG_ID AND pr2.PROGRAM_ID = pr1.PROGRAM_ID&#10;    LEFT JOIN hub.SESSIONS se1 ON se1.ORG_ID = pr1.ORG_ID AND se1.SESSION_ID = pr1.SESSION_ID&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON cu1.ORG_ID = pr1.ORG_ID AND cu1.CUSTOMER_ID = pr1.CUSTOMER_ID&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON rh1.ORG_ID = pr1.ORG_ID AND rh1.RECEIPT_HEADER_ID = pr1.RECEIPT_HEADER_ID&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh2 ON rh2.ORG_ID = pr1.ORG_ID AND rh2.RECEIPT_HEADER_ID = pr1.ORIGINAL_RECEIPT_HEADER_ID&#10;    LEFT JOIN cte_RECEIPT_DETAILS rd1 ON rd1.ORG_ID = pr1.ORG_ID AND rd1.TRANSACTION_ID = pr1.TRANSACTION_ID&#10;    LEFT JOIN cte_AR_SCHEDULED_DETAILS ard ON ard.ORG_ID = pr1.ORG_ID AND pr1.TRANSACTION_ID = ard.ot_transaction_id&#10;    /* for INTITIATED_ONLINE */&#10;&#9;LEFT OUTER JOIN hub.TRANSACTIONS tr1 ON(pr1.ORG_ID = tr1.ORG_ID AND pr1.TRANSACTION_ID = tr1.TRANSACTION_ID)&#10;    LEFT OUTER JOIN hub.TRANSACTIONS tr2 ON(tr1.ORG_ID = tr2.ORG_ID AND tr1.ROOT_TRANSACTION_ID = tr2.TRANSACTION_ID)&#10;&#9;LEFT OUTER JOIN hub.RECEIPT_HEADERS rh3 ON(tr1.ORG_ID = rh3.ORG_ID AND tr1.RECEIPT_HEADER_ID = rh3.RECEIPT_HEADER_ID);&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="CUSTOMER_ID" nullable="true" remarks="Customer's ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_FIRST_NAME" nullable="true" remarks="Customer's first name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_LAST_NAME" nullable="true" remarks="Customer's last name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMER_GENDER" nullable="true" remarks="Customer Gender (Male, Female, Other)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="CUSTOMER_BIRTH_DATE" nullable="true" remarks="Customer's date of birth" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMER_AGE" nullable="true" remarks="Age of the customer (years.months)" size="8" type="float" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PROGRAM_ID" nullable="true" remarks="Program ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="PROGRAM_NAME" nullable="true" remarks="Program name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SESSION_ID" nullable="true" remarks="Session ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="SESSION_NAME" nullable="true" remarks="Session name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="TRANSACTION_ID" nullable="true" remarks="The most recent transaction ID for this program registration" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="RECEIPT_HEADER_ID" nullable="true" remarks="The most recent receipt header ID for this program registration" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="RECEIPT_NUMBER" nullable="true" remarks="Receipt number" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ORIGINAL_TRANSACTION_ID" nullable="true" remarks="The original transaction ID for this program registration" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ORIGINAL_RECEIPT_HEADER_ID" nullable="true" remarks="The original receipt header ID for this program registration" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="IS_ONLINE_RECEIPT" nullable="true" remarks="Whether the original registration was done online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="TRANSACTION_DATE_TIME" nullable="true" remarks="Transaction date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="TRANSACTION_DATE_ONLY" nullable="true" remarks="Transaction date (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="FIRST_DATE" nullable="true" remarks="The date of the first registered session timeslot" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="FIRST_START_TIME" nullable="true" remarks="The starting time of the first registered session timeslot" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="FIRST_END_TIME" nullable="true" remarks="The ending time of the first registered session timeslot" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="LAST_DATE" nullable="true" remarks="The date of the last registered session timeslot" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="LAST_START_TIME" nullable="true" remarks="The starting time of the last registered session timeslot" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="LAST_END_TIME" nullable="true" remarks="The ending time of the last registered session timeslot" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="NUM_REGISTERED_TIMESLOTS" nullable="true" remarks="The number of timeslots that the customer is registered for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="NUM_REGISTERED_DAYS" nullable="true" remarks="The number of distinct dates that the customer has registered timeslots in" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="NUM_REGISTERED_WEEKS" nullable="true" remarks="The number of distinct weeks (Monday through Sunday) that the customer has registered timeslots in" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="REGISTERED_DAYS" nullable="true" remarks="The list of days of the week that the customer has registered timeslots in" size="27" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="28" name="TOTAL_FEE" nullable="false" remarks="The total fee amount charged to the customer" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="29" name="TOTAL_PAID" nullable="true" remarks="The total amount of the fee that has been paid" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="30" name="TOTAL_DUE" nullable="false" remarks="The total scheduled amount that is currently due to be paid" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="31" name="NET_REVENUE" nullable="true" remarks="" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="32" name="TOTAL_TAX" nullable="true" remarks="" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="INITIATED_ONLINE" nullable="true" remarks="Whether the root registration was done online (Yes / No)." size="5" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="PROGRAM_REGISTRATIONS" numRows="0" remarks="FlexReg registrations by session date" schema="dbo" type="VIEW" viewSql="&#10;&#10;CREATE VIEW dbo.PROGRAM_REGISTRATIONS &#10;AS &#10;SELECT &#10;    src.ACTIVE_HUB_KEY,&#10;    src.REGISTRATION_ID,&#10;    src.CUSTOMER_ID,&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS CUSTOMER_NAME,&#10;    src.PROGRAM_ID,&#10;    pr2.PROGRAM_NAME,&#10;    src.SESSION_ID,&#10;    se1.SESSION_NAME,&#10;    src.SESSION_DATE_ID,&#10;    src.BEGIN_DATE_TIME,&#10;    src.END_DATE_TIME,&#10;    src.ENROLLMENTS,&#10;    src.TRIAL_CLASS_ENROLLMENTS,&#10;    src.CONTRACT_HOURS,&#10;    src.TRANSACTION_ID,&#10;    src.RECEIPT_HEADER_ID,&#10;    src.RECEIPTNUMBER,&#10;    src.TRANSACTION_DATE_TIME,&#10;    src.ORIGINAL_TRANSACTION_ID,&#10;    src.ORIGINAL_RECEIPT_HEADER_ID,&#10;    rh1.IS_ONLINE_RECEIPT,&#10;    src.WORKSTATION_ID,&#10;    ws1.WORKSTATION_NAME,&#10;    src.BEGIN_DATE_ONLY,&#10;    src.END_DATE_ONLY,&#10;    src.TRANSACTION_DATE_ONLY,&#10;    src.WAITLISTED,&#10;    src.REGISTRATION_STATUS,&#10;    src.WAITLISTED_DATE_TIME,&#10;    src.WAITLISTED_DATE_ONLY,&#10;    src.UNWAITLISTED_DATE_TIME,&#10;    src.UNWAITLISTED_DATE_ONLY,&#10;    src.REGISTERED_DATE_TIME,&#10;    src.REGISTERED_DATE_ONLY,&#10;    src.WITHDRAWN_DATE_TIME,&#10;    src.WITHDRAWN_DATE_ONLY,&#10;    src.REGISTRATION_SESSION_ID,&#10;    src.HAS_MEMBER_FEE,&#10;    src.HAS_MEMBER_DISCOUNT,&#10;    src.EXTERNAL_REGISTRATION,&#10;    src.CHECK_IN_DATE_TIME,&#10;    CAST(src.CHECK_IN_DATE_TIME AS DATE) AS CHECK_IN_DATE_ONLY,&#10;    src.CHECK_IN_SYSTEMUSER_ID,&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS CHECK_IN_SYSTEM_USER_NAME,&#10;    src.DROP_OFF_CUSTOMER_ID,&#10;    NULLIF(CONCAT(cu2.CUSTOMER_FIRST_NAME, IIF(cu2.CUSTOMER_FIRST_NAME IS NOT NULL AND cu2.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu2.CUSTOMER_LAST_NAME), '') AS DROP_OFF_CUSTOMER_NAME,&#10;    src.PARENT_LOCATION_ID,&#10;    pl1.PARENT_LOCATION_NAME,&#10;    src.CHOOSE_CUBBY,&#10;    src.CHECK_IN_SIGNATURE,&#10;    src.CHECK_IN_SOURCE_TYPE,&#10;    src.CHECK_IN_HISTORY_ID,&#10;    src.CHECK_OUT_DATE_TIME,&#10;    CAST(src.CHECK_OUT_DATE_TIME AS DATE) AS CHECK_OUT_DATE_ONLY,&#10;    src.CHECK_OUT_SYSTEMUSER_ID,&#10;    CONCAT(su2.USER_FIRST_NAME, IIF(su2.USER_FIRST_NAME IS NOT NULL AND su2.USER_LAST_NAME IS NOT NULL, ' ', ''), su2.USER_LAST_NAME) AS CHECK_OUT_SYSTEM_USER_NAME,&#10;    src.PICK_UP_CUSTOMER_ID,&#10;    NULLIF(CONCAT(cu3.CUSTOMER_FIRST_NAME, IIF(cu3.CUSTOMER_FIRST_NAME IS NOT NULL AND cu3.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu3.CUSTOMER_LAST_NAME), '') AS PICK_UP_CUSTOMER_NAME,&#10;    src.CHECK_OUT_SIGNATURE,&#10;    src.CHECK_OUT_SOURCE_TYPE,&#10;    src.CHECK_OUT_HISTORY_ID,&#10;    src.ABSENT_DATE_TIME,&#10;    CAST(src.ABSENT_DATE_TIME AS DATE) AS ABSENT_DATE_ONLY,&#10;    src.ABSENT_SYSTEMUSER_ID,&#10;    CONCAT(su3.USER_FIRST_NAME, IIF(su3.USER_FIRST_NAME IS NOT NULL AND su3.USER_LAST_NAME IS NOT NULL, ' ', ''), su3.USER_LAST_NAME) AS ABSENT_SYSTEM_USER_NAME,&#10;    src.ATTENDANCE_NOTES,&#10;    src.ORG_ID,&#10;    src.LAST_SYNC_TIME,&#10;    src.ACTIVE_HUB_PROCESS_ID,&#10;    src.REGISTRATION_ID AS source_id,&#10;    rh2.IS_ONLINE_RECEIPT AS INITIATED_ONLINE&#10;FROM &#10;    hub.PROGRAM_REGISTRATIONS src&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON (rh1.ORG_ID = src.ORG_ID AND rh1.RECEIPT_HEADER_ID = src.ORIGINAL_RECEIPT_HEADER_ID)&#10;    LEFT JOIN hub.PROGRAMS pr2 ON pr2.ORG_ID = src.ORG_ID AND pr2.PROGRAM_ID = src.PROGRAM_ID&#10;    LEFT JOIN hub.SESSIONS se1 ON se1.ORG_ID = src.ORG_ID AND se1.SESSION_ID = src.SESSION_ID&#10;    LEFT JOIN hub.PARENT_LOCATIONS pl1 ON (pl1.ORG_ID = src.ORG_ID AND pl1.PARENT_LOCATION_ID = src.PARENT_LOCATION_ID)&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#10;    LEFT JOIN hub.CUSTOMERS cu2 ON (cu2.ORG_ID = src.ORG_ID AND cu2.CUSTOMER_ID = src.DROP_OFF_CUSTOMER_ID)&#10;    LEFT JOIN hub.CUSTOMERS cu3 ON (cu3.ORG_ID = src.ORG_ID AND cu3.CUSTOMER_ID = src.PICK_UP_CUSTOMER_ID)&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.CHECK_IN_SYSTEMUSER_ID)&#10;    LEFT JOIN hub.SYSTEM_USERS su2 ON (su2.ORG_ID = src.ORG_ID AND su2.SYSTEMUSER_ID = src.CHECK_OUT_SYSTEMUSER_ID)&#10;    LEFT JOIN hub.SYSTEM_USERS su3 ON (su3.ORG_ID = src.ORG_ID AND su3.SYSTEMUSER_ID = src.ABSENT_SYSTEMUSER_ID)&#10;    -- for INTITIATED_ONLINE&#10;    LEFT OUTER JOIN hub.TRANSACTIONS tr1 ON(src.ORG_ID = tr1.ORG_ID AND src.TRANSACTION_ID = tr1.TRANSACTION_ID)&#10;    LEFT OUTER JOIN hub.TRANSACTIONS tr2 ON(tr1.ORG_ID = tr2.ORG_ID AND tr1.ROOT_TRANSACTION_ID = tr2.TRANSACTION_ID)&#10;    LEFT OUTER JOIN hub.RECEIPT_HEADERS rh2 ON (tr2.ORG_ID = rh2.ORG_ID AND rh2.RECEIPT_HEADER_ID = tr1.RECEIPT_HEADER_ID)&#10;(CONVERT([date],[BEGIN_DATE_TIME]))(CONVERT([date],[END_DATE_TIME]))(CONVERT([date],[TRANSACTION_DATE_TIME]))(CONVERT([date],[WAITLISTED_DATE_TIME]))(CONVERT([date],[UNWAITLISTED_DATE_TIME]))(CONVERT([date],[REGISTERED_DATE_TIME]))(CONVERT([date],[WITHDRAWN_DATE_TIME]))(CONVERT([bigint],[PROGRAM_ID])*(1000000)+[SESSION_ID])">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="REGISTRATION_ID" nullable="true" remarks="ID of the registration record" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="REGISTRATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_ATTENDANCE_HISTORY"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_ID" nullable="true" remarks="The customer ID of the registrant" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMER_NAME" nullable="true" remarks="The name of the registrant" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PROGRAM_ID" nullable="true" remarks="Program ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PROGRAM_NAME" nullable="true" remarks="The name of the program" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SESSION_ID" nullable="true" remarks="Session ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SESSION_NAME" nullable="true" remarks="The name of the session" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SESSION_DATE_ID" nullable="true" remarks="Session Date ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="BEGIN_DATE_TIME" nullable="true" remarks="Session start date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="END_DATE_TIME" nullable="true" remarks="Session end date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ENROLLMENTS" nullable="true" remarks="Number of enrollments" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="TRIAL_CLASS_ENROLLMENTS" nullable="true" remarks="Number of trial class enrollments" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="13" name="CONTRACT_HOURS" nullable="true" remarks="Number of contracted hours" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="TRANSACTION_ID" nullable="true" remarks="The most recent transaction ID for this program registration" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="RECEIPT_HEADER_ID" nullable="true" remarks="The most recent receipt header ID for this program registration" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="RECEIPTNUMBER" nullable="true" remarks="Receipt number" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="17" name="TRANSACTION_DATE_TIME" nullable="true" remarks="Transaction date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ORIGINAL_TRANSACTION_ID" nullable="true" remarks="The original transaction ID for this program registration" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ORIGINAL_RECEIPT_HEADER_ID" nullable="true" remarks="The original receipt header ID for this program registration" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="IS_ONLINE_RECEIPT" nullable="true" remarks="Whether the original registration was done online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="WORKSTATION_ID" nullable="true" remarks="ID of the workstation where the registration occurred" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="WORKSTATION_NAME" nullable="true" remarks="Name of the workstation where the registration occurred" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="BEGIN_DATE_ONLY" nullable="true" remarks="Session start date (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="END_DATE_ONLY" nullable="true" remarks="Session end date (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="TRANSACTION_DATE_ONLY" nullable="true" remarks="Transaction date (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="WAITLISTED" nullable="true" remarks="Whether this registration is to waitlist the customer for the session." size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="REGISTRATION_STATUS" nullable="true" remarks="The current status of this registration (Waitlisted, Unwaitlisted, Registered, Withdrawn, Inactive)." size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="28" name="WAITLISTED_DATE_TIME" nullable="true" remarks="The most recent waitlisted date and time for this registration" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="WAITLISTED_DATE_ONLY" nullable="true" remarks="The most recent waitlisted date for this registration (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="30" name="UNWAITLISTED_DATE_TIME" nullable="true" remarks="The most recent waitlist deletion date and time for this registration" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="UNWAITLISTED_DATE_ONLY" nullable="true" remarks="The most recent waitlist deletion date for this registration (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="32" name="REGISTERED_DATE_TIME" nullable="true" remarks="The most recent registration date and time for this registration" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="REGISTERED_DATE_ONLY" nullable="true" remarks="The most recent registration date for this registration (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="34" name="WITHDRAWN_DATE_TIME" nullable="true" remarks="The most recent withdrawal date and time for this registration" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="WITHDRAWN_DATE_ONLY" nullable="true" remarks="The most recent withdrawal date for this registration (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="REGISTRATION_SESSION_ID" nullable="true" remarks="Unique identifier used to link the program registration to the specific program session." size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="HAS_MEMBER_FEE" nullable="true" remarks="Whether a member-only fee was charged for this program registration (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="HAS_MEMBER_DISCOUNT" nullable="true" remarks="Whether a member-only discount was applied to this program registration (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="EXTERNAL_REGISTRATION" nullable="true" remarks="Whether the enrollment was performed externally (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="40" name="CHECK_IN_DATE_TIME" nullable="true" remarks="The check-in date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="CHECK_IN_DATE_ONLY" nullable="true" remarks="The check-in date (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="CHECK_IN_SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who performed the check-in" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="CHECK_IN_SYSTEM_USER_NAME" nullable="false" remarks="The name of the system user who performed the check-in" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="DROP_OFF_CUSTOMER_ID" nullable="true" remarks="The ID of the customer who dropped off the registrant" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="DROP_OFF_CUSTOMER_NAME" nullable="true" remarks="The name of the customer who dropped off the registrant" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="PARENT_LOCATION_ID" nullable="true" remarks="The ID of the parent's location during the session" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PARENT_LOCATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PARENT_LOCATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="PARENT_LOCATION_NAME" nullable="true" remarks="The name of the parent's location during the session" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="CHOOSE_CUBBY" nullable="true" remarks="Whether a cubby was chosen during check-in (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="CHECK_IN_SIGNATURE" nullable="true" remarks="The signature name if a signature was captured during check-in" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="CHECK_IN_SOURCE_TYPE" nullable="true" remarks="The source type of the check-in (Staff Admin / Online)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="CHECK_IN_HISTORY_ID" nullable="true" remarks="The program attendance history ID for the check-in" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_ATTENDANCE_HISTORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_ATTENDANCE_HISTORY"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="52" name="CHECK_OUT_DATE_TIME" nullable="true" remarks="The check-out date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="CHECK_OUT_DATE_ONLY" nullable="true" remarks="The check-out date (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="CHECK_OUT_SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who performed the check-out" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="CHECK_OUT_SYSTEM_USER_NAME" nullable="false" remarks="The name of the system user who performed the check-out" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="PICK_UP_CUSTOMER_ID" nullable="true" remarks="The ID of the customer who picked up the registrant" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="PICK_UP_CUSTOMER_NAME" nullable="true" remarks="The name of the customer who picked up the registrant" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="CHECK_OUT_SIGNATURE" nullable="true" remarks="The signature name if a signature was captured during check-out" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="CHECK_OUT_SOURCE_TYPE" nullable="true" remarks="The source type of the check-out (Staff Admin / Online)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="CHECK_OUT_HISTORY_ID" nullable="true" remarks="The program attendance history ID for the check-out" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_ATTENDANCE_HISTORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_ATTENDANCE_HISTORY"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="61" name="ABSENT_DATE_TIME" nullable="true" remarks="The date and time that the registrant was marked as absent" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="ABSENT_DATE_ONLY" nullable="true" remarks="The date that the registrant was marked as absent (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="ABSENT_SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who marked the registrant as absent" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="ABSENT_SYSTEM_USER_NAME" nullable="false" remarks="The name of the system user who marked the registrant as absent" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="65" name="ATTENDANCE_NOTES" nullable="true" remarks="Attendance notes entered" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="66" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="67" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="68" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="69" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="70" name="INITIATED_ONLINE" nullable="true" remarks="Whether the root registration was done online (Yes / No)." size="5" type="varchar" typeCode="12"/>
         <primaryKey column="REGISTRATION_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PROGRAM_SESSION_DATES" numRows="0" remarks="Master table showing FlexReg program session dates" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.PROGRAM_SESSION_DATES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    ACTIVE_HUB_KEY,&#13;&#10;&#9;ORG_ID,&#9;&#13;&#10;&#9;DCSESSIONDATE_ID AS PROGRAM_SESSION_DATE_ID,&#13;&#10;&#9;DCSESSION_ID AS PROGRAM_SESSION_ID,&#13;&#10;&#9;FACILITY_ID,&#13;&#10;&#9;FACILITY_SCHEDULE_ID,&#13;&#10;&#9;NUMBERREGISTERED,&#13;&#10;&#9;PENDINGREGISTRATIONS,&#13;&#10;&#9;NUMBERWAITLISTS,&#13;&#10;&#9;CANCELED_DATE,&#13;&#10;&#9;AVAILABLE_FOR_TRIAL,&#13;&#10;&#9;NUMBER_TRIAL_CLASS_REGISTERED,&#13;&#10;&#9;CLOSED_DATE,&#13;&#10;&#9;OVERRIDE_ENROLL_MIN,&#13;&#10;&#9;OVERRIDE_ENROLL_MAX,&#13;&#10;&#9;DELETED,&#9;&#13;&#10;&#9;LAST_SYNC_TIME,&#13;&#10;&#9;ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM &#13;&#10;    hub.DCSESSIONDATES&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PROGRAM_SESSION_DATE_ID" nullable="false" remarks="The dcsessiondate ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PROGRAM_SESSION_ID" nullable="true" remarks="The dcsession ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="FACILITY_ID" nullable="true" remarks="The ID of the parent facility" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="FACILITY_SCHEDULE_ID" nullable="true" remarks="The facility schedule ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="NUMBERREGISTERED" nullable="true" remarks="The number registered for the session date" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="PENDINGREGISTRATIONS" nullable="true" remarks="The pending registrations for the session date" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="NUMBERWAITLISTS" nullable="true" remarks="The current number of people waitlisted for this session date" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CANCELED_DATE" nullable="true" remarks="The canceled date for the session date" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="AVAILABLE_FOR_TRIAL" nullable="true" remarks="The available for trial for the session date" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="NUMBER_TRIAL_CLASS_REGISTERED" nullable="true" remarks="The number trial class registered for the session date" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CLOSED_DATE" nullable="true" remarks="The closed date for the session date" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="OVERRIDE_ENROLL_MIN" nullable="true" remarks="The override enroll min for the session date" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="OVERRIDE_ENROLL_MAX" nullable="true" remarks="The override enroll max for the session date" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="DELETED" nullable="true" remarks="Whether the session date has been marked as deleted (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="PROGRAM_SESSIONS" numRows="0" remarks="Master table showing FlexReg program sessions" schema="dbo" type="VIEW" viewSql="&#10;CREATE VIEW dbo.PROGRAM_SESSIONS &#10;AS &#10;SELECT &#10;    ps1.ACTIVE_HUB_KEY,&#10;    ps1.PROGRAM_SESSION_ID,&#10;    ps1.PROGRAM_ID,&#10;    pr1.PROGRAM_NAME,&#10;    ps1.SESSION_ID,&#10;    se1.SESSION_NAME,&#10;    ps1.SESSION_ORDER_NUMBER,&#10;    se1.DESCRIPTION,&#10;    pr1.PROGRAM_TYPE_ID,&#10;    pt1.PROGRAM_TYPE_NAME AS PROGRAM_TYPE,&#10;    se1.SITE_ID,&#10;    si1.SITE_NAME,&#10;    se1.FACILITY_ID,&#10;    fa1.FACILITY_NAME,&#10;    se1.RESERVE_FACILITIES,&#10;    se1.ENROLLMIN,&#10;    se1.ENROLLMAX,&#10;    se1.ALLOW_ONLINE_REGISTRATION,&#10;    se1.MIN_CLASSES_ENROLLED_ONLINE,&#10;    se1.MAX_CLASSES_ENROLLED_ONLINE,&#10;    se1.TRIAL_CLASS_CAPACITY,&#10;    se1.BEGIN_DATE_TIME,&#10;    se1.END_DATE_TIME,&#10;    se1.BEGIN_DATE_ONLY,&#10;    se1.END_DATE_ONLY,&#10;    (CASE WHEN SUBSTRING(se1.WEEKDAYS, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS SUNDAY,&#10;    (CASE WHEN SUBSTRING(se1.WEEKDAYS, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONDAY,&#10;    (CASE WHEN SUBSTRING(se1.WEEKDAYS, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS TUESDAY,&#10;    (CASE WHEN SUBSTRING(se1.WEEKDAYS, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEDNESDAY,&#10;    (CASE WHEN SUBSTRING(se1.WEEKDAYS, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS THURSDAY,&#10;    (CASE WHEN SUBSTRING(se1.WEEKDAYS, 6, 1) = 1 THEN 'Yes' ELSE 'No' END) AS FRIDAY,&#10;    (CASE WHEN SUBSTRING(se1.WEEKDAYS, 7, 1) = 1 THEN 'Yes' ELSE 'No' END) AS SATURDAY,&#10;    (CASE WHEN SUBSTRING(se1.WEEKS_OF_MONTH, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_1,&#10;    (CASE WHEN SUBSTRING(se1.WEEKS_OF_MONTH, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_2,&#10;    (CASE WHEN SUBSTRING(se1.WEEKS_OF_MONTH, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_3,&#10;    (CASE WHEN SUBSTRING(se1.WEEKS_OF_MONTH, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_4,&#10;    (CASE WHEN SUBSTRING(se1.WEEKS_OF_MONTH, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_5,&#10;    pr1.RETIRED,&#10;    se1.MAX_FILLRATE,&#10;    se1.AVG_FILLRATE,&#10;    ps1.TOTAL_ENROLLMENTS,&#10;    ps1.TOTAL_ENROLLED_PARTICIPANTS,&#10;    ps1.TOTAL_WAITLISTS,&#10;    ps1.TOTAL_WAITLISTED_PARTICIPANTS,&#10;    ((CAST(ps1.PROGRAM_ID AS BIGINT) * 1000000) + ps1.SESSION_ID) AS REGISTRATION_SESSION_ID,&#10;    pr1.LAST_SYNC_TIME,&#10;    pr1.ACTIVE_HUB_PROCESS_ID,&#10;    pr1.ORG_ID,&#10;    ps1.PROGRAM_SESSION_ID AS source_id, &#10;    pr1.PROGRAM_STATUS_DESC&#10;FROM&#10;    hub.PROGRAM_SESSIONS ps1&#10;    JOIN hub.PROGRAMS pr1 ON (pr1.ORG_ID = ps1.ORG_ID AND pr1.PROGRAM_ID = ps1.PROGRAM_ID)&#10;    JOIN hub.SESSIONS se1 ON (se1.ORG_ID = ps1.ORG_ID AND se1.SESSION_ID = ps1.SESSION_ID)&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = ps1.ORG_ID AND si1.SITE_ID = se1.SITE_ID)&#10;    LEFT JOIN hub.FACILITIES fa1 ON (fa1.ORG_ID = ps1.ORG_ID AND se1.FACILITY_ID = fa1.FACILITY_ID)&#10;    LEFT JOIN hub.PROGRAM_TYPES pt1 ON (pt1.ORG_ID = ps1.ORG_ID AND pt1.PROGRAM_TYPE_ID = pr1.PROGRAM_TYPE_ID);&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PROGRAM_SESSION_ID" nullable="true" remarks="Program / Session linking ID." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PROGRAM_ID" nullable="true" remarks="ID of the program that the session belongs to." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PROGRAM_NAME" nullable="true" remarks="Name of the program that the session belongs to." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SESSION_ID" nullable="true" remarks="Session ID." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SESSION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SESSIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SESSION_NAME" nullable="true" remarks="Name of the session." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SESSION_ORDER_NUMBER" nullable="true" remarks="The display order that this session should be displayed within this program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="DESCRIPTION" nullable="true" remarks="Description of the session" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="PROGRAM_TYPE_ID" nullable="true" remarks="The program type ID of the session" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="PROGRAM_TYPE" nullable="true" remarks="The program type of the session" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="SITE_ID" nullable="true" remarks="The site ID that the session belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="SITE_NAME" nullable="true" remarks="The site name that the session belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="FACILITY_ID" nullable="true" remarks="ID of the facility that the session takes place in." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="FACILITY_NAME" nullable="true" remarks="Name of the facility that the session takes place in." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="RESERVE_FACILITIES" nullable="true" remarks="Whether facilities should be reserved for the generated session dates (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ENROLLMIN" nullable="true" remarks="Minimum enrollment for the session." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ENROLLMAX" nullable="true" remarks="Maximum enrollment for the session." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ALLOW_ONLINE_REGISTRATION" nullable="true" remarks="Whether online registration is allowed for this session (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="MIN_CLASSES_ENROLLED_ONLINE" nullable="true" remarks="The minimum number of dates that may be enrolled in when enrolling online" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="MAX_CLASSES_ENROLLED_ONLINE" nullable="true" remarks="The maximum number of dates that may be enrolled in when enrolling online" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="TRIAL_CLASS_CAPACITY" nullable="true" remarks="The maximum number of trial class enrollments allowed for this session" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="21" name="BEGIN_DATE_TIME" nullable="true" remarks="Starting date and time of the session." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="22" name="END_DATE_TIME" nullable="true" remarks="Ending date and time of the session." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="BEGIN_DATE_ONLY" nullable="true" remarks="Starting date of the session. (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="END_DATE_ONLY" nullable="true" remarks="Ending date of the session. (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="SUNDAY" nullable="false" remarks="Whether the session is configured for Sundays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="MONDAY" nullable="false" remarks="Whether the session is configured for Mondays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="TUESDAY" nullable="false" remarks="Whether the session is configured for Tuesdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="WEDNESDAY" nullable="false" remarks="Whether the session is configured for Wednesdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="THURSDAY" nullable="false" remarks="Whether the session is configured for Thursdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="FRIDAY" nullable="false" remarks="Whether the session is configured for Fridays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="SATURDAY" nullable="false" remarks="Whether the session is configured for Saturdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="WEEK_OF_MONTH_1" nullable="false" remarks="Whether the session is configured for days during the first week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="WEEK_OF_MONTH_2" nullable="false" remarks="Whether the session is configured for days during the second week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="WEEK_OF_MONTH_3" nullable="false" remarks="Whether the session is configured for days during the third week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="WEEK_OF_MONTH_4" nullable="false" remarks="Whether the session is configured for days during the fourth week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="WEEK_OF_MONTH_5" nullable="false" remarks="Whether the session is configured for days during the last week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="RETIRED" nullable="true" remarks="Whether the session has been retired (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="MAX_FILLRATE" nullable="true" remarks="The maximum Fill Rate of all session dates within the session" size="8" type="float" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="AVG_FILLRATE" nullable="true" remarks="The average Fill Rate of all session dates within the session" size="8" type="float" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="TOTAL_ENROLLMENTS" nullable="true" remarks="The total number of session time slot enrollments for the program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="TOTAL_ENROLLED_PARTICIPANTS" nullable="true" remarks="The total number of participants enrolled for any session in the program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="TOTAL_WAITLISTS" nullable="true" remarks="The total number of session time slots waitlists for the program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="TOTAL_WAITLISTED_PARTICIPANTS" nullable="true" remarks="The total number of participants waitlisted for any session in the program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="REGISTRATION_SESSION_ID" nullable="true" remarks="Unique identifier used to link the program registration to the specific program session." size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="45" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="PROGRAM_STATUS_DESC" nullable="true" remarks="The current status of the program name." size="255" type="varchar" typeCode="12"/>
         <primaryKey column="PROGRAM_SESSION_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PROGRAM_TYPES" numRows="0" remarks="Your organization's defined program types" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.PROGRAM_TYPES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.PROGRAM_TYPE_ID,&#13;&#10;    src.PROGRAM_TYPE_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.PROGRAM_TYPES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PROGRAM_TYPE_ID" nullable="false" remarks="The program type ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="PROGRAM_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PROGRAM_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
            <child catalog="ActiveHub" column="PROGRAM_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SESSIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PROGRAM_TYPE_NAME" nullable="true" remarks="The program type name" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="2" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PROGRAM_TYPE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="PROGRAM_WISHLISTS" numRows="0" remarks="The record of a customer's expressed interest in following the availability of a program" schema="dbo" type="VIEW" viewSql="--KitManagerFileID=20283&#13;&#10;--FileName=dbo.PROGRAM_WISHLISTS.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.PROGRAM_WISHLISTS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    wi1.WISHLIST_ID,&#13;&#10;    wi1.WISHLIST_PARTICIPANT_ID,&#13;&#10;    wi1.CUSTOMER_ID,&#13;&#10;    wi1.PARTICIPANT_CUSTOMER_ID,&#13;&#10;    wi1.PROGRAM_ID,&#13;&#10;    wi1.DATESTAMP,&#13;&#10;    wi1.DATESTAMP_DATE_ONLY,&#13;&#10;    wi1.ENROLLED,&#13;&#10;    wi1.ENROLLMENT_DATE&#13;&#10;FROM&#13;&#10;    hub.WISHLISTS wi1&#13;&#10;WHERE&#13;&#10;    wi1.PROGRAM_ID IS NOT NULL;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="WISHLIST_ID" nullable="true" remarks="Wish list ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="WISHLIST_PARTICIPANT_ID" nullable="true" remarks="Wish list participant ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_ID" nullable="true" remarks="Wish list customer ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PARTICIPANT_CUSTOMER_ID" nullable="true" remarks="Wish list participant customer ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PROGRAM_ID" nullable="true" remarks="The program ID that the customer is wish listed for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="DATESTAMP" nullable="true" remarks="The date and time that the wish list entry was created or updated" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="DATESTAMP_DATE_ONLY" nullable="true" remarks="The date that the wish list entry was created or updated" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ENROLLED" nullable="true" remarks="Whether the customer has been enrolled into the wish listed activity or program" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ENROLLMENT_DATE" nullable="true" remarks="The date that the customer was last enrolled into the wish listed activity or program" size="20" type="date" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="PROGRAMS" numRows="0" remarks="Master table showing FlexReg programs" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.PROGRAMS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.PROGRAM_ID,&#13;&#10;    src.PROGRAM_NAME,&#13;&#10;    src.PROGRAM_TYPE_ID,&#13;&#10;    pt1.PROGRAM_TYPE_NAME AS PROGRAM_TYPE,&#13;&#10;    src.CATEGORY_ID,&#13;&#10;    acat.ACTIVITY_CATEGORY_NAME AS CATEGORY_NAME,&#13;&#10;    src.SUB_CATEGORY_ID,&#13;&#10;    ascat.ACTIVITY_SUB_CATEGORY_NAME AS SUBCATEGORY_NAME,&#13;&#10;    src.ACTIVITY_DEPARTMENT_ID,&#13;&#10;    adep.ACTIVITY_DEPARTMENT_NAME AS DEPARTMENT_NAME,&#13;&#10;    src.SEASON_ID,&#13;&#10;    se1.SEASON_NAME,&#13;&#10;    src.CHILD_SEASON_ID,&#13;&#10;    cs1.CHILD_SEASON_NAME,&#13;&#10;    src.AGESMIN,&#13;&#10;    src.AGESMINMONTH,&#13;&#10;    src.AGESMAX,&#13;&#10;    src.AGESMAXMONTH,&#13;&#10;    src.GENDER_INDEX,&#13;&#10;    ge1.GENDER_NAME AS GENDER,&#13;&#10;    src.CATALOGNUMBER,&#13;&#10;    src.AGECALCDATE,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.MODIFIED_DATE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.RETIRED,&#13;&#10;    src.PROGRAMSTATUS_ID,&#13;&#10;    src.PROGRAM_STATUS_DESC,&#13;&#10;    src.MODIFIED_DATE_ONLY,&#13;&#10;    src.TOTAL_ENROLLMENTS,&#13;&#10;    src.TOTAL_ENROLLED_PARTICIPANTS,&#13;&#10;    src.TOTAL_WAITLISTS,&#13;&#10;    src.TOTAL_WAITLISTED_PARTICIPANTS,&#13;&#10;    src.SUPERVISOR_ID,&#13;&#10;    CONCAT(cu2.CUSTOMER_FIRST_NAME, IIF(cu2.CUSTOMER_FIRST_NAME IS NOT NULL AND cu2.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu2.CUSTOMER_LAST_NAME) AS SUPERVISOR_NAME,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.MAX_FILLRATE,&#13;&#10;    src.AVG_FILLRATE,&#13;&#10;    src.DESCRIPTION,&#13;&#10;    src.HIDE_ON_INTERNET,&#13;&#10;    src.HAS_WAITLIST,&#13;&#10;    src.ALLOW_INDIVIDUAL_SESSION_SELECTION,&#13;&#10;    src.ONLINE_SESSION_SELECTION,&#13;&#10;    src.RESERVATION_UNIT,&#13;&#10;    src.DEFAULT_PAYMENT_CYCLE,&#13;&#10;    src.DUE_DATE_LEAD_TIME_DAYS,&#13;&#10;    src.UP_FRONT_CYCLES_TO_COLLECT,&#13;&#10;    src.AUTO_CHARGE_CREDIT_CARD,&#13;&#10;    src.IN_PERSON_REGISTRATION_DATE_TIME,&#13;&#10;    CAST(src.IN_PERSON_REGISTRATION_DATE_TIME AS DATE) AS IN_PERSON_REGISTRATION_DATE_ONLY,&#13;&#10;    src.NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_TIME,&#13;&#10;    CAST(src.NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_TIME AS DATE) AS NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_ONLY,&#13;&#10;    src.MEMBER_IN_PERSON_REGISTRATION_DATE_TIME,&#13;&#10;    CAST(src.MEMBER_IN_PERSON_REGISTRATION_DATE_TIME AS DATE) AS MEMBER_IN_PERSON_REGISTRATION_DATE_ONLY,&#13;&#10;    src.IN_PERSON_REGISTRATION_END_DATE_TIME,&#13;&#10;    CAST(src.IN_PERSON_REGISTRATION_END_DATE_TIME AS DATE) AS IN_PERSON_REGISTRATION_END_DATE_ONLY,&#13;&#10;    src.INTERNET_DISPLAY_DATE_TIME,&#13;&#10;    CAST(src.INTERNET_DISPLAY_DATE_TIME AS DATE) AS INTERNET_DISPLAY_DATE_ONLY,&#13;&#10;    src.INTERNET_REGISTRATION_DATE_TIME,&#13;&#10;    CAST(src.INTERNET_REGISTRATION_DATE_TIME AS DATE) AS INTERNET_REGISTRATION_DATE_ONLY,&#13;&#10;    src.NON_RESIDENT_INTERNET_REGISTRATION_DATE_TIME,&#13;&#10;    CAST(src.NON_RESIDENT_INTERNET_REGISTRATION_DATE_TIME AS DATE) AS NON_RESIDENT_INTERNET_REGISTRATION_DATE_ONLY,&#13;&#10;    src.MEMBER_INTERNET_REGISTRATION_DATE_TIME,&#13;&#10;    CAST(src.MEMBER_INTERNET_REGISTRATION_DATE_TIME AS DATE) AS MEMBER_INTERNET_REGISTRATION_DATE_ONLY,&#13;&#10;    src.INTERNET_REGISTRATION_END_DATE_TIME,&#13;&#10;    CAST(src.INTERNET_REGISTRATION_END_DATE_TIME AS DATE) AS INTERNET_REGISTRATION_END_DATE_ONLY,&#13;&#10;    src.TAX_RECEIPT_ELIGIBLE,&#13;&#10;    src.SHOW_PRICE_INFO_ONLINE,&#13;&#10;    src.SHOW_DISCOUNT_ONLINE,&#13;&#10;    src.SHOW_SCHOLARSHIP_ONLINE,&#13;&#10;    src.ALLOW_THIRD_PARTY_BILLING,&#13;&#10;    src.REQUIRE_AUTHORIZED_PICKUPS,&#13;&#10;    src.FIRST_SESSION_BEGIN_DATE_TIME,&#13;&#10;    CAST(src.FIRST_SESSION_BEGIN_DATE_TIME AS DATE) AS FIRST_SESSION_BEGIN_DATE_ONLY,&#13;&#10;    src.ONLINE_URL,&#13;&#10;    src.PROGRAM_ID AS source_id,&#13;&#10;&#9;src.CANCELLATION_REASON_ID,&#13;&#10;&#9;src.CANCELLATION_REASON_TEXT,&#13;&#10;&#9;src.CANCELLATION_REASON_DATE&#9;&#13;&#10;FROM&#13;&#10;    hub.PROGRAMS src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.SUPERVISORS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SUPERVISOR_ID = src.SUPERVISOR_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu2 ON (cu2.ORG_ID = src.ORG_ID AND cu2.CUSTOMER_ID = su1.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.PROGRAM_TYPES pt1 ON (pt1.ORG_ID = src.ORG_ID AND pt1.PROGRAM_TYPE_ID = src.PROGRAM_TYPE_ID)&#13;&#10;    LEFT JOIN hub.SEASONS se1 ON (se1.ORG_ID = src.ORG_ID AND se1.SEASON_ID = src.SEASON_ID)&#13;&#10;    LEFT JOIN hub.CHILD_SEASONS cs1 ON (cs1.ORG_ID = src.ORG_ID AND cs1.CHILD_SEASON_ID = src.CHILD_SEASON_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_CATEGORIES acat ON (acat.ORG_ID = src.ORG_ID AND acat.ACTIVITY_CATEGORY_ID = src.CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_SUB_CATEGORIES ascat ON (ascat.ORG_ID = src.ORG_ID AND ascat.ACTIVITY_SUB_CATEGORY_ID = src.SUB_CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_DEPARTMENTS adep ON (adep.ORG_ID = src.ORG_ID AND adep.ACTIVITY_DEPARTMENT_ID = src.ACTIVITY_DEPARTMENT_ID)&#13;&#10;    LEFT JOIN hub.GENDERS ge1 ON (ge1.ORG_ID = src.ORG_ID AND ge1.GENDER_INDEX = src.GENDER_INDEX);&#13;&#10;(CONVERT([date],[MODIFIED_DATE]))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="ACTIVITY_CATEGORY_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="ACTIVITY_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PROGRAM_ID" nullable="true" remarks="Program ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="INTEREST_LISTS"/>
            <child catalog="ActiveHub" column="PREREQUISITE_PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PREREQUISITES"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PREREQUISITES"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_FEES"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_SESSIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WISHLISTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PROGRAM_NAME" nullable="true" remarks="Program name. All programs whose names fully or partially match the specified name are returned." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PROGRAM_TYPE_ID" nullable="true" remarks="The program type ID of the program." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PROGRAM_TYPE" nullable="true" remarks="The program type of the program." size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CATEGORY_ID" nullable="true" remarks="The category ID of the program." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CATEGORY_NAME" nullable="true" remarks="The category of the program." size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SUB_CATEGORY_ID" nullable="true" remarks="The other category ID of the program." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_SUB_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_SUB_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SUBCATEGORY_NAME" nullable="true" remarks="The other category of the program." size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVITY_DEPARTMENT_ID" nullable="true" remarks="The department ID of the program." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="DEPARTMENT_NAME" nullable="true" remarks="The department of the program." size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="SEASON_ID" nullable="true" remarks="The parent season ID of the program." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="SEASON_NAME" nullable="true" remarks="The parent season of the program." size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="CHILD_SEASON_ID" nullable="true" remarks="The child season ID of the program." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHILD_SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHILD_SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="CHILD_SEASON_NAME" nullable="true" remarks="The child season of the program." size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="AGESMIN" nullable="true" remarks="Programs whose age ranges are fully or partially within the specified range are returned." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="AGESMINMONTH" nullable="true" remarks="Minimum participant age (month) of the program." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="AGESMAX" nullable="true" remarks="Programs whose age ranges are fully or partially within the specified range are returned." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="AGESMAXMONTH" nullable="true" remarks="Maximum participant age (month) of the program." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="GENDER_INDEX" nullable="true" remarks="The gender ID of the program" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GENDERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="GENDER" nullable="true" remarks="The gender restriction of the program" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="CATALOGNUMBER" nullable="true" remarks="Program number. All programs whose program numbers fully or partially match the specified program number are returned." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="22" name="AGECALCDATE" nullable="true" remarks="The start date for calculating participant age." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="SITE_ID" nullable="true" remarks="The site IDs assigned to the program. You can specify up to 5 sites, with each site separated by a comma." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="SITE_NAME" nullable="true" remarks="The site Names assigned to the program. You can specify up to 5 sites, with each site separated by a comma." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="25" name="MODIFIED_DATE" nullable="true" remarks="The date and time the program was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="26" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="RETIRED" nullable="true" remarks="Whether the program has been retired (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="PROGRAMSTATUS_ID" nullable="true" remarks="The status ID of the program (0 = Open, 1 = Closed, 2 = Tentative, 3 = On Hold, 4 = Retired)." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="PROGRAM_STATUS_DESC" nullable="true" remarks="The current status of the program name." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="MODIFIED_DATE_ONLY" nullable="true" remarks="The date the program was last modified (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="TOTAL_ENROLLMENTS" nullable="true" remarks="The total number of session time slot enrollments for the program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="TOTAL_ENROLLED_PARTICIPANTS" nullable="true" remarks="The total number of participants enrolled for any session in the program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="TOTAL_WAITLISTS" nullable="true" remarks="The total number of session time slots waitlists for the program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="TOTAL_WAITLISTED_PARTICIPANTS" nullable="true" remarks="The total number of participants waitlisted for any session in the program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="SUPERVISOR_ID" nullable="true" remarks="ID OF THE PROGRAM SUPERVISOR" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SUPERVISOR_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SUPERVISORS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="SUPERVISOR_NAME" nullable="false" remarks="NAME OF THE PROGRAM SUPERVISOR. FORMAT: &lt;FIRSTNAME&gt; &lt;LASTNAME&gt;" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="MAX_FILLRATE" nullable="true" remarks="The maximum Fill Rate of all session dates within the program" size="8" type="float" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="AVG_FILLRATE" nullable="true" remarks="The average Fill Rate of all session dates within the program" size="8" type="float" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="DESCRIPTION" nullable="true" remarks="Description of the program" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="HIDE_ON_INTERNET" nullable="true" remarks="Whether this program should be hidden from online display (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="HAS_WAITLIST" nullable="true" remarks="Whether this program has a waitlist (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="ALLOW_INDIVIDUAL_SESSION_SELECTION" nullable="true" remarks="Whether this program allows individual sessions to be selected during registration (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="ONLINE_SESSION_SELECTION" nullable="true" remarks="How sessions for this program should be displayed online (Calendar / Session List)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="RESERVATION_UNIT" nullable="true" remarks="The time units that should be selectable during registration (Same as Billing Unit / Daily / Weekly / Monthly / No Choices)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="DEFAULT_PAYMENT_CYCLE" nullable="true" remarks="How payment plans should be billed for this program (No Automatic Plans / Weekly / Every Other Week / Twice a Month / Monthly / Quarterly / Every Four Weeks / Per Session)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="DUE_DATE_LEAD_TIME_DAYS" nullable="true" remarks="The number of days prior to each payment cycle that payment should be due" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="UP_FRONT_CYCLES_TO_COLLECT" nullable="true" remarks="The number of payment cycles that should be immediately due during registration" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="AUTO_CHARGE_CREDIT_CARD" nullable="true" remarks="Whether the saved credit card should be automatically charged when payments become due" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="51" name="IN_PERSON_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for in-person enrollments" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="IN_PERSON_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for in-person enrollments" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="53" name="NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for in-person enrollments for non-residents" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for in-person enrollments for non-residents" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="55" name="MEMBER_IN_PERSON_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for in-person enrollments for members" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="MEMBER_IN_PERSON_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for in-person enrollments for members" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="57" name="IN_PERSON_REGISTRATION_END_DATE_TIME" nullable="true" remarks="The date and time that registration ends for in-person enrollments" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="IN_PERSON_REGISTRATION_END_DATE_ONLY" nullable="true" remarks="The date that registration ends for in-person enrollments" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="59" name="INTERNET_DISPLAY_DATE_TIME" nullable="true" remarks="The date and time that this program should first appear online" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="INTERNET_DISPLAY_DATE_ONLY" nullable="true" remarks="The date that this program should first appear online" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="61" name="INTERNET_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for online enrollments" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="INTERNET_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for online enrollments" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="63" name="NON_RESIDENT_INTERNET_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for online enrollments for non-residents" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="NON_RESIDENT_INTERNET_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for online enrollments for non-residents" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="65" name="MEMBER_INTERNET_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for online enrollments for members" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="66" name="MEMBER_INTERNET_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for online enrollments for members" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="67" name="INTERNET_REGISTRATION_END_DATE_TIME" nullable="true" remarks="The date and time that registration ends for online enrollments" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="68" name="INTERNET_REGISTRATION_END_DATE_ONLY" nullable="true" remarks="The date that registration ends for online enrollments" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="69" name="TAX_RECEIPT_ELIGIBLE" nullable="true" remarks="Whether this program is eligible for tax receipts (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="70" name="SHOW_PRICE_INFO_ONLINE" nullable="true" remarks="Whether price info for this program should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="71" name="SHOW_DISCOUNT_ONLINE" nullable="true" remarks="Whether discount info for this program should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="72" name="SHOW_SCHOLARSHIP_ONLINE" nullable="true" remarks="Whether scholarship info for this program should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="73" name="ALLOW_THIRD_PARTY_BILLING" nullable="true" remarks="Whether third-party billing should be available for this program (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="74" name="REQUIRE_AUTHORIZED_PICKUPS" nullable="true" remarks="Whether this program requires entry of authorized pickups during enrollment (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="75" name="FIRST_SESSION_BEGIN_DATE_TIME" nullable="true" remarks="The starting date and time of the earliest session for this program" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="76" name="FIRST_SESSION_BEGIN_DATE_ONLY" nullable="true" remarks="The starting date of the earliest session for this program" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="77" name="ONLINE_URL" nullable="true" remarks="The online landing page for this program" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="78" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="79" name="CANCELLATION_REASON_ID" nullable="true" remarks="DC Program cancellation reason ID, from Reasons table." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="80" name="CANCELLATION_REASON_TEXT" nullable="true" remarks="DC Program cancellation reason text, from Reasons table." size="4000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="81" name="CANCELLATION_REASON_DATE" nullable="true" remarks="DC Program cancellation date." size="16" type="datetime" typeCode="93"/>
         <primaryKey column="PROGRAM_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="RANKING_SYSTEMS" numRows="0" remarks="Your organization's defined ranking systems for league and tournament standings" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.RANKING_SYSTEMS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.RANKING_SYSTEM_ID,&#13;&#10;    src.RANKING_SYSTEM_NAME,&#13;&#10;    src.RANKING_SYSTEM_DESCRIPTION,&#13;&#10;    src.RANKING_SYSTEM_TYPE,&#13;&#10;    src.POINTS_FOR_WIN,&#13;&#10;    src.POINTS_FOR_TIE,&#13;&#10;    src.POINTS_FOR_LOSS,&#13;&#10;    src.GAMES_PLAYED_HEADING,&#13;&#10;    src.WINS_HEADING,&#13;&#10;    src.LOSSES_HEADING,&#13;&#10;    src.TIES_HEADING,&#13;&#10;    src.WIN_PERCENTAGE_HEADING,&#13;&#10;    src.POINTS_HEADING,&#13;&#10;    src.GAME_WINS_HEADING,&#13;&#10;    src.GAME_LOSSES_HEADING,&#13;&#10;    src.TOTAL_SCORE_FOR_HEADING,&#13;&#10;    src.TOTAL_SCORE_AGAINST_HEADING,&#13;&#10;    src.SCORE_DIFFERENTIAL_HEADING,&#13;&#10;    src.GAMES_BEHIND_HEADING,&#13;&#10;    src.SHOW_GAMES_PLAYED,&#13;&#10;    src.SHOW_WINS,&#13;&#10;    src.SHOW_LOSSES,&#13;&#10;    src.SHOW_TIES,&#13;&#10;    src.SHOW_WIN_PERCENTAGE,&#13;&#10;    src.SHOW_POINTS,&#13;&#10;    src.SHOW_GAME_WINS,&#13;&#10;    src.SHOW_GAME_LOSSES,&#13;&#10;    src.SHOW_TOTAL_SCORE_FOR,&#13;&#10;    src.SHOW_TOTAL_SCORE_AGAINST,&#13;&#10;    src.SHOW_SCORE_DIFFERENTIAL,&#13;&#10;    src.SHOW_GAMES_BEHIND,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.RANKING_SYSTEMS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="RANKING_SYSTEM_ID" nullable="false" remarks="The ranking system ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="RANKING_SYSTEM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="RANKING_SYSTEM_NAME" nullable="true" remarks="The ranking system name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="RANKING_SYSTEM_DESCRIPTION" nullable="true" remarks="The ranking system description" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="RANKING_SYSTEM_TYPE" nullable="true" remarks="The type of ranking system to base this system upon (Win Loss Percentage Normal / Game Ranking Points / Match Win Loss Percentage / Match Ranking Points / Scores As Games Percentage / Scores As Games Points)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="POINTS_FOR_WIN" nullable="true" remarks="The number of points to be awarded for a win" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="POINTS_FOR_TIE" nullable="true" remarks="The number of points to be awarded for a tie" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="POINTS_FOR_LOSS" nullable="true" remarks="The number of points to be awarded for a loss" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="GAMES_PLAYED_HEADING" nullable="true" remarks="The column heading to be displayed on the standings page for the number of games played" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="WINS_HEADING" nullable="true" remarks="The column heading to be displayed on the standings page for the number of wins" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="LOSSES_HEADING" nullable="true" remarks="The column heading to be displayed on the standings page for the number of losses" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="TIES_HEADING" nullable="true" remarks="The column heading to be displayed on the standings page for the number of ties" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="WIN_PERCENTAGE_HEADING" nullable="true" remarks="The column heading to be displayed on the standings page for the win percentage" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="POINTS_HEADING" nullable="true" remarks="The column heading to be displayed on the standings page for the number of points" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="GAME_WINS_HEADING" nullable="true" remarks="The column heading to be displayed on the standings page for the number of games won in match play" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="GAME_LOSSES_HEADING" nullable="true" remarks="The column heading to be displayed on the standings page for the number of games lost in match play" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="TOTAL_SCORE_FOR_HEADING" nullable="true" remarks="The column heading to be displayed on the standings page for the total of scores for" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="TOTAL_SCORE_AGAINST_HEADING" nullable="true" remarks="The column heading to be displayed on the standings page for the total of scores against" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="SCORE_DIFFERENTIAL_HEADING" nullable="true" remarks="The column heading to be displayed on the standings page for the total score differential" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="GAMES_BEHIND_HEADING" nullable="true" remarks="The column heading to be displayed on the standings page for the number of games behind the leader" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="SHOW_GAMES_PLAYED" nullable="true" remarks="Whether the number of games played column should be displayed on the standings page (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="SHOW_WINS" nullable="true" remarks="Whether the number of wins column should be displayed on the standings page (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="SHOW_LOSSES" nullable="true" remarks="Whether the number of losses column should be displayed on the standings page (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="SHOW_TIES" nullable="true" remarks="Whether the number of ties column should be displayed on the standings page (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="SHOW_WIN_PERCENTAGE" nullable="true" remarks="Whether the win percentage column should be displayed on the standings page (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="SHOW_POINTS" nullable="true" remarks="Whether the number of points column should be displayed on the standings page (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="SHOW_GAME_WINS" nullable="true" remarks="Whether the number of games won in match play column should be displayed on the standings page (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="SHOW_GAME_LOSSES" nullable="true" remarks="Whether the number of games lost in match play column should be displayed on the standings page (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="SHOW_TOTAL_SCORE_FOR" nullable="true" remarks="Whether the total of scores for column should be displayed on the standings page (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="SHOW_TOTAL_SCORE_AGAINST" nullable="true" remarks="Whether the total of scores against column should be displayed on the standings page (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="SHOW_SCORE_DIFFERENTIAL" nullable="true" remarks="Whether the score differential column should be displayed on the standings page (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="SHOW_GAMES_BEHIND" nullable="true" remarks="Whether the number of games behind the leader column should be displayed on the standings page (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="31" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="RANKING_SYSTEM_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="REASONS" numRows="0" remarks="Your organization's defined reasons, used for withdrawals, cancellations, suspensions, etc." schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21484&#13;&#10;--FileName=dbo.REASONS.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.REASONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.REASON_ID,&#13;&#10;    src.DESCRIPTION,&#13;&#10;    src.ALLOW_FOR_DAYCARE_ABSENT,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.REASONS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="REASON_ID" nullable="true" remarks="Reason ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CANCELLATION_REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="SUSPENDED_REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="CANCEL_AUTO_RENEWAL_REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="CANCELLATION_REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="SCHEDULED_AUTOMATIC_CANCELLATION_REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="SCHEDULED_CANCELLATION_REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="SUSPENDED_REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="CANCEL_REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="DESCRIPTION" nullable="true" remarks="Reason description" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ALLOW_FOR_DAYCARE_ABSENT" nullable="true" remarks="Whether the reason can be used for daycare absences (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="REASON_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="RECEIPT_DETAIL_PAYMENTS" numRows="0" remarks="Contains the payment distribution to each receipt detail item that it is applied to" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.RECEIPT_DETAIL_PAYMENTS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.RECEIPT_DETAIL_PAYMENT_ID,&#13;&#10;    src.RECEIPT_PAYMENT_ID,&#13;&#10;    src.RECEIPT_DETAIL_ID,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.AMOUNT,&#13;&#10;    src.IS_MULTI_GL,&#13;&#10;    src.IS_EXPORTED,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.RECEIPT_DETAIL_PAYMENT_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.RECEIPT_DETAIL_PAYMENTS src&#13;&#10;&#9;INNER JOIN hub.RECEIPT_DETAILS rd ON (src.ORG_ID = rd.ORG_ID AND src.RECEIPT_DETAIL_ID = rd.RECEIPT_DETAIL_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.ORG_ID = src.ORG_ID AND gl1.GLACCOUNT_ID = src.GLACCOUNT_ID)&#13;&#10;&#9;WHERE rd.VOIDED = 0;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="RECEIPT_DETAIL_PAYMENT_ID" nullable="true" remarks="The receipt detail payment ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="RECEIPT_PAYMENT_ID" nullable="true" remarks="The ID of the receipt payment that is being applied" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_PAYMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="RECEIPT_DETAIL_ID" nullable="true" remarks="The ID receipt detail that the payment is applied to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="GLACCOUNT_ID" nullable="true" remarks="The ID of the GL account related to this receipt detail item (unless the receipt detail is distributed across multiple GL accounts)" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GL_ACCOUNT_NAME" nullable="true" remarks="The GL account name related to this receipt detail item" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="The GL account number related to this receipt detail item" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="6" name="AMOUNT" nullable="true" remarks="The amount of the payment that is applied to this receipt detail item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="IS_MULTI_GL" nullable="true" remarks="Whether the receipt detail is distributed across multiple GL accounts (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="IS_EXPORTED" nullable="true" remarks="Whether this payment distribution has been exported via the financial export (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="RECEIPT_DETAIL_PAYMENT_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="RECEIPT_DETAILS" numRows="0" remarks="Posted receipt detail data. Does not include voided records." schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.RECEIPT_DETAILS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.RECEIPT_DETAIL_ID,&#13;&#10;    src.TRANSACTION_ID,&#13;&#10;    src.ORIGINAL_RECEIPT_DETAIL_ID,&#13;&#10;    src.ROOT_RECEIPT_DETAIL_ID,&#13;&#10;    src.ORIGINAL_TRANSACTION_ID,&#13;&#10;    src.TRANSACTION_SITE_ID,&#13;&#10;    si1.SITE_NAME AS TRANSACTION_SITE_NAME,&#13;&#10;    src.REVENUE_SITE_ID,&#13;&#10;    si2.SITE_NAME AS REVENUE_SITE_NAME,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    tr1.POSPRODUCT_ID,&#13;&#10;    pr2.PRODUCT_NAME AS PRODUCT_NAME,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    ch1.CHARGE_NAME,&#13;&#10;    src.STANDARD_CHARGE_ID,&#13;&#10;    ch2.CHARGE_NAME AS STANDARD_CHARGE_NAME,&#13;&#10;    src.DESCRIPTION,&#13;&#10;    src.IS_PRIMARY_FEE,&#13;&#10;    src.AMOUNT,&#13;&#10;    src.APPLIED_AMOUNT,&#13;&#10;    src.IS_DEPOSIT,&#13;&#10;    src.IS_DISCOUNT,&#13;&#10;    src.DISCOUNT_TYPE,&#13;&#10;    src.DISCOUNT_PERCENT,&#13;&#10;    src.POSPRODUCT_ID AS DISCOUNT_POSPRODUCT_ID,&#13;&#10;    pr1.PRODUCT_NAME AS DISCOUNT_PRODUCT_NAME,&#13;&#10;    src.UNIT_FEE_AMOUNT,&#13;&#10;    src.UNIT_OF_MEASURE,&#13;&#10;    src.QUANTITY,&#13;&#10;    src.IS_DISCOUNTABLE,&#13;&#10;    src.APPLIED_DISCOUNT_AMOUNT,&#13;&#10;    src.DEPOSIT_PAYOFF_AMOUNT,&#13;&#10;    src.COUPON_ID,&#13;&#10;    src.IS_PAYMENT_PLAN_CHARGE,&#13;&#10;    src.IS_EXTRA_BOOKING_FEE,&#13;&#10;    src.OVERRIDE_INCLUDE_FLAG,&#13;&#10;    src.IS_CLAIM_CHARGE,&#13;&#10;    src.EXCLUDE_FROM_PAYMENT_PLAN,&#13;&#10;    src.APPLIES_TO_PRIMARY_FEE,&#13;&#10;    src.FACILITY_SCHEDULE_ID,&#13;&#10;    src.IS_NON_REFUNDABLE,&#13;&#10;    src.PREFUND_AMOUNT_USED,&#13;&#10;    src.CUSTOMER_SCHOLARSHIP_ID,&#13;&#10;    src.TAXABLE_BY_TAX_1,&#13;&#10;    src.TAXABLE_BY_TAX_2,&#13;&#10;    src.TAXABLE_BY_TAX_3,&#13;&#10;    src.TAXABLE_BY_TAX_4,&#13;&#10;    src.TAXABLE_BY_TAX_5,&#13;&#10;    src.TAXABLE_BY_TAX_6,&#13;&#10;    src.TAXABLE_BY_TAX_7,&#13;&#10;    src.TAXABLE_BY_TAX_8,&#13;&#10;    src.TAX_AMOUNT_1,&#13;&#10;    src.TAX_AMOUNT_2,&#13;&#10;    src.TAX_AMOUNT_3,&#13;&#10;    src.TAX_AMOUNT_4,&#13;&#10;    src.TAX_AMOUNT_5,&#13;&#10;    src.TAX_AMOUNT_6,&#13;&#10;    src.TAX_AMOUNT_7,&#13;&#10;    src.TAX_AMOUNT_8,&#13;&#10;    src.TAX_APPLIED_AMOUNT_1,&#13;&#10;    src.TAX_APPLIED_AMOUNT_2,&#13;&#10;    src.TAX_APPLIED_AMOUNT_3,&#13;&#10;    src.TAX_APPLIED_AMOUNT_4,&#13;&#10;    src.TAX_APPLIED_AMOUNT_5,&#13;&#10;    src.TAX_APPLIED_AMOUNT_6,&#13;&#10;    src.TAX_APPLIED_AMOUNT_7,&#13;&#10;    src.TAX_APPLIED_AMOUNT_8,&#13;&#10;    src.TAX_GLACCOUNT_ID_1,&#13;&#10;    src.TAX_GLACCOUNT_ID_2,&#13;&#10;    src.TAX_GLACCOUNT_ID_3,&#13;&#10;    src.TAX_GLACCOUNT_ID_4,&#13;&#10;    src.TAX_GLACCOUNT_ID_5,&#13;&#10;    src.TAX_GLACCOUNT_ID_6,&#13;&#10;    src.TAX_GLACCOUNT_ID_7,&#13;&#10;    src.TAX_GLACCOUNT_ID_8,&#13;&#10;    src.TAX_EXEMPTED_1,&#13;&#10;    src.TAX_EXEMPTED_2,&#13;&#10;    src.TAX_EXEMPTED_3,&#13;&#10;    src.TAX_EXEMPTED_4,&#13;&#10;    src.TAX_EXEMPTED_5,&#13;&#10;    src.TAX_EXEMPTED_6,&#13;&#10;    src.TAX_EXEMPTED_7,&#13;&#10;    src.TAX_EXEMPTED_8,&#13;&#10;    src.TAX_EXEMPTED_AMOUNT_1,&#13;&#10;    src.TAX_EXEMPTED_AMOUNT_2,&#13;&#10;    src.TAX_EXEMPTED_AMOUNT_3,&#13;&#10;    src.TAX_EXEMPTED_AMOUNT_4,&#13;&#10;    src.TAX_EXEMPTED_AMOUNT_5,&#13;&#10;    src.TAX_EXEMPTED_AMOUNT_6,&#13;&#10;    src.TAX_EXEMPTED_AMOUNT_7,&#13;&#10;    src.TAX_EXEMPTED_AMOUNT_8,&#13;&#10;    src.ELECTRONIC_PAYMENT_AMOUNT,&#13;&#10;    src.CREDIT_CARD_FEE_AMOUNT,&#13;&#10;    src.CREDIT_CARD_FEE_SURCHARGE_AMOUNT,&#13;&#10;    src.TRANSACTION_FEE_AMOUNT,&#13;&#10;    src.CONVENIENCE_FEE_AMOUNT,&#13;&#10;    src.CONVENIENCE_FEE_ABSORBED_AMOUNT,&#13;&#10;    'No' AS VOIDED,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM&#13;&#10;    hub.RECEIPT_DETAILS src&#13;&#10;    LEFT JOIN hub.TRANSACTIONS tr1 ON (tr1.TRANSACTION_ID = src.TRANSACTION_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.TRANSACTION_SITE_ID)&#13;&#10;    LEFT JOIN hub.SITES si2 ON (si2.SITE_ID = src.REVENUE_SITE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.GLACCOUNT_ID = src.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.CHARGES ch1 ON (ch1.CHARGE_ID = src.CHARGE_ID)&#13;&#10;    LEFT JOIN hub.STANDARD_CHARGES sc1 ON (sc1.STANDARD_CHARGE_ID = src.STANDARD_CHARGE_ID)&#13;&#10;    LEFT JOIN hub.CHARGES ch2 ON (ch2.CHARGE_ID = sc1.CHARGE_ID)&#13;&#10;    LEFT JOIN hub.POS_PRODUCTS pr1 ON (pr1.POSPRODUCT_ID = src.POSPRODUCT_ID)&#13;&#10;    LEFT JOIN hub.POS_PRODUCTS pr2 ON (pr2.POSPRODUCT_ID = tr1.POSPRODUCT_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;WHERE&#13;&#10;    src.TRANSACTION_STATUS = 0&#13;&#10;    AND src.VOIDED = 0;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="RECEIPT_DETAIL_ID" nullable="true" remarks="Receipt detail ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACCOUNT_CREDIT_HISTORY"/>
            <child catalog="ActiveHub" column="RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_USAGE"/>
            <child catalog="ActiveHub" column="RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_THIRD_PARTY_BILLING_LINKS"/>
            <child catalog="ActiveHub" column="ORIGINAL_RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAIL_PAYMENTS"/>
            <child catalog="ActiveHub" column="ORIGINAL_RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="ROOT_RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_GL_POSTINGS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="TRANSACTION_ID" nullable="true" remarks="ID of the transaction that the receipt detail item belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ORIGINAL_RECEIPT_DETAIL_ID" nullable="true" remarks="The original receipt detail ID for a series of transactions" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ROOT_RECEIPT_DETAIL_ID" nullable="true" remarks="The root receipt detail ID for a chain of transactions" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ORIGINAL_TRANSACTION_ID" nullable="true" remarks="The original transaction ID for a series of transactions" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="TRANSACTION_SITE_ID" nullable="true" remarks="ID of the site where the transaction was created" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="TRANSACTION_SITE_NAME" nullable="true" remarks="Name of the site where the transaction was created" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="REVENUE_SITE_ID" nullable="true" remarks="ID of the site for the charged item that the transaction is for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="REVENUE_SITE_NAME" nullable="true" remarks="Name of the site for the charged item that the transaction is for" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="WORKSTATION_ID" nullable="true" remarks="ID of the workstation where the transaction was created" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="WORKSTATION_NAME" nullable="true" remarks="Name of the workstation where the transaction was created" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the user who created the transaction" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the user who created the transaction" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="POSPRODUCT_ID" nullable="true" remarks="The POS product ID associated with this receipt item" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PRODUCT_NAME" nullable="true" remarks="The POS product name associated with this receipt item" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="GLACCOUNT_ID" nullable="true" remarks="ID of the GL account related to this charge item" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="GL_ACCOUNT_NAME" nullable="true" remarks="The GL account name related to this charge item" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="The GL account number related to this charge item" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="CHARGE_ID" nullable="true" remarks="The charge ID associated with this receipt detail item" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="CHARGE_NAME" nullable="true" remarks="The name of the charge associated with this receipt detail item" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="STANDARD_CHARGE_ID" nullable="true" remarks="The facility standard charge ID associated with this receipt detail item" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="STANDARD_CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STANDARD_CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="STANDARD_CHARGE_NAME" nullable="true" remarks="The name of the facility standard charge associated with this receipt detail item" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="DESCRIPTION" nullable="true" remarks="The charge description of this receipt detail item" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="IS_PRIMARY_FEE" nullable="true" remarks="Whether this charge item is a primary fee (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="24" name="AMOUNT" nullable="true" remarks="The amount of this charge item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="25" name="APPLIED_AMOUNT" nullable="true" remarks="The amount of this charge item that has a payment, refund or other charge applied against it" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="IS_DEPOSIT" nullable="true" remarks="Whether this charge item is a deposit (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="IS_DISCOUNT" nullable="true" remarks="Whether this charge item is a discount (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="DISCOUNT_TYPE" nullable="true" remarks="The type of discount applied (Amount / Percent)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="29" name="DISCOUNT_PERCENT" nullable="true" remarks="The discount percentage applied" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="DISCOUNT_POSPRODUCT_ID" nullable="true" remarks="The POS discount product ID associated with this discount receipt item" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="DISCOUNT_PRODUCT_NAME" nullable="true" remarks="The POS discount product name associated with this discount receipt item" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="32" name="UNIT_FEE_AMOUNT" nullable="true" remarks="The per unit fee amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="UNIT_OF_MEASURE" nullable="true" remarks="The default unit of measure for the charge item amount" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="34" name="QUANTITY" nullable="true" remarks="The quantity of the item charged in this receipt item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="IS_DISCOUNTABLE" nullable="true" remarks="Whether this charge item can be discounted (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="36" name="APPLIED_DISCOUNT_AMOUNT" nullable="true" remarks="The total amount of discounts that have been applied to this receipt item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="37" name="DEPOSIT_PAYOFF_AMOUNT" nullable="true" remarks="The deposit payoff amount that is associated with this receipt item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="COUPON_ID" nullable="true" remarks="The coupon ID associated with this receipt item" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COUPON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="IS_PAYMENT_PLAN_CHARGE" nullable="true" remarks="Whether this charge item is a payment plan charge (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="IS_EXTRA_BOOKING_FEE" nullable="true" remarks="Whether this charge item is an extra booking fee (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="OVERRIDE_INCLUDE_FLAG" nullable="true" remarks="Whether the include flag was overridden for this charge item (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="IS_CLAIM_CHARGE" nullable="true" remarks="Whether this charge item is a claim charge fee (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="EXCLUDE_FROM_PAYMENT_PLAN" nullable="true" remarks="Whether this receipt item should be excluded from any payment plan (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="APPLIES_TO_PRIMARY_FEE" nullable="true" remarks="Whether this fee or discount applied to the primary fee (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="FACILITY_SCHEDULE_ID" nullable="true" remarks="The facility schedule ID for the reservation associated with this receipt item" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_RESERVATION"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="IS_NON_REFUNDABLE" nullable="true" remarks="Whether this charge item is non-refundable (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="47" name="PREFUND_AMOUNT_USED" nullable="true" remarks="The prefund amount used for this receipt item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="CUSTOMER_SCHOLARSHIP_ID" nullable="true" remarks="Customer scholarship ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_SCHOLARSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SCHOLARSHIPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="TAXABLE_BY_TAX_1" nullable="true" remarks="Whether tax 1 applies to this charge (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="TAXABLE_BY_TAX_2" nullable="true" remarks="Whether tax 2 applies to this charge (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="TAXABLE_BY_TAX_3" nullable="true" remarks="Whether tax 3 applies to this charge (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="TAXABLE_BY_TAX_4" nullable="true" remarks="Whether tax 4 applies to this charge (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="TAXABLE_BY_TAX_5" nullable="true" remarks="Whether tax 5 applies to this charge (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="TAXABLE_BY_TAX_6" nullable="true" remarks="Whether tax 6 applies to this charge (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="TAXABLE_BY_TAX_7" nullable="true" remarks="Whether tax 7 applies to this charge (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="TAXABLE_BY_TAX_8" nullable="true" remarks="Whether tax 8 applies to this charge (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="57" name="TAX_AMOUNT_1" nullable="true" remarks="The amount for tax 1 added to this charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="58" name="TAX_AMOUNT_2" nullable="true" remarks="The amount for tax 2 added to this charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="59" name="TAX_AMOUNT_3" nullable="true" remarks="The amount for tax 3 added to this charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="60" name="TAX_AMOUNT_4" nullable="true" remarks="The amount for tax 4 added to this charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="61" name="TAX_AMOUNT_5" nullable="true" remarks="The amount for tax 5 added to this charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="62" name="TAX_AMOUNT_6" nullable="true" remarks="The amount for tax 6 added to this charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="63" name="TAX_AMOUNT_7" nullable="true" remarks="The amount for tax 7 added to this charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="64" name="TAX_AMOUNT_8" nullable="true" remarks="The amount for tax 8 added to this charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="65" name="TAX_APPLIED_AMOUNT_1" nullable="true" remarks="The amount of tax 1 that has a payment, refund or other charge applied against it" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="66" name="TAX_APPLIED_AMOUNT_2" nullable="true" remarks="The amount of tax 2 that has a payment, refund or other charge applied against it" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="67" name="TAX_APPLIED_AMOUNT_3" nullable="true" remarks="The amount of tax 3 that has a payment, refund or other charge applied against it" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="68" name="TAX_APPLIED_AMOUNT_4" nullable="true" remarks="The amount of tax 4 that has a payment, refund or other charge applied against it" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="69" name="TAX_APPLIED_AMOUNT_5" nullable="true" remarks="The amount of tax 5 that has a payment, refund or other charge applied against it" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="70" name="TAX_APPLIED_AMOUNT_6" nullable="true" remarks="The amount of tax 6 that has a payment, refund or other charge applied against it" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="71" name="TAX_APPLIED_AMOUNT_7" nullable="true" remarks="The amount of tax 7 that has a payment, refund or other charge applied against it" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="72" name="TAX_APPLIED_AMOUNT_8" nullable="true" remarks="The amount of tax 8 that has a payment, refund or other charge applied against it" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="73" name="TAX_GLACCOUNT_ID_1" nullable="true" remarks="The GL account ID that was posted to for tax 1" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="74" name="TAX_GLACCOUNT_ID_2" nullable="true" remarks="The GL account ID that was posted to for tax 2" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="75" name="TAX_GLACCOUNT_ID_3" nullable="true" remarks="The GL account ID that was posted to for tax 3" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="76" name="TAX_GLACCOUNT_ID_4" nullable="true" remarks="The GL account ID that was posted to for tax 4" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="77" name="TAX_GLACCOUNT_ID_5" nullable="true" remarks="The GL account ID that was posted to for tax 5" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="78" name="TAX_GLACCOUNT_ID_6" nullable="true" remarks="The GL account ID that was posted to for tax 6" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="79" name="TAX_GLACCOUNT_ID_7" nullable="true" remarks="The GL account ID that was posted to for tax 7" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="80" name="TAX_GLACCOUNT_ID_8" nullable="true" remarks="The GL account ID that was posted to for tax 8" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="81" name="TAX_EXEMPTED_1" nullable="true" remarks="Whether the customer was tax exempt for tax 1 (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="82" name="TAX_EXEMPTED_2" nullable="true" remarks="Whether the customer was tax exempt for tax 2 (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="83" name="TAX_EXEMPTED_3" nullable="true" remarks="Whether the customer was tax exempt for tax 3 (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="84" name="TAX_EXEMPTED_4" nullable="true" remarks="Whether the customer was tax exempt for tax 4 (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="85" name="TAX_EXEMPTED_5" nullable="true" remarks="Whether the customer was tax exempt for tax 5 (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="86" name="TAX_EXEMPTED_6" nullable="true" remarks="Whether the customer was tax exempt for tax 6 (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="87" name="TAX_EXEMPTED_7" nullable="true" remarks="Whether the customer was tax exempt for tax 7 (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="88" name="TAX_EXEMPTED_8" nullable="true" remarks="Whether the customer was tax exempt for tax 8 (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="89" name="TAX_EXEMPTED_AMOUNT_1" nullable="true" remarks="The amount of tax that was exempted for tax 1" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="90" name="TAX_EXEMPTED_AMOUNT_2" nullable="true" remarks="The amount of tax that was exempted for tax 2" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="91" name="TAX_EXEMPTED_AMOUNT_3" nullable="true" remarks="The amount of tax that was exempted for tax 3" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="92" name="TAX_EXEMPTED_AMOUNT_4" nullable="true" remarks="The amount of tax that was exempted for tax 4" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="93" name="TAX_EXEMPTED_AMOUNT_5" nullable="true" remarks="The amount of tax that was exempted for tax 5" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="94" name="TAX_EXEMPTED_AMOUNT_6" nullable="true" remarks="The amount of tax that was exempted for tax 6" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="95" name="TAX_EXEMPTED_AMOUNT_7" nullable="true" remarks="The amount of tax that was exempted for tax 7" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="96" name="TAX_EXEMPTED_AMOUNT_8" nullable="true" remarks="The amount of tax that was exempted for tax 8" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="97" name="ELECTRONIC_PAYMENT_AMOUNT" nullable="true" remarks="The total electronic payment amount that has been applied to this receipt item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="98" name="CREDIT_CARD_FEE_AMOUNT" nullable="true" remarks="Amount of credit card fee for this receipt item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="99" name="CREDIT_CARD_FEE_SURCHARGE_AMOUNT" nullable="true" remarks="Amount of credit card surcharge fee for this receipt item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="100" name="TRANSACTION_FEE_AMOUNT" nullable="true" remarks="Amount of transaction fee for this receipt item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="101" name="CONVENIENCE_FEE_AMOUNT" nullable="true" remarks="Amount of convenience fee for this receipt item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="102" name="CONVENIENCE_FEE_ABSORBED_AMOUNT" nullable="true" remarks="Amount of convenience fee that was absorbed for this receipt item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="103" name="VOIDED" nullable="false" remarks="Whether the receipt detail has been voided (Yes/No)" size="2" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="104" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="105" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="106" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="107" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="RECEIPT_DETAIL_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="RECEIPT_GL_POSTINGS" numRows="0" remarks="Postings in the GL ledger, where positive amounts are debits and negative amounts are credits. Does not include voided records." schema="dbo" type="VIEW" viewSql="&#13;&#10;&#13;&#10;CREATE VIEW dbo.RECEIPT_GL_POSTINGS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.GL_LEDGER_ID,&#13;&#10;    src.RECEIPT_DETAIL_ID,&#13;&#10;    src.TRANSACTION_ID,&#13;&#10;    src.RECEIPT_PAYMENT_ID,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.AMOUNT,&#13;&#10;    rd1.CHARGE_ID,&#13;&#10;    (CASE&#13;&#10;        WHEN gl1.SYSTEM_ACCOUNT = 13 THEN 'Cash Payment Rounding'&#13;&#10;        ELSE rd1.DESCRIPTION&#13;&#10;        END) AS CHARGE_NAME,&#13;&#10;    src.TRANSACTION_SITE_ID,&#13;&#10;    si2.SITE_NAME AS TRANSACTION_SITE_NAME,&#13;&#10;    src.REVENUE_SITE_ID,&#13;&#10;    si1.SITE_NAME AS REVENUE_SITE_NAME,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.TRANSACTION_DATE_TIME,&#13;&#10;    CAST(src.TRANSACTION_DATE_TIME AS DATE) AS TRANSACTION_DATE_ONLY,&#13;&#10;    src.RECEIPT_HEADER_ID,&#13;&#10;    FORMAT(rh1.RECEIPT_NUMBER, '0.0000') AS RECEIPT_NUMBER,&#13;&#10;    tr1.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    ac1.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    ac1.SEASON_ID,&#13;&#10;    se2.SEASON_NAME,&#13;&#10;    ac1.CHILD_SEASON_ID,&#13;&#10;    cs1.CHILD_SEASON_NAME,&#13;&#10;    tr1.PROGRAM_ID,&#13;&#10;    pr1.PROGRAM_NAME,&#13;&#10;    tr1.SESSION_ID,&#13;&#10;    se1.SESSION_NAME,&#13;&#10;    tr1.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    tr1.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    tr1.PERMIT_ID,&#13;&#10;    pe1.PERMIT_NUMBER,&#13;&#10;    tr1.POSPRODUCT_ID,&#13;&#10;    ppr.PRODUCT_NAME,&#13;&#10;    tr1.CAMPAIGN_ID,&#13;&#10;    ca1.CAMPAIGN_NAME,&#13;&#10;    ISNULL(tr1.CUSTOMER_ID, tr1.CUSTOMER_ID) AS CUSTOMER_ID,&#13;&#10;    ISNULL(cu1.CUSTOMER_FIRST_NAME, cu2.CUSTOMER_FIRST_NAME) AS CUSTOMER_FIRST_NAME,&#13;&#10;    ISNULL(cu1.CUSTOMER_LAST_NAME, cu2.CUSTOMER_LAST_NAME) AS CUSTOMER_LAST_NAME,&#13;&#10;    ISNULL(tr1.COMPANY_ID, tr1.COMPANY_ID) AS COMPANY_ID,&#13;&#10;    ISNULL(co1.COMPANY_NAME, co2.COMPANY_NAME) AS COMPANY_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    tr1.STAFF_NOTES,&#13;&#10;    rd1.CUSTOMER_SCHOLARSHIP_ID,&#13;&#10;    src.EXPENSE_ID,&#13;&#10;    'No' AS VOIDED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.GL_LEDGER_ID AS source_id,&#13;&#10;&#9;gl1.ACCOUNT_TYPE,&#13;&#10;&#9;gl1.SYSTEM_ACCOUNT,&#13;&#10;&#9;gl1.SYSTEM_ACCOUNT_NAME&#13;&#10;&#13;&#10;FROM &#13;&#10;    hub.RECEIPT_GL_POSTINGS src&#13;&#10;    LEFT JOIN hub.RECEIPT_DETAILS rd1 ON (rd1.ORG_ID = src.ORG_ID AND rd1.RECEIPT_DETAIL_ID = src.RECEIPT_DETAIL_ID)&#13;&#10;    LEFT JOIN hub.TRANSACTIONS tr1 ON (tr1.ORG_ID = src.ORG_ID AND tr1.TRANSACTION_ID = src.TRANSACTION_ID)&#13;&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON (rh1.ORG_ID = src.ORG_ID AND rh1.RECEIPT_HEADER_ID = src.RECEIPT_HEADER_ID)&#13;&#10;    LEFT JOIN hub.RECEIPT_PAYMENTS rp1 ON (rp1.ORG_ID = src.ORG_ID AND rp1.RECEIPT_PAYMENT_ID = src.RECEIPT_PAYMENT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.ORG_ID = src.ORG_ID AND gl1.GLACCOUNT_ID = src.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.REVENUE_SITE_ID)&#13;&#10;    LEFT JOIN hub.SITES si2 ON (si2.ORG_ID = src.ORG_ID AND si2.SITE_ID = src.TRANSACTION_SITE_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.PERMITS pe1 ON (pe1.ORG_ID = src.ORG_ID AND pe1.PERMIT_ID = tr1.PERMIT_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON (ac1.ORG_ID = src.ORG_ID AND ac1.ACTIVITY_ID = tr1.ACTIVITY_ID)&#13;&#10;    LEFT JOIN hub.PROGRAMS pr1 ON (pr1.ORG_ID = src.ORG_ID AND pr1.PROGRAM_ID = tr1.PROGRAM_ID)&#13;&#10;    LEFT JOIN hub.SESSIONS se1 ON (se1.ORG_ID = src.ORG_ID AND se1.SESSION_ID = tr1.SESSION_ID)&#13;&#10;    LEFT JOIN hub.PACKAGES pa1 ON (pa1.ORG_ID = src.ORG_ID AND pa1.PACKAGE_ID = tr1.PACKAGE_ID)&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON (fa1.ORG_ID = src.ORG_ID AND fa1.FACILITY_ID = tr1.FACILITY_ID)&#13;&#10;    LEFT JOIN hub.CAMPAIGNS ca1 ON (ca1.ORG_ID = src.ORG_ID AND ca1.CAMPAIGN_ID = tr1.CAMPAIGN_ID)&#13;&#10;    LEFT JOIN hub.POS_PRODUCTS ppr ON (ppr.ORG_ID = src.ORG_ID AND ppr.POSPRODUCT_ID = tr1.POSPRODUCT_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.ORG_ID = src.ORG_ID AND co1.COMPANY_ID = tr1.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = tr1.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co2 ON (co2.ORG_ID = src.ORG_ID AND co2.COMPANY_ID = rp1.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu2 ON (cu2.ORG_ID = src.ORG_ID AND cu2.CUSTOMER_ID = rp1.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.SEASONS se2 ON (se2.ORG_ID = src.ORG_ID AND se2.SEASON_ID = ac1.SEASON_ID)&#13;&#10;    LEFT JOIN hub.CHILD_SEASONS cs1 ON (cs1.ORG_ID = src.ORG_ID AND cs1.CHILD_SEASON_ID = ac1.CHILD_SEASON_ID)&#13;&#10;WHERE&#13;&#10;    src.VOIDED = 0;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="GL_LEDGER_ID" nullable="false" remarks="GL ledger ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="GL_LEDGER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="DEFERRED_REVENUE_PROJECTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="RECEIPT_DETAIL_ID" nullable="true" remarks="The receipt detail ID that the GL posting is related to. May be null for postings related to cash payment rounding" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="TRANSACTION_ID" nullable="true" remarks="The transaction ID that the GL posting is related to. May be null for postings related to cash payment rounding" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="RECEIPT_PAYMENT_ID" nullable="true" remarks="The receipt payment ID that the GL posting is related to, if the postings is for cash payment rounding" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_PAYMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GLACCOUNT_ID" nullable="true" remarks="GL account ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="GL_ACCOUNT_NAME" nullable="true" remarks="GL account name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="7" name="AMOUNT" nullable="true" remarks="Total amount posted to the GL, where positive amounts are debits and negative amounts are credits" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CHARGE_ID" nullable="true" remarks="ID of the related charge record" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CHARGE_NAME" nullable="true" remarks="The receipt charge name" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="TRANSACTION_SITE_ID" nullable="true" remarks="ID of the transaction site" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="TRANSACTION_SITE_NAME" nullable="true" remarks="Name of the transaction site" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="REVENUE_SITE_ID" nullable="true" remarks="ID of the site where the revenue is recognized" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="REVENUE_SITE_NAME" nullable="true" remarks="Name of the site where the revenue is recognized" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="WORKSTATION_ID" nullable="true" remarks="ID of the workstation where the transaction occurred" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="WORKSTATION_NAME" nullable="true" remarks="Name of the workstation where the transaction occurred" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="TRANSACTION_DATE_TIME" nullable="true" remarks="Transaction date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="TRANSACTION_DATE_ONLY" nullable="true" remarks="Transaction date (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="RECEIPT_HEADER_ID" nullable="true" remarks="ID of the receipt header" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="RECEIPT_NUMBER" nullable="true" remarks="Number of the receipt" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ACTIVITY_ID" nullable="true" remarks="ID of the activity that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ACTIVITY_NAME" nullable="true" remarks="Name of the activity that this posting is related to" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="ACTIVITY_NUMBER" nullable="true" remarks="Number of the activity that this posting is related to" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="SEASON_ID" nullable="true" remarks="ID of the parent activity season that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="SEASON_NAME" nullable="true" remarks="Name of the parent activity season that this posting is related to" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="CHILD_SEASON_ID" nullable="true" remarks="ID of the child activity season that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="CHILD_SEASON_NAME" nullable="true" remarks="Name of the child activity season that this posting is related to" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="PROGRAM_ID" nullable="true" remarks="ID of the program that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="PROGRAM_NAME" nullable="true" remarks="Name of the program that this posting is related to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="SESSION_ID" nullable="true" remarks="ID of the program session that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="SESSION_NAME" nullable="true" remarks="Name of the program session that this posting is related to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="PACKAGE_ID" nullable="true" remarks="ID of the package that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="PACKAGE_NAME" nullable="true" remarks="Name of the package that this posting is related to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="FACILITY_ID" nullable="true" remarks="ID of the facility or resource that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="FACILITY_NAME" nullable="true" remarks="Name of the facility or resource that this posting is related to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="PERMIT_ID" nullable="true" remarks="ID of the permit that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="PERMIT_NUMBER" nullable="true" remarks="Number of the permit that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="POSPRODUCT_ID" nullable="true" remarks="ID of the POS product that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="PRODUCT_NAME" nullable="true" remarks="Name of the POS product that this posting is related to" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="CAMPAIGN_ID" nullable="true" remarks="ID of the fundraising campaign that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="CAMPAIGN_NAME" nullable="true" remarks="Name of the fundraising campaign that this posting is related to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="CUSTOMER_ID" nullable="true" remarks="Customer ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="CUSTOMER_FIRST_NAME" nullable="true" remarks="Customer's first name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="CUSTOMER_LAST_NAME" nullable="true" remarks="Customer's last name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="COMPANY_ID" nullable="true" remarks="Company ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="COMPANY_NAME" nullable="true" remarks="Company name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the system user who created the transaction" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the system user who created the transaction" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="STAFF_NOTES" nullable="true" remarks="Staff notes added at the time of transaction" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="CUSTOMER_SCHOLARSHIP_ID" nullable="true" remarks="Customer scholarship ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="EXPENSE_ID" nullable="true" remarks="The ID of the expense that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="VOIDED" nullable="false" remarks="Whether the GL posting has been voided (Yes/No)" size="2" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="52" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="source_id" nullable="false" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="ACCOUNT_TYPE" nullable="true" remarks="Type name of the GL account" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="SYSTEM_ACCOUNT" nullable="true" remarks="System GL account number" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="SYSTEM_ACCOUNT_NAME" nullable="true" remarks="System GL account name" size="100" type="varchar" typeCode="12"/>
         <primaryKey column="GL_LEDGER_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="RECEIPT_HEADERS" numRows="0" remarks="Receipt header records for transactions and payments. Does not include voided or abandoned records." schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.RECEIPT_HEADERS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.RECEIPT_HEADER_ID,&#13;&#10;    src.RECEIPT_TYPE,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    FORMAT(src.RECEIPT_NUMBER, '0.0000') AS RECEIPT_NUMBER,&#13;&#10;    src.RECEIPT_DATE_TIME,&#13;&#10;    src.RECEIPT_NOTES,&#13;&#10;    src.PRINTED,&#13;&#10;    src.TOTAL_FEE_AMOUNT,&#13;&#10;    src.PREFUND_AMOUNT_USED,&#13;&#10;    src.CREDIT_CARD_AMOUNT,&#13;&#10;    src.IS_ONLINE_RECEIPT,&#13;&#10;    src.ONLINE_CUSTOMER_ID,&#13;&#10;    CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME) AS ONLINE_CUSTOMER_NAME,&#13;&#10;    src.ONLINE_WAIVER_INITIALS,&#13;&#10;    src.TRANSACTION_FEE_AMOUNT,&#13;&#10;    src.CREDIT_CARD_FEE_AMOUNT,&#13;&#10;    src.CREDIT_CARD_FEE_SURCHARGE_AMOUNT,&#13;&#10;    src.CONVENIENCE_FEE_AMOUNT,&#13;&#10;    src.CONVENIENCE_FEE_ABSORBED_AMOUNT,&#13;&#10;    src.CONVENIENCE_FEE_SURCHARGE_AMOUNT,&#13;&#10;    src.CONVENIENCE_FEE_ABSORBED_DISCOUNT_AMOUNT,&#13;&#10;    src.CONVENIENCE_FEE_SURCHARGE_DISCOUNT_AMOUNT,&#13;&#10;    src.RECEIPT_DETAIL_PAYMENT_GENERATED_DATE_TIME,&#13;&#10;    CAST(src.RECEIPT_DETAIL_PAYMENT_GENERATED_DATE_TIME AS DATE) AS RECEIPT_DETAIL_PAYMENT_GENERATED_DATE_ONLY,&#13;&#10;    src.REVENUE_DISTRIBUTION_PROCESSED_DATE_TIME,&#13;&#10;    CAST(src.REVENUE_DISTRIBUTION_PROCESSED_DATE_TIME AS DATE) AS REVENUE_DISTRIBUTION_PROCESSED_DATE_ONLY,&#13;&#10;    'No' AS IS_ABANDONED,&#13;&#10;    'No' AS VOIDED,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.RECEIPT_HEADER_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.RECEIPT_HEADERS src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = src.ONLINE_CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;WHERE&#13;&#10;    src.IS_ABANDONED = 0&#13;&#10;    AND src.VOIDED = 0;&#13;&#10;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="RECEIPT_HEADER_ID" nullable="true" remarks="Receipt header ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACCOUNT_CREDIT_HISTORY"/>
            <child catalog="ActiveHub" column="ORIGINAL_RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_ENROLLMENTS"/>
            <child catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_HEADERS"/>
            <child catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CREDIT_CARD_PROCESSING_LOG"/>
            <child catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_THIRD_PARTY_BILLING_LINKS"/>
            <child catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PAYMENT_CHARGEBACKS"/>
            <child catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_GL_POSTINGS"/>
            <child catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="RECEIPT_TYPE" nullable="true" remarks="Type of receipt (Receipt / Refund Voucher / Non-Monetary Receipt / Permit Charges Summary / Contract Charges Summary)" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_ID" nullable="true" remarks="ID of the workstation where the receipt was created" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_NAME" nullable="true" remarks="Name of the workstation where the receipt was created" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="WORKSTATION_ID" nullable="true" remarks="ID of the workstation where the receipt was created" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="WORKSTATION_NAME" nullable="true" remarks="Name of the workstation where the receipt was created" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the system user who created the receipt" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the system user who created the receipt" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="RECEIPT_NUMBER" nullable="true" remarks="Receipt number" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="RECEIPT_DATE_TIME" nullable="true" remarks="Date and time that the receipt was created" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="RECEIPT_NOTES" nullable="true" remarks="Receipt notes entered by the user" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="PRINTED" nullable="true" remarks="Whether the receipt has been printed (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="12" name="TOTAL_FEE_AMOUNT" nullable="true" remarks="Total fee amount for this receipt" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="13" name="PREFUND_AMOUNT_USED" nullable="true" remarks="Total prefund amount used on this receipt" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="14" name="CREDIT_CARD_AMOUNT" nullable="true" remarks="Total credit card amount charged or refunded for this receipt" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="IS_ONLINE_RECEIPT" nullable="true" remarks="Whether the receipt was created online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ONLINE_CUSTOMER_ID" nullable="true" remarks="The ID of the customer who created the online receipt" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ONLINE_CUSTOMER_NAME" nullable="false" remarks="The name of the customer who created the online receipt" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ONLINE_WAIVER_INITIALS" nullable="true" remarks="Waiver initials that were entered online for this receipt" size="4" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="19" name="TRANSACTION_FEE_AMOUNT" nullable="true" remarks="Amount of transaction fee" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="20" name="CREDIT_CARD_FEE_AMOUNT" nullable="true" remarks="Amount of credit card fee" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="21" name="CREDIT_CARD_FEE_SURCHARGE_AMOUNT" nullable="true" remarks="Amount of credit card fee that is a surcharge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="22" name="CONVENIENCE_FEE_AMOUNT" nullable="true" remarks="Amount of convenience fee" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="23" name="CONVENIENCE_FEE_ABSORBED_AMOUNT" nullable="true" remarks="Amount of convenience fee that was absorbed" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="24" name="CONVENIENCE_FEE_SURCHARGE_AMOUNT" nullable="true" remarks="Amount of convenience fee that is a surcharge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="25" name="CONVENIENCE_FEE_ABSORBED_DISCOUNT_AMOUNT" nullable="true" remarks="Amount of convenience fee discount that was absorbed" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="26" name="CONVENIENCE_FEE_SURCHARGE_DISCOUNT_AMOUNT" nullable="true" remarks="Amount of convenience fee discount that is a surcharge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="27" name="RECEIPT_DETAIL_PAYMENT_GENERATED_DATE_TIME" nullable="true" remarks="Date and time that the payments were allocated to the receipt details for this receipt" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="RECEIPT_DETAIL_PAYMENT_GENERATED_DATE_ONLY" nullable="true" remarks="Date that the payments were allocated to the receipt details for this receipt (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="29" name="REVENUE_DISTRIBUTION_PROCESSED_DATE_TIME" nullable="true" remarks="Date and time that revenue distribution was processed for this receipt" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="REVENUE_DISTRIBUTION_PROCESSED_DATE_ONLY" nullable="true" remarks="Date that revenue distribution was processed for this receipt (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="IS_ABANDONED" nullable="false" remarks="Whether the receipt header has been abandoned (Yes/No)" size="2" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="VOIDED" nullable="false" remarks="Whether the receipt header has been voided (Yes/No)" size="2" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="34" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="RECEIPT_HEADER_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="RECEIPT_PAYMENTS" numRows="0" remarks="Posted receipt payment data. Does not include voided records." schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.RECEIPT_PAYMENTS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.RECEIPT_PAYMENT_ID,&#13;&#10;    src.RECEIPT_HEADER_ID,&#13;&#10;    FORMAT(rh1.RECEIPT_NUMBER, '0.000') AS RECEIPT_NUMBER,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    src.CASH_SUMMARY_SHEET_ID,&#13;&#10;    src.CREATION_DATE_TIME,&#13;&#10;    CAST(src.CREATION_DATE_TIME AS DATE) AS CREATION_DATE_ONLY,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME) AS CUSTOMER_NAME,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.COMPANY_AUTHORIZED_AGENT_ID,&#13;&#10;    NULLIF(CONCAT(cu2.CUSTOMER_FIRST_NAME, IIF(cu2.CUSTOMER_FIRST_NAME IS NOT NULL AND cu2.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu2.CUSTOMER_LAST_NAME), '') AS COMPANY_AUTHORIZED_AGENT_NAME,&#13;&#10;    src.PAYMENT_AMOUNT,&#13;&#10;    src.PAYMENT_TYPE,&#13;&#10;    src.CARD_TYPE_ID,&#13;&#10;    ct1.CARD_TYPE_NAME AS CARD_TYPE,&#13;&#10;    src.CARD_NUMBER,&#13;&#10;    src.CARD_EXPIRATION,&#13;&#10;    src.SAVED_CREDIT_CARD_ID,&#13;&#10;    src.DEVICE_INPUT_TYPE,&#13;&#10;    src.BANK_ROUTING_NUMBER,&#13;&#10;    src.BANK_ACCOUNT_TYPE,&#13;&#10;    src.BANK_ACCOUNT_NUMBER,&#13;&#10;    src.ECP_STATUS,&#13;&#10;    src.AUTHORIZATION_NUMBER,&#13;&#10;    src.CLIENT_TRANSACTION_ID,&#13;&#10;    IIF(src.MANUAL_AUTHORIZATION_USER_ID IS NULL, 'No', 'Yes') AS IS_MANUAL_AUTHORIZATION,&#13;&#10;    src.MANUAL_AUTHORIZATION_USER_ID,&#13;&#10;    CONCAT(su2.USER_FIRST_NAME, IIF(su2.USER_FIRST_NAME IS NOT NULL AND su2.USER_LAST_NAME IS NOT NULL, ' ', ''), su2.USER_LAST_NAME) AS MANUAL_AUTHORIZATION_USER_NAME,&#13;&#10;    src.CASH_CHANGE_AMOUNT,&#13;&#10;    src.CUSTOM_PAYMENT_TYPE_ID,&#13;&#10;    cpt.CUSTOM_PAYMENT_TYPE_NAME,&#13;&#10;    src.CHECK_NUMBER,&#13;&#10;    src.GIFT_CARD_ID,&#13;&#10;    src.PAYMENT_CANCELLED,&#13;&#10;    src.CANCELLATION_REASON,&#13;&#10;    src.REVERSED_RECEIPT_PAYMENT_ID,&#13;&#10;    src.REPLACED_RECEIPT_PAYMENT_ID,&#13;&#10;    src.RECEIPT_DETAIL_ID,&#13;&#10;    src.PAYMENT_GL_ACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS PAYMENT_GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS PAYMENT_GL_ACCOUNT_NUMBER,&#13;&#10;    src.CREDIT_CARD_FEE_SURCHARGE_AMOUNT,&#13;&#10;    src.CONVENIENCE_FEE_AMOUNT,&#13;&#10;    src.GIFT_CARD_ID AS GIFT_CERTIFICATE_ID,&#13;&#10;    'No' AS VOIDED,&#13;&#10;&#9;src.SUBSIDY_USAGE_ID,&#13;&#10;&#9;src.SUBSIDY_USAGE_TRANSACTION_ID,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.RECEIPT_PAYMENT_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.RECEIPT_PAYMENTS src&#13;&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON (rh1.ORG_ID = src.ORG_ID AND rh1.RECEIPT_HEADER_ID = src.RECEIPT_HEADER_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.ORG_ID = src.ORG_ID AND co1.COMPANY_ID = src.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.ORG_ID = src.ORG_ID AND gl1.GLACCOUNT_ID = src.PAYMENT_GL_ACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su2 ON (su2.ORG_ID = src.ORG_ID AND su2.SYSTEMUSER_ID = src.MANUAL_AUTHORIZATION_USER_ID)&#13;&#10;    LEFT JOIN hub.COMPANY_AUTHORIZED_AGENTS caa ON (caa.ORG_ID = src.ORG_ID AND caa.COMPANY_AUTHORIZED_AGENT_ID = src.COMPANY_AUTHORIZED_AGENT_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu2 ON (cu2.ORG_ID = src.ORG_ID AND cu2.CUSTOMER_ID = caa.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.CARD_TYPES ct1 ON (ct1.ORG_ID = src.ORG_ID AND ct1.CARD_TYPE_ID = src.CARD_TYPE_ID)&#13;&#10;    LEFT JOIN hub.CUSTOM_PAYMENT_TYPES cpt ON (cpt.ORG_ID = src.ORG_ID AND cpt.CUSTOM_PAYMENT_TYPE_ID = src.CUSTOM_PAYMENT_TYPE_ID)&#13;&#10;WHERE&#13;&#10;    src.VOIDED = 0;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="RECEIPT_PAYMENT_ID" nullable="true" remarks="Receipt payment ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="RECEIPT_PAYMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACCOUNT_CREDIT_HISTORY"/>
            <child catalog="ActiveHub" column="RECEIPT_PAYMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PAYMENT_CHARGEBACKS"/>
            <child catalog="ActiveHub" column="RECEIPT_PAYMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAIL_PAYMENTS"/>
            <child catalog="ActiveHub" column="RECEIPT_PAYMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_GL_POSTINGS"/>
            <child catalog="ActiveHub" column="REPLACED_RECEIPT_PAYMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="REVERSED_RECEIPT_PAYMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="RECEIPT_HEADER_ID" nullable="true" remarks="ID of the receipt header that the payment belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="RECEIPT_NUMBER" nullable="true" remarks="The receipt number that the payment belongs to" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_ID" nullable="true" remarks="ID of the site where the payment was created" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SITE_NAME" nullable="true" remarks="Name of the site where the payment was created" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="WORKSTATION_ID" nullable="true" remarks="ID of the workstation where the payment was created" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="WORKSTATION_NAME" nullable="true" remarks="Name of the workstation where the payment was created" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the user who created the payment" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the user who created the payment" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CASH_SUMMARY_SHEET_ID" nullable="true" remarks="ID of the cash summary sheet that was active on the workstation when the payment was created" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="CREATION_DATE_TIME" nullable="true" remarks="Date and time that the payment was created" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="CREATION_DATE_ONLY" nullable="true" remarks="Date that the payment was created (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CUSTOMER_ID" nullable="true" remarks="ID of the customer who made the payment" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="CUSTOMER_NAME" nullable="false" remarks="Name of the customer who made the payment" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="COMPANY_ID" nullable="true" remarks="ID of the company who made the payment" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="COMPANY_NAME" nullable="true" remarks="Name of the company who made the payment" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="COMPANY_AUTHORIZED_AGENT_ID" nullable="true" remarks="The ID of the company authorized agent who made the payment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="COMPANY_AUTHORIZED_AGENT_NAME" nullable="true" remarks="The name of the company authorized agent who made the payment" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="18" name="PAYMENT_AMOUNT" nullable="true" remarks="The amount of the payment processed or of the payment plan created" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="PAYMENT_TYPE" nullable="true" remarks="The type of payment (Cash / Cash Refund / Check / Check Refund / Credit Card / Credit Card Refund / Credit Memo / Debit Card / Debit Card Refund / ECP / ECP Refund / Financial Aid / Financial Aid Payment Plan / Gift Card / Gift Card Refund / Journal Entry / Manual Deduction / No Payment / Non-Monetary / Payment From Account / Payment Plan / Refund To Account)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="CARD_TYPE_ID" nullable="true" remarks="ID of the credit card type" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CARD_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="CARD_TYPE" nullable="true" remarks="Name of the credit card type" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="CARD_NUMBER" nullable="true" remarks="Masked card number" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="CARD_EXPIRATION" nullable="true" remarks="Credit card expiration date (mm/yyyy)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="SAVED_CREDIT_CARD_ID" nullable="true" remarks="ID of the saved credit card used for the payment or refund" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SAVED_CREDIT_CARD_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SAVED_CREDIT_CARDS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="DEVICE_INPUT_TYPE" nullable="true" remarks="Type of card swiped or tapped on a physical device (Credit Card / Debit Card)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="BANK_ROUTING_NUMBER" nullable="true" remarks="Bank routing number for electronic check processing" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="BANK_ACCOUNT_TYPE" nullable="true" remarks="Bank account type for electronic check processing" size="4" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="BANK_ACCOUNT_NUMBER" nullable="true" remarks="Bank account number for electronic check processing" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="ECP_STATUS" nullable="true" remarks="The current electronic check processing status of the payment" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="AUTHORIZATION_NUMBER" nullable="true" remarks="The authorization number received for the payment" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="CLIENT_TRANSACTION_ID" nullable="true" remarks="The client transaction ID generated by the payment authorization process" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="IS_MANUAL_AUTHORIZATION" nullable="false" remarks="Whether the payment was manually authorized (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="MANUAL_AUTHORIZATION_USER_ID" nullable="true" remarks="The ID of the user who manually authorized the payment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="MANUAL_AUTHORIZATION_USER_NAME" nullable="false" remarks="The name of the user who manually authorized the payment" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="35" name="CASH_CHANGE_AMOUNT" nullable="true" remarks="The amount of change given for the payment" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="CUSTOM_PAYMENT_TYPE_ID" nullable="true" remarks="The ID of the custom payment type selected for the payment" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOM_PAYMENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOM_PAYMENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="CUSTOM_PAYMENT_TYPE_NAME" nullable="true" remarks="The name of the custom payment type selected for the payment" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="CHECK_NUMBER" nullable="true" remarks="Check number entered" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="GIFT_CARD_ID" nullable="true" remarks="ID of the gift card for the payment or refund" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GIFT_CARD_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GIFT_CARDS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="PAYMENT_CANCELLED" nullable="true" remarks="Whether the payment has been cancelled (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="CANCELLATION_REASON" nullable="true" remarks="The reason for the payment cancellation" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="REVERSED_RECEIPT_PAYMENT_ID" nullable="true" remarks="ID of the receipt payment that is a reversal of this payment" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_PAYMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="REPLACED_RECEIPT_PAYMENT_ID" nullable="true" remarks="ID of the receipt payment that this payment replaces" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_PAYMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="RECEIPT_DETAIL_ID" nullable="true" remarks="ID of an associated receipt detail record if applicable" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="PAYMENT_GL_ACCOUNT_ID" nullable="true" remarks="ID of the GL account posted to, for specific payment types" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="PAYMENT_GL_ACCOUNT_NAME" nullable="true" remarks="Name of the GL account posted to, for specific payment types" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="PAYMENT_GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number posted to, for specific payment types" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="48" name="CREDIT_CARD_FEE_SURCHARGE_AMOUNT" nullable="true" remarks="Amount of credit card surcharge fee for this payment" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="49" name="CONVENIENCE_FEE_AMOUNT" nullable="true" remarks="Amount of convenience fee for this payment" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="GIFT_CERTIFICATE_ID" nullable="true" remarks="ID of the gift certificate for the payment or refund" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="VOIDED" nullable="false" remarks="Whether the receipt header has been voided (Yes/No)" size="2" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="SUBSIDY_USAGE_ID" nullable="true" remarks="Subsidy usage id is the reference of subsidy table." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="SUBSIDY_USAGE_TRANSACTION_ID" nullable="true" remarks="Subsidy usage transaction id is the reference of the transactions which is paid by subsidy." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="55" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="RECEIPT_PAYMENT_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="REFERENCE_VALUES" numRows="0" remarks="Miscellaneous reference values to support cascading updates." schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21496&#13;&#10;--FileName=dbo.REFERENCE_VALUES.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.REFERENCE_VALUES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.REFERENCE_TABLE,&#13;&#10;    src.REFERENCE_COLUMN,&#13;&#10;    src.REFERENCE_ID,&#13;&#10;    src.REFERENCE_VALUE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.REFERENCE_VALUES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="REFERENCE_TABLE" nullable="true" remarks="The name of the source table that the reference value is from" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="REFERENCE_COLUMN" nullable="true" remarks="The name of the source column that the reference value is from" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="REFERENCE_ID" nullable="true" remarks="The primary key ID from the reference table that identifies the reference value" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="REFERENCE_VALUE" nullable="true" remarks="The referenced value" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="REFERENCE_TABLE" sequenceNumberInPK="1"/>
         <primaryKey column="REFERENCE_COLUMN" sequenceNumberInPK="2"/>
         <primaryKey column="REFERENCE_ID" sequenceNumberInPK="3"/>
      </table>
      <table catalog="ActiveHub" name="REPORT_DEFINITIONS" numRows="0" remarks="Your organization's report definitions which have been saved for reprinting or scheduling" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.REPORT_DEFINITIONS &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.REPORT_DEFINITION_ID,&#13;&#10;    src.REPORT_TITLE,&#13;&#10;    src.REPORT_TYPE_ID,&#13;&#10;    rv1.REFERENCE_VALUE AS REPORT_TYPE_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.LAST_MODIFIED_DATE_TIME,&#13;&#10;    src.LIST_TYPE,&#13;&#10;    src.LIST_SIZE,&#13;&#10;    src.IS_PLAIN_FORMAT,&#13;&#10;    src.USE_PAYER,&#13;&#10;    src.MARK_RECORDS_AS_EXPORTED,&#13;&#10;    src.IS_INSTRUCTOR_LIST,&#13;&#10;    src.ENABLE_SCHEDULE_REPORT,&#13;&#10;    src.SCHEDULE_FROM_DATE,&#13;&#10;    src.SCHEDULE_TO_DATE,&#13;&#10;    src.SCHEDULE_WEEK_DAYS,&#13;&#10;    (CASE WHEN SUBSTRING(src.SCHEDULE_WEEK_DAYS, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS SCHEDULE_SUNDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.SCHEDULE_WEEK_DAYS, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS SCHEDULE_MONDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.SCHEDULE_WEEK_DAYS, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS SCHEDULE_TUESDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.SCHEDULE_WEEK_DAYS, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS SCHEDULE_WEDNESDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.SCHEDULE_WEEK_DAYS, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS SCHEDULE_THURSDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.SCHEDULE_WEEK_DAYS, 6, 1) = 1 THEN 'Yes' ELSE 'No' END) AS SCHEDULE_FRIDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.SCHEDULE_WEEK_DAYS, 7, 1) = 1 THEN 'Yes' ELSE 'No' END) AS SCHEDULE_SATURDAY,&#13;&#10;    src.SCHEDULE_WEEKS_OF_MONTH,&#13;&#10;    (CASE WHEN SUBSTRING(src.SCHEDULE_WEEKS_OF_MONTH, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS SCHEDULE_WEEK_OF_MONTH_1,&#13;&#10;    (CASE WHEN SUBSTRING(src.SCHEDULE_WEEKS_OF_MONTH, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS SCHEDULE_WEEK_OF_MONTH_2,&#13;&#10;    (CASE WHEN SUBSTRING(src.SCHEDULE_WEEKS_OF_MONTH, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS SCHEDULE_WEEK_OF_MONTH_3,&#13;&#10;    (CASE WHEN SUBSTRING(src.SCHEDULE_WEEKS_OF_MONTH, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS SCHEDULE_WEEK_OF_MONTH_4,&#13;&#10;    (CASE WHEN SUBSTRING(src.SCHEDULE_WEEKS_OF_MONTH, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS SCHEDULE_WEEK_OF_MONTH_5,&#13;&#10;    src.SUNDAY_START_TIME,&#13;&#10;    src.MONDAY_START_TIME,&#13;&#10;    src.TUESDAY_START_TIME,&#13;&#10;    src.WEDNESDAY_START_TIME,&#13;&#10;    src.THURSDAY_START_TIME,&#13;&#10;    src.FRIDAY_START_TIME,&#13;&#10;    src.SATURDAY_START_TIME,&#13;&#10;    src.LAST_SCHEDULED_RUN_DATE_TIME,&#13;&#10;    src.SEND_CONFIRMATION_EMAIL,&#13;&#10;    src.EMAIL_SUBJECT,&#13;&#10;    src.ENABLE_EXPORT_TO_FTP,&#13;&#10;    src.FTP_ADDRESS,&#13;&#10;    src.FTP_PORT,&#13;&#10;    src.FTP_USER_NAME,&#13;&#10;    src.FTP_ENCRYPTION,&#13;&#10;    src.FTP_FILE_NAME,&#13;&#10;    src.FTP_FILE_NAME_APPEND_DATE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.REPORT_DEFINITION_ID AS source_id,&#13;&#10;    src.FROMEMAILADDRESS_ID AS FROM_EMAIL_ADDRESS_ID,&#13;&#10;&#9;fea.EMAIL_ADDRESS AS FROM_EMAIL_ADDRESS,&#13;&#10;&#9;src.RECIPIENT_ADDRESSES&#9;&#13;&#10;FROM &#13;&#10;    hub.REPORT_DEFINITIONS src&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.SITE_ID&#13;&#10;    LEFT JOIN hub.FROM_EMAIL_ADDRESSES fea ON fea.ORG_ID = src.ORG_ID AND fea.FROM_EMAIL_ADDRESS_ID = src.FROMEMAILADDRESS_ID&#13;&#10;    LEFT JOIN hub.REFERENCE_VALUES rv1 ON (rv1.ORG_ID = src.ORG_ID AND rv1.REFERENCE_ID = src.REPORT_TYPE_ID AND rv1.REFERENCE_TABLE = 'REPORT_TYPES');&#13;&#10;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="REPORT_DEFINITION_ID" nullable="false" remarks="The report definition ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="COUPON_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCHES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="REPORT_TITLE" nullable="true" remarks="The report title" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="REPORT_TYPE_ID" nullable="true" remarks="The ID of the report type" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="REPORT_TYPE_NAME" nullable="true" remarks="The name of the report type" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SITE_ID" nullable="true" remarks="The ID of the specific site that the report belongs to (NULL for all sites)" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SITE_NAME" nullable="true" remarks="The name of the specific site that the report belongs to (NULL for all sites)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_MODIFIED_DATE_TIME" nullable="true" remarks="The date and time that the report definition was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="LIST_TYPE" nullable="true" remarks="The type of listing that the report is generated based upon (Dynamic / Static)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="LIST_SIZE" nullable="true" remarks="The size of the listing that the report is generated based upon if known" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="IS_PLAIN_FORMAT" nullable="true" remarks="Whether the report is to be generated using a plain format if applicable (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="USE_PAYER" nullable="true" remarks="Whether the payer should be used rather than the registrant if applicable (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="MARK_RECORDS_AS_EXPORTED" nullable="true" remarks="Whether the records included in a financial export should be marked as exported (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="IS_INSTRUCTOR_LIST" nullable="true" remarks="Whether the report should be included in the list of reports available to instructors (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ENABLE_SCHEDULE_REPORT" nullable="true" remarks="Whether the report is scheduled to automatically print based on a defined schedule (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="SCHEDULE_FROM_DATE" nullable="true" remarks="The starting date that the report should automatically print from" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="SCHEDULE_TO_DATE" nullable="true" remarks="The ending date that the report should automatically print until" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SCHEDULE_WEEK_DAYS" nullable="true" remarks="Whether the report is scheduled to print on specific days of the week" size="7" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="SCHEDULE_SUNDAY" nullable="false" remarks="Whether the report is scheduled to print on Sundays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="SCHEDULE_MONDAY" nullable="false" remarks="Whether the report is scheduled to print on Mondays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="SCHEDULE_TUESDAY" nullable="false" remarks="Whether the report is scheduled to print on Tuesdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="SCHEDULE_WEDNESDAY" nullable="false" remarks="Whether the report is scheduled to print on Wednesdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="SCHEDULE_THURSDAY" nullable="false" remarks="Whether the report is scheduled to print on Thursdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="SCHEDULE_FRIDAY" nullable="false" remarks="Whether the report is scheduled to print on Fridays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="SCHEDULE_SATURDAY" nullable="false" remarks="Whether the report is scheduled to print on Saturdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="SCHEDULE_WEEKS_OF_MONTH" nullable="true" remarks="Whether the report is scheduled to print during specific weeks of the month" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="SCHEDULE_WEEK_OF_MONTH_1" nullable="false" remarks="Whether the report is scheduled to print during the first week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="SCHEDULE_WEEK_OF_MONTH_2" nullable="false" remarks="Whether the report is scheduled to print during the second week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="SCHEDULE_WEEK_OF_MONTH_3" nullable="false" remarks="Whether the report is scheduled to print during the third week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="SCHEDULE_WEEK_OF_MONTH_4" nullable="false" remarks="Whether the report is scheduled to print during the fourth week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="SCHEDULE_WEEK_OF_MONTH_5" nullable="false" remarks="Whether the report is scheduled to print during the last week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="SUNDAY_START_TIME" nullable="true" remarks="The start time that the report is scheduled to print on Sundays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="MONDAY_START_TIME" nullable="true" remarks="The start time that the report is scheduled to print on Mondays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="TUESDAY_START_TIME" nullable="true" remarks="The start time that the report is scheduled to print on Tuesdays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="WEDNESDAY_START_TIME" nullable="true" remarks="The start time that the report is scheduled to print on Wednesdays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="THURSDAY_START_TIME" nullable="true" remarks="The start time that the report is scheduled to print on Thursdays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="FRIDAY_START_TIME" nullable="true" remarks="The start time that the report is scheduled to print on Fridays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="SATURDAY_START_TIME" nullable="true" remarks="The start time that the report is scheduled to print on Saturdays" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="37" name="LAST_SCHEDULED_RUN_DATE_TIME" nullable="true" remarks="The last scheduled date and time that the report was automatically printed" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="SEND_CONFIRMATION_EMAIL" nullable="true" remarks="Whether a confirmation email should be sent after the report is successfully printed or exported (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="EMAIL_SUBJECT" nullable="true" remarks="The subject line for the confirmation email" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="ENABLE_EXPORT_TO_FTP" nullable="true" remarks="Whether the generated report should be exported to an FTP site (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="FTP_ADDRESS" nullable="true" remarks="The FTP address of the server where the generated report should be exported to" size="2000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="FTP_PORT" nullable="true" remarks="The port number that should be used when exporting the generated report to the FTP server" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="FTP_USER_NAME" nullable="true" remarks="The user name that should be used when exporting the generated report to the FTP server" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="FTP_ENCRYPTION" nullable="true" remarks="The encryption method that should be used when exporting the generated report to the FTP server" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="FTP_FILE_NAME" nullable="true" remarks="The file name that should be used when exporting the generated report to the FTP server" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="FTP_FILE_NAME_APPEND_DATE" nullable="true" remarks="Whether the current date should be added to the file name when exporting the generated report to the FTP server (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="47" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="source_id" nullable="false" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="FROM_EMAIL_ADDRESS_ID" nullable="true" remarks="Unique ID of the FROM_EMAIL_ADDRESSES table" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="FROM_EMAIL_ADDRESS" nullable="true" remarks="FROM_EMAIL_ADDRESS associated with FROM_EMAIL_ID" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="RECIPIENT_ADDRESSES" nullable="true" remarks="Recipient email addresses" size="2000" type="varchar" typeCode="12"/>
         <primaryKey column="REPORT_DEFINITION_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="REQUEST_REFUND" numRows="0" remarks="Refund Requests" schema="dbo" type="VIEW" viewSql="&#9;&#9;&#9;&#9;&#9;&#13;&#10;CREATE VIEW dbo.REQUEST_REFUND &#13;&#10;AS &#9;&#13;&#10;SELECT &#13;&#10;     rr.ACTIVE_HUB_KEY,&#13;&#10;&#9; rr.ORG_ID,&#13;&#10;&#9;rr.REQUESTREFUND_ID,&#13;&#10;&#9;rr.ORIGINALREQUESTREFUND_ID,&#13;&#10;&#9;rr.CUSTOMERACCOUNT_ID,&#13;&#10;&#9;rr.AMOUNT,&#13;&#10;&#9;rr.STATUS,&#13;&#10;&#9;rr.DATE_STAMP,&#13;&#10;&#9;rr.APPROVED_DATE_STAMP,&#13;&#10;&#9;rr.SITE_ID,&#13;&#10;&#9;si.SITE_NAME,&#13;&#10;&#9;rr.WORKSTATION_ID,&#13;&#10;&#9;ws.WORKSTATION_NAME,&#13;&#10;&#9;rr.SYSTEMUSER_ID,&#13;&#10;&#9;CONCAT(su.USER_FIRST_NAME, ' ', su.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;&#9;rr.APPROVED_SYSTEMUSER_ID,&#13;&#10;&#9;CONCAT(su2.USER_FIRST_NAME, ' ', su2.USER_LAST_NAME) AS APPROVED_SYSTEM_USER_NAME,&#13;&#10;&#9;rr.LAST_SYNC_TIME&#13;&#10;FROM hub.REQUEST_REFUND rr&#13;&#10;&#9;LEFT JOIN hub.SITES si ON si.SITE_ID = rr.SITE_ID AND si.ORG_ID = rr.ORG_ID&#13;&#10;&#9;LEFT JOIN hub.WORKSTATIONS WS ON WS.WORKSTATION_ID = rr.WORKSTATION_ID AND ws.ORG_ID = rr.ORG_ID&#13;&#10;&#9;LEFT JOIN hub.SYSTEM_USERS su ON su.SYSTEMUSER_ID = rr.SYSTEMUSER_ID AND su.ORG_ID = rr.ORG_ID&#13;&#10;&#9;LEFT JOIN hub.SYSTEM_USERS su2 ON su2.SYSTEMUSER_ID = rr.APPROVED_SYSTEMUSER_ID AND su2.ORG_ID = rr.ORG_ID&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The dbo record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="REQUESTREFUND_ID" nullable="false" remarks="The Refund Request ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ORIGINALREQUESTREFUND_ID" nullable="true" remarks="The original Refund Request ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOMERACCOUNT_ID" nullable="true" remarks="The customer account ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="5" name="AMOUNT" nullable="true" remarks="The amount of the Refund Request" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="STATUS" nullable="true" remarks="The status of the Refund Request" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="DATE_STAMP" nullable="true" remarks="The date and time the Refund Request was made" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="APPROVED_DATE_STAMP" nullable="true" remarks="The date and time the Refund Request was approved" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="SITE_ID" nullable="true" remarks="ID of the Site where the Refund Request was processed" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="SITE_NAME" nullable="true" remarks="Name of the Site where the Refund Request was processed" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="WORKSTATION_ID" nullable="true" remarks="ID of workstation where this Refund Request was processed" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="WORKSTATION_NAME" nullable="true" remarks="Name of workstation where this Refund Request was processed" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the system user who created the Refund Request" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the system user who created the Refund Request" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="APPROVED_SYSTEMUSER_ID" nullable="true" remarks="ID of the system user who approved the Refund Request" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="APPROVED_SYSTEM_USER_NAME" nullable="false" remarks="Name of the system user who approved the Refund Request" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="17" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time dbo record was last modified" size="16" type="datetime" typeCode="93"/>
      </table>
      <table catalog="ActiveHub" name="RESERVATION_DATE_RANGES" numRows="0" remarks="Contains information on configured reservation date ranges" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.RESERVATION_DATE_RANGES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.RESERVATION_DATE_RANGE_ID,&#13;&#10;    src.RESERVATION_DATE_RANGE_NAME,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.START_DATE,&#13;&#10;    src.END_DATE,&#13;&#10;    src.IN_PERSON_RESERVATION_DATE_TIME,&#13;&#10;    src.NON_RESIDENT_IN_PERSON_RESERVATION_DATE_TIME,&#13;&#10;    src.MEMBER_IN_PERSON_RESERVATION_DATE_TIME,&#13;&#10;    src.IN_PERSON_REGISTRATION_END_DATE_TIME,&#13;&#10;    src.INTERNET_RESERVATION_DATE_TIME,&#13;&#10;    src.NON_RESIDENT_INTERNET_RESERVATION_DATE_TIME,&#13;&#10;    src.MEMBER_INTERNET_RESERVATION_DATE_TIME,&#13;&#10;    src.INTERNET_REGISTRATION_END_DATE_TIME,&#13;&#10;    src.ALLOW_PRIORITY_RESERVATION,&#13;&#10;    src.PRIORITY_IN_PERSON_RESERVATION_DATE_TIME,&#13;&#10;    src.PRIORITY_NON_RESIDENT_IN_PERSON_RESERVATION_DATE_TIME,&#13;&#10;    src.PRIORITY_MEMBER_IN_PERSON_RESERVATION_DATE_TIME,&#13;&#10;    src.PRIORITY_IN_PERSON_REGISTRATION_END_DATE_TIME,&#13;&#10;    src.PRIORITY_INTERNET_RESERVATION_DATE_TIME,&#13;&#10;    src.PRIORITY_NON_RESIDENT_INTERNET_RESERVATION_DATE_TIME,&#13;&#10;    src.PRIORITY_MEMBER_INTERNET_RESERVATION_DATE_TIME,&#13;&#10;    src.PRIORITY_INTERNET_REGISTRATION_END_DATE_TIME,&#13;&#10;    CAST(src.IN_PERSON_RESERVATION_DATE_TIME AS DATE) AS IN_PERSON_RESERVATION_DATE_ONLY,&#13;&#10;    CAST(src.NON_RESIDENT_IN_PERSON_RESERVATION_DATE_TIME AS DATE) AS NON_RESIDENT_IN_PERSON_RESERVATION_DATE_ONLY,&#13;&#10;    CAST(src.MEMBER_IN_PERSON_RESERVATION_DATE_TIME AS DATE) AS MEMBER_IN_PERSON_RESERVATION_DATE_ONLY,&#13;&#10;    CAST(src.IN_PERSON_REGISTRATION_END_DATE_TIME AS DATE) AS IN_PERSON_REGISTRATION_END_DATE_ONLY,&#13;&#10;    CAST(src.INTERNET_RESERVATION_DATE_TIME AS DATE) AS INTERNET_RESERVATION_DATE_ONLY,&#13;&#10;    CAST(src.NON_RESIDENT_INTERNET_RESERVATION_DATE_TIME AS DATE) AS NON_RESIDENT_INTERNET_RESERVATION_DATE_ONLY,&#13;&#10;    CAST(src.MEMBER_INTERNET_RESERVATION_DATE_TIME AS DATE) AS MEMBER_INTERNET_RESERVATION_DATE_ONLY,&#13;&#10;    CAST(src.INTERNET_REGISTRATION_END_DATE_TIME AS DATE) AS INTERNET_REGISTRATION_END_DATE_ONLY,&#13;&#10;    CAST(src.PRIORITY_IN_PERSON_RESERVATION_DATE_TIME AS DATE) AS PRIORITY_IN_PERSON_RESERVATION_DATE_ONLY,&#13;&#10;    CAST(src.PRIORITY_NON_RESIDENT_IN_PERSON_RESERVATION_DATE_TIME AS DATE) AS PRIORITY_NON_RESIDENT_IN_PERSON_RESERVATION_DATE_ONLY,&#13;&#10;    CAST(src.PRIORITY_MEMBER_IN_PERSON_RESERVATION_DATE_TIME AS DATE) AS PRIORITY_MEMBER_IN_PERSON_RESERVATION_DATE_ONLY,&#13;&#10;    CAST(src.PRIORITY_IN_PERSON_REGISTRATION_END_DATE_TIME AS DATE) AS PRIORITY_IN_PERSON_REGISTRATION_END_DATE_ONLY,&#13;&#10;    CAST(src.PRIORITY_INTERNET_RESERVATION_DATE_TIME AS DATE) AS PRIORITY_INTERNET_RESERVATION_DATE_ONLY,&#13;&#10;    CAST(src.PRIORITY_NON_RESIDENT_INTERNET_RESERVATION_DATE_TIME AS DATE) AS PRIORITY_NON_RESIDENT_INTERNET_RESERVATION_DATE_ONLY,&#13;&#10;    CAST(src.PRIORITY_MEMBER_INTERNET_RESERVATION_DATE_TIME AS DATE) AS PRIORITY_MEMBER_INTERNET_RESERVATION_DATE_ONLY,&#13;&#10;    CAST(src.PRIORITY_INTERNET_REGISTRATION_END_DATE_TIME AS DATE) AS PRIORITY_INTERNET_REGISTRATION_END_DATE_ONLY,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.RESERVATION_DATE_RANGES src&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="RESERVATION_DATE_RANGE_ID" nullable="true" remarks="The reservation date range ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="RESERVATION_DATE_RANGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_AVAILABILITY"/>
            <child catalog="ActiveHub" column="RESERVATION_DATE_RANGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_TYPE_LINKS"/>
            <child catalog="ActiveHub" column="RESERVATION_DATE_RANGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_DATE_RANGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="RESERVATION_DATE_RANGE_NAME" nullable="true" remarks="The reservation date range name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FACILITY_ID" nullable="true" remarks="The ID of the facility if the reservation date range belongs to a specific facility" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FACILITY_NAME" nullable="true" remarks="The name of the facility if the reservation date range belongs to a specific facility" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="START_DATE" nullable="true" remarks="The start date of the reservation date range" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="END_DATE" nullable="true" remarks="The end date of the reservation date range" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="IN_PERSON_RESERVATION_DATE_TIME" nullable="true" remarks="The date and time that the window opens for in-person reservations" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="NON_RESIDENT_IN_PERSON_RESERVATION_DATE_TIME" nullable="true" remarks="The date and time that the window opens for in-person reservations for non-residents" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="MEMBER_IN_PERSON_RESERVATION_DATE_TIME" nullable="true" remarks="The date and time that the window opens for in-person reservations for members" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="IN_PERSON_REGISTRATION_END_DATE_TIME" nullable="true" remarks="The date and time that the window ends for in-person reservations" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="INTERNET_RESERVATION_DATE_TIME" nullable="true" remarks="The date and time that the window opens for online reservations" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="11" name="NON_RESIDENT_INTERNET_RESERVATION_DATE_TIME" nullable="true" remarks="The date and time that the window opens for online reservations for non-residents" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="12" name="MEMBER_INTERNET_RESERVATION_DATE_TIME" nullable="true" remarks="The date and time that the window opens for online reservations for members" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="INTERNET_REGISTRATION_END_DATE_TIME" nullable="true" remarks="The date and time that the window ends for online reservations" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ALLOW_PRIORITY_RESERVATION" nullable="true" remarks="Whether the reservation date range allows priority reservation for returning renters (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="15" name="PRIORITY_IN_PERSON_RESERVATION_DATE_TIME" nullable="true" remarks="The date and time that the window opens for priority in-person reservations" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="PRIORITY_NON_RESIDENT_IN_PERSON_RESERVATION_DATE_TIME" nullable="true" remarks="The date and time that the window opens for priority in-person reservations for non-residents" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="17" name="PRIORITY_MEMBER_IN_PERSON_RESERVATION_DATE_TIME" nullable="true" remarks="The date and time that the window opens for priority in-person reservations for members" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="PRIORITY_IN_PERSON_REGISTRATION_END_DATE_TIME" nullable="true" remarks="The date and time that the window ends for priority in-person reservations" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="19" name="PRIORITY_INTERNET_RESERVATION_DATE_TIME" nullable="true" remarks="The date and time that the window opens for priority online reservations" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="20" name="PRIORITY_NON_RESIDENT_INTERNET_RESERVATION_DATE_TIME" nullable="true" remarks="The date and time that the window opens for priority online reservations for non-residents" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="21" name="PRIORITY_MEMBER_INTERNET_RESERVATION_DATE_TIME" nullable="true" remarks="The date and time that the window opens for priority online reservations for members" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="22" name="PRIORITY_INTERNET_REGISTRATION_END_DATE_TIME" nullable="true" remarks="The date and time that the window ends for priority online reservations" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="IN_PERSON_RESERVATION_DATE_ONLY" nullable="true" remarks="The date that the window opens for in-person reservations" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="NON_RESIDENT_IN_PERSON_RESERVATION_DATE_ONLY" nullable="true" remarks="The date that the window opens for in-person reservations for non-residents" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="MEMBER_IN_PERSON_RESERVATION_DATE_ONLY" nullable="true" remarks="The date that the window opens for in-person reservations for members" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="IN_PERSON_REGISTRATION_END_DATE_ONLY" nullable="true" remarks="The date that the window ends for in-person reservations" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="INTERNET_RESERVATION_DATE_ONLY" nullable="true" remarks="The date that the window opens for online reservations" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="NON_RESIDENT_INTERNET_RESERVATION_DATE_ONLY" nullable="true" remarks="The date that the window opens for online reservations for non-residents" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="MEMBER_INTERNET_RESERVATION_DATE_ONLY" nullable="true" remarks="The date that the window opens for online reservations for members" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="INTERNET_REGISTRATION_END_DATE_ONLY" nullable="true" remarks="The date that the window ends for online reservations" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="PRIORITY_IN_PERSON_RESERVATION_DATE_ONLY" nullable="true" remarks="The date that the window opens for priority in-person reservations" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="PRIORITY_NON_RESIDENT_IN_PERSON_RESERVATION_DATE_ONLY" nullable="true" remarks="The date that the window opens for priority in-person reservations for non-residents" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="PRIORITY_MEMBER_IN_PERSON_RESERVATION_DATE_ONLY" nullable="true" remarks="The date that the window opens for priority in-person reservations for members" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="PRIORITY_IN_PERSON_REGISTRATION_END_DATE_ONLY" nullable="true" remarks="The date that the window ends for priority in-person reservations" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="PRIORITY_INTERNET_RESERVATION_DATE_ONLY" nullable="true" remarks="The date that the window opens for priority online reservations" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="PRIORITY_NON_RESIDENT_INTERNET_RESERVATION_DATE_ONLY" nullable="true" remarks="The date that the window opens for priority online reservations for non-residents" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="PRIORITY_MEMBER_INTERNET_RESERVATION_DATE_ONLY" nullable="true" remarks="The date that the window opens for priority online reservations for members" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="PRIORITY_INTERNET_REGISTRATION_END_DATE_ONLY" nullable="true" remarks="The date that the window ends for priority online reservations" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="40" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="RESERVATION_DATE_RANGE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="RESERVATION_GROUP_EQUIPMENT" numRows="0" remarks="Contains information on equipment that is linked to each reservation group" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.RESERVATION_GROUP_EQUIPMENT &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.RESERVATION_GROUP_ID,&#13;&#10;    rg1.RESERVATION_GROUP_NAME,&#13;&#10;    src.FACILITY_ID AS EQUIPMENT_ID,&#13;&#10;    fa1.FACILITY_NAME AS EQUIPMENT_NAME,&#13;&#10;    src.DISPLAY_ORDER,&#13;&#10;    src.FACILITYGROUPFACILITY_ID,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_LINKS src&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    JOIN hub.RESERVATION_GROUPS rg1 ON (rg1.RESERVATION_GROUP_ID = src.RESERVATION_GROUP_ID)&#13;&#10;    WHERE src.FACILITYGROUPFACILITY_ID IS NOT NULL&#13;&#10;    AND fa1.ITEM_TYPE_ID = 1;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="RESERVATION_GROUP_ID" nullable="true" remarks="The reservation group ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="RESERVATION_GROUP_NAME" nullable="true" remarks="The reservation group name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="EQUIPMENT_ID" nullable="true" remarks="The equipment ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="EQUIPMENT_NAME" nullable="true" remarks="The equipment name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="DISPLAY_ORDER" nullable="true" remarks="The order that this record should be displayed" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="FACILITYGROUPFACILITY_ID" nullable="true" remarks="The reservation group facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="RESERVATION_GROUP_FACILITIES" numRows="0" remarks="Contains information on facilities that are linked to each reservation group" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.RESERVATION_GROUP_FACILITIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.RESERVATION_GROUP_ID,&#13;&#10;    rg1.RESERVATION_GROUP_NAME,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.DISPLAY_ORDER,&#13;&#10;    src.FACILITYGROUPFACILITY_ID,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_LINKS src&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    JOIN hub.RESERVATION_GROUPS rg1 ON (rg1.RESERVATION_GROUP_ID = src.RESERVATION_GROUP_ID)&#13;&#10;    WHERE src.FACILITYGROUPFACILITY_ID IS NOT NULL&#13;&#10;    AND fa1.ITEM_TYPE_ID = 0;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="RESERVATION_GROUP_ID" nullable="true" remarks="The reservation group ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="RESERVATION_GROUP_NAME" nullable="true" remarks="The reservation group name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FACILITY_ID" nullable="true" remarks="The facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FACILITY_NAME" nullable="true" remarks="The facility name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="DISPLAY_ORDER" nullable="true" remarks="The order that this record should be displayed" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="FACILITYGROUPFACILITY_ID" nullable="true" remarks="The reservation group facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="RESERVATION_GROUP_INSTRUCTOR_FACILITIES" numRows="0" remarks="Contains information on instructor facilities that are linked to each reservation group" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.RESERVATION_GROUP_INSTRUCTOR_FACILITIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.RESERVATION_GROUP_ID,&#13;&#10;    rg1.RESERVATION_GROUP_NAME,&#13;&#10;    src.FACILITY_ID AS INSTRUCTOR_FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME AS INSTRUCTOR_FACILITY_NAME,&#13;&#10;    src.DISPLAY_ORDER,&#13;&#10;    src.FACILITYGROUPFACILITY_ID,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_LINKS src&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    JOIN hub.RESERVATION_GROUPS rg1 ON (rg1.RESERVATION_GROUP_ID = src.RESERVATION_GROUP_ID)&#13;&#10;    WHERE src.FACILITYGROUPFACILITY_ID IS NOT NULL&#13;&#10;    AND fa1.ITEM_TYPE_ID = 2;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="RESERVATION_GROUP_ID" nullable="true" remarks="The reservation group ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="RESERVATION_GROUP_NAME" nullable="true" remarks="The reservation group name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="INSTRUCTOR_FACILITY_ID" nullable="true" remarks="The instructor facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="INSTRUCTOR_FACILITY_NAME" nullable="true" remarks="The instructor facility name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="DISPLAY_ORDER" nullable="true" remarks="The order that this record should be displayed" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="FACILITYGROUPFACILITY_ID" nullable="true" remarks="The reservation group facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="RESERVATION_GROUPS" numRows="0" remarks="Contains information on reservation groups" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.RESERVATION_GROUPS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.RESERVATION_GROUP_ID,&#13;&#10;    src.RESERVATION_GROUP_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.CENTER_ID,&#13;&#10;    ce1.CENTER_NAME,&#13;&#10;    src.EVENT_TYPE_ID,&#13;&#10;    et1.EVENT_TYPE_NAME,&#13;&#10;    src.SCHEDULE_TYPE_ID,&#13;&#10;    st1.SCHEDULE_TYPE_NAME,&#13;&#10;    src.CUSTOMER_TYPE_ID,&#13;&#10;    ct1.CUSTOMER_TYPE_NAME,&#13;&#10;    src.TIME_INCREMENT_MINUTES,&#13;&#10;    src.STARTING_TIME,&#13;&#10;    src.ENDING_TIME,&#13;&#10;    src.SHOW_ONLINE,&#13;&#10;    src.NON_EXCLUSIVE_EVENT,&#13;&#10;    src.DISPLAY_IMAGE_ID,&#13;&#10;    uf1.DISPLAY_NAME AS DISPLAY_IMAGE_NAME,&#13;&#10;    src.SHOW_ONLINE_LANDING_PAGE,&#13;&#10;    src.LANDING_PAGE_HEADING,&#13;&#10;    src.LANDING_PAGE_FIELD_ORDER,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.RESERVATION_GROUPS src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.CENTERS ce1 ON (ce1.CENTER_ID = src.CENTER_ID)&#13;&#10;    LEFT JOIN hub.EVENT_TYPES et1 ON (et1.EVENT_TYPE_ID = src.EVENT_TYPE_ID)&#13;&#10;    LEFT JOIN hub.SCHEDULE_TYPES st1 ON (st1.SCHEDULE_TYPE_ID = src.SCHEDULE_TYPE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf1 ON (uf1.UPLOADED_FILE_ID = src.DISPLAY_IMAGE_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMER_TYPES ct1 ON (ct1.CUSTOMER_TYPE_ID = src.CUSTOMER_TYPE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="RESERVATION_GROUP_ID" nullable="true" remarks="Reservation group ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="RESERVATION_GROUP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_LINKS"/>
            <child catalog="ActiveHub" column="FACILITY_GROUP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="RESERVATION_GROUP_NAME" nullable="true" remarks="Reservation group name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_ID" nullable="true" remarks="The ID of the site that this reservation group belongs to (NULL for all sites)" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_NAME" nullable="true" remarks="The name of the site that this reservation group belongs to (NULL for all sites)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CENTER_ID" nullable="true" remarks="The ID of the center that this reservation group is specific to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CENTERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CENTER_NAME" nullable="true" remarks="The name of the center that this reservation group is specific to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="EVENT_TYPE_ID" nullable="true" remarks="The ID of the default event type to be used with this reservation group" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="EVENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="EVENT_TYPE_NAME" nullable="true" remarks="The name of the default event type to be used with this reservation group" size="102" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SCHEDULE_TYPE_ID" nullable="true" remarks="The ID of the default schedule type to be used with this reservation group" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SCHEDULE_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SCHEDULE_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="SCHEDULE_TYPE_NAME" nullable="true" remarks="The name of the default schedule type to be used with this reservation group" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="CUSTOMER_TYPE_ID" nullable="true" remarks="The ID of the default customer type to be used with this reservation group" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="CUSTOMER_TYPE_NAME" nullable="true" remarks="The name of the default customer type to be used with this reservation group" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="TIME_INCREMENT_MINUTES" nullable="true" remarks="The booking time increment in minutes to be displayed for this reservation group" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="STARTING_TIME" nullable="true" remarks="The availability starting time to be displayed for this reservation group" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ENDING_TIME" nullable="true" remarks="The availability ending time to be displayed for this reservation group" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="SHOW_ONLINE" nullable="true" remarks="Whether this reservation group should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="NON_EXCLUSIVE_EVENT" nullable="true" remarks="Whether this reservation group supports non-exclusive events (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="DISPLAY_IMAGE_ID" nullable="true" remarks="The ID of the image to be displayed for this reservation group" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="DISPLAY_IMAGE_NAME" nullable="true" remarks="The name of the image to be displayed for this reservation group" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="SHOW_ONLINE_LANDING_PAGE" nullable="true" remarks="Whether this reservation group should be displayed on the online landing page (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="LANDING_PAGE_HEADING" nullable="true" remarks="The heading to be displayed on the online landing page" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="LANDING_PAGE_FIELD_ORDER" nullable="true" remarks="The position order where this reservation group should be displayed on the online landing page" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="23" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="RESERVATION_GROUP_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="SAVED_CREDIT_CARD_HISTORY" numRows="0" remarks="History of updates and deletions of saved credit card and electronic payment information" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.SAVED_CREDIT_CARD_HISTORY &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.SAVED_CREDIT_CARD_HISTORY_ID,&#13;&#10;    src.SAVED_CREDIT_CARD_ID,&#13;&#10;    src.UPDATED_DATE_TIME,&#13;&#10;    CAST(src.UPDATED_DATE_TIME AS DATE) AS UPDATED_DATE_ONLY,&#13;&#10;    src.UPDATED_SYSTEMUSER_ID,&#13;&#10;    NULLIF(CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME), '') AS UPDATED_SYSTEM_USER_NAME,&#13;&#10;    src.UPDATED_WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME AS UPDATED_WORKSTATION_NAME,&#13;&#10;    src.IS_DELETED,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS CUSTOMER_NAME,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_LAST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ', ', ''), cu1.CUSTOMER_FIRST_NAME), '') AS CUSTOMER_NAME_LAST_FIRST,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.CARD_TYPE_ID,&#13;&#10;    ct1.CARD_TYPE_NAME AS CARD_TYPE,&#13;&#10;    src.CARD_NUMBER,&#13;&#10;    src.CARD_EXPIRATION,&#13;&#10;    src.BANK_ROUTING_NUMBER,&#13;&#10;    src.BANK_ACCOUNT_NUMBER,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.UNKNOWN_WALLET_ACCOUNT,&#13;&#10;    src.AUTO_UPDATES_DISABLED,&#13;&#10;    (CASE src.AUTO_UPDATES_DISABLED_REASON&#13;&#10;        WHEN 'C' THEN 'C - closed account'&#13;&#10;        WHEN 'Q' THEN 'Q - contact card holder'&#13;&#10;        ELSE src.AUTO_UPDATES_DISABLED_REASON&#13;&#10;        END) AS AUTO_UPDATES_DISABLED_REASON,&#13;&#10;    src.LAST_UPDATED_DATE_TIME,&#13;&#10;    CAST(src.LAST_UPDATED_DATE_TIME AS DATE) AS LAST_UPDATED_DATE_ONLY,&#13;&#10;    src.LAST_UPDATED_SYSTEMUSER_ID,&#13;&#10;    NULLIF(CONCAT(su2.USER_FIRST_NAME, IIF(su2.USER_FIRST_NAME IS NOT NULL AND su2.USER_LAST_NAME IS NOT NULL, ' ', ''), su2.USER_LAST_NAME), '') AS LAST_UPDATED_SYSTEM_USER_NAME,&#13;&#10;    src.LAST_UPDATED_WORKSTATION_ID,&#13;&#10;    ws2.WORKSTATION_NAME AS LAST_UPDATED_WORKSTATION_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.SAVED_CREDIT_CARD_HISTORY src&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.COMPANY_ID = src.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.SYSTEMUSER_ID = src.UPDATED_SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su2 ON (su2.SYSTEMUSER_ID = src.LAST_UPDATED_SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.WORKSTATION_ID = src.UPDATED_WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws2 ON (ws2.WORKSTATION_ID = src.LAST_UPDATED_WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.CARD_TYPES ct1 ON (ct1.CARD_TYPE_ID = src.CARD_TYPE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="SAVED_CREDIT_CARD_HISTORY_ID" nullable="false" remarks="Saved credit card history ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SAVED_CREDIT_CARD_ID" nullable="true" remarks="Saved credit card ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SAVED_CREDIT_CARD_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SAVED_CREDIT_CARDS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="2" name="UPDATED_DATE_TIME" nullable="true" remarks="The date and time that the payment information was updated or deleted" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="UPDATED_DATE_ONLY" nullable="true" remarks="The date that the payment information was updated or deleted (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="UPDATED_SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who updated or deleted the payment information" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="UPDATED_SYSTEM_USER_NAME" nullable="true" remarks="The name of the system user who updated or deleted the payment information" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="UPDATED_WORKSTATION_ID" nullable="true" remarks="The ID of the workstation where the payment information was updated or deleted" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="UPDATED_WORKSTATION_NAME" nullable="true" remarks="The name of the workstation where the payment information was updated or deleted" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="IS_DELETED" nullable="true" remarks="Whether this payment information has been deleted and is no longer saved for further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CUSTOMER_ID" nullable="true" remarks="The customer ID that the payment information belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="CUSTOMER_NAME" nullable="true" remarks="The name of the customer that the payment information belongs to" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="CUSTOMER_NAME_LAST_FIRST" nullable="true" remarks="The name of the customer that the payment information belongs to (last name, first name)" size="512" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="COMPANY_ID" nullable="true" remarks="The company ID that the payment information belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="COMPANY_NAME" nullable="true" remarks="The name of the company that the payment information belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="CARD_TYPE_ID" nullable="true" remarks="Type ID of credit card (if known)" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CARD_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="CARD_TYPE" nullable="true" remarks="Type of credit card (if known)" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="CARD_NUMBER" nullable="true" remarks="Masked credit card account number" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="CARD_EXPIRATION" nullable="true" remarks="Credit card expiration date" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="BANK_ROUTING_NUMBER" nullable="true" remarks="Masked bank routing number for ECP payments" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="BANK_ACCOUNT_NUMBER" nullable="true" remarks="Masked bank account number for ECP payments" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="IS_RETIRED" nullable="true" remarks="Whether this payment information has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="UNKNOWN_WALLET_ACCOUNT" nullable="true" remarks="Whether the unmasked payment information has been purged from the saved wallet in the payment processing system (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="AUTO_UPDATES_DISABLED" nullable="true" remarks="Whether automatic updates of credit card number and expiration date have been suspended for this saved payment information (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="AUTO_UPDATES_DISABLED_REASON" nullable="true" remarks="The reason that automatic updates of credit card number and expiration date have been suspended for this saved payment information" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="24" name="LAST_UPDATED_DATE_TIME" nullable="true" remarks="The last updated date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="LAST_UPDATED_DATE_ONLY" nullable="true" remarks="The last updated date (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="LAST_UPDATED_SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who last updated the payment information" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="LAST_UPDATED_SYSTEM_USER_NAME" nullable="true" remarks="The name of the system user who last updated the payment information" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="LAST_UPDATED_WORKSTATION_ID" nullable="true" remarks="The ID of the workstation where the payment information was last updated" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="LAST_UPDATED_WORKSTATION_NAME" nullable="true" remarks="The name of the workstation where the payment information was last updated" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="30" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="SAVED_CREDIT_CARD_HISTORY_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="SAVED_CREDIT_CARDS" numRows="0" remarks="Saved credit card and electronic payment information" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.SAVED_CREDIT_CARDS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.SAVED_CREDIT_CARD_ID,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS CUSTOMER_NAME,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_LAST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ', ', ''), cu1.CUSTOMER_FIRST_NAME), '') AS CUSTOMER_NAME_LAST_FIRST,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.SAVED_CARD_NAME,&#13;&#10;    src.CARD_TYPE_ID,&#13;&#10;    ct1.CARD_TYPE_NAME AS CARD_TYPE,&#13;&#10;    src.CARD_NUMBER,&#13;&#10;    src.CARD_EXPIRATION,&#13;&#10;    src.BANK_ACCOUNT_TYPE,&#13;&#10;    src.BANK_ROUTING_NUMBER,&#13;&#10;    src.BANK_ACCOUNT_NUMBER,&#13;&#10;    src.IS_SECONDARY_PAYMENT,&#13;&#10;    src.LAST_UPDATED_DATE_TIME,&#13;&#10;    CAST (src.LAST_UPDATED_DATE_TIME AS DATE) AS LAST_UPDATED_DATE_ONLY,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.EXCLUDE_CREDIT_CARD,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.UNKNOWN_WALLET_ACCOUNT,&#13;&#10;    src.AUTO_UPDATES_DISABLED,&#13;&#10;    (CASE src.AUTO_UPDATES_DISABLED_REASON&#13;&#10;        WHEN 'C' THEN 'C - closed account'&#13;&#10;        WHEN 'Q' THEN 'Q - contact card holder'&#13;&#10;        ELSE src.AUTO_UPDATES_DISABLED_REASON&#13;&#10;        END) AS AUTO_UPDATES_DISABLED_REASON,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.SAVED_CREDIT_CARDS src&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.COMPANY_ID = src.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.CARD_TYPES ct1 ON (ct1.CARD_TYPE_ID = src.CARD_TYPE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SAVED_CREDIT_CARD_ID" nullable="true" remarks="Saved credit card ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="SAVED_CREDIT_CARD_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="SAVED_CREDIT_CARD_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SAVED_CREDIT_CARD_HISTORY"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_ID" nullable="true" remarks="The customer ID that the payment information belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMER_NAME" nullable="true" remarks="The name of the customer that the payment information belongs to" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOMER_NAME_LAST_FIRST" nullable="true" remarks="The name of the customer that the payment information belongs to (last name, first name)" size="512" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="COMPANY_ID" nullable="true" remarks="The company ID that the payment information belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="COMPANY_NAME" nullable="true" remarks="The name of the company that the payment information belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SAVED_CARD_NAME" nullable="true" remarks="Saved name for the saved credit card or electronic payment information" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CARD_TYPE_ID" nullable="true" remarks="Type ID of credit card (if known)" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CARD_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CARD_TYPE" nullable="true" remarks="Type of credit card (if known)" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="CARD_NUMBER" nullable="true" remarks="Masked credit card account number" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="CARD_EXPIRATION" nullable="true" remarks="Credit card expiration date" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="BANK_ACCOUNT_TYPE" nullable="true" remarks="Bank account type for ECP payments" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="BANK_ROUTING_NUMBER" nullable="true" remarks="Masked bank routing number for ECP payments" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="BANK_ACCOUNT_NUMBER" nullable="true" remarks="Masked bank account number for ECP payments" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="IS_SECONDARY_PAYMENT" nullable="true" remarks="Whether this payment information is designated as the backup payment type (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="LAST_UPDATED_DATE_TIME" nullable="true" remarks="The last updated date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="LAST_UPDATED_DATE_ONLY" nullable="true" remarks="The last updated date (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who last updated the payment information" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="SYSTEM_USER_NAME" nullable="false" remarks="The name of the system user who last updated the payment information" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="WORKSTATION_ID" nullable="true" remarks="The ID of the workstation where the payment information was last updated" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="WORKSTATION_NAME" nullable="true" remarks="The name of the workstation where the payment information was last updated" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="EXCLUDE_CREDIT_CARD" nullable="true" remarks="Whether this payment information should be excluded from display on payment screens (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="IS_RETIRED" nullable="true" remarks="Whether this payment information has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="UNKNOWN_WALLET_ACCOUNT" nullable="true" remarks="Whether the unmasked payment information has been purged from the saved wallet in the payment processing system (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="AUTO_UPDATES_DISABLED" nullable="true" remarks="Whether automatic updates of credit card number and expiration date have been suspended for this saved payment information (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="AUTO_UPDATES_DISABLED_REASON" nullable="true" remarks="The reason that automatic updates of credit card number and expiration date have been suspended for this saved payment information" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="27" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="SAVED_CREDIT_CARD_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="SCHEDULE_TYPES" numRows="0" remarks="Contains information on defined schedule types for reservations" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.SCHEDULE_TYPES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.SCHEDULE_TYPE_ID,&#13;&#10;    src.SCHEDULE_TYPE_NAME,&#13;&#10;    src.SCHEDULE_TYPE_CODE,&#13;&#10;    src.APPLY_RESERVATION_CHARGES,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.CALENDAR_COLOR,&#13;&#10;    src.BOOKING_ASSIGNMENT,&#13;&#10;    src.PAY_INSTRUCTOR_FOR,&#13;&#10;    src.DEFAULT_INSTRUCTOR_ROLE_ID,&#13;&#10;    ir1.INSTRUCTOR_ROLE_NAME AS DEFAULT_INSTRUCTOR_ROLE_NAME,&#13;&#10;    src.DEFAULT_DEPARTMENT_ID,&#13;&#10;    adep.ACTIVITY_DEPARTMENT_NAME AS DEFAULT_DEPARTMENT_NAME,&#13;&#10;    src.DEFAULT_EXPENSE_GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS DEFAULT_EXPENSE_GLACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS DEFAULT_EXPENSE_GLACCOUNT_NUMBER,&#13;&#10;    src.DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID,&#13;&#10;    gl2.ACCOUNTNAME AS DEFAULT_EXPENSE_OFFSET_GLACCOUNT_NAME,&#13;&#10;    gl2.ACCOUNTNUMBER AS DEFAULT_EXPENSE_OFFSET_GLACCOUNT_NUMBER,&#13;&#10;    src.AUTO_COMPLETE_RECEIPT,&#13;&#10;    src.HIDE_NOTES,&#13;&#10;    src.HIDE_DISCLAIMERS,&#13;&#10;    src.HIDE_CHECKLIST_ITEMS,&#13;&#10;    src.HIDE_APPROVAL_STAGES,&#13;&#10;    src.HIDE_CUSTOM_QUESTIONS,&#13;&#10;    src.DEFAULT_CUSTOMER,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.SCHEDULE_TYPES src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.GLACCOUNT_ID = src.DEFAULT_EXPENSE_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl2 ON (gl2.GLACCOUNT_ID = src.DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.INSTRUCTOR_ROLES ir1 ON (ir1.INSTRUCTOR_ROLE_ID = src.DEFAULT_INSTRUCTOR_ROLE_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_DEPARTMENTS adep ON (adep.ACTIVITY_DEPARTMENT_ID = src.DEFAULT_DEPARTMENT_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="SCHEDULE_TYPE_ID" nullable="true" remarks="The schedule type ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="SCHEDULE_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="EVENT_TYPES"/>
            <child catalog="ActiveHub" column="SCHEDULE_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="SCHEDULE_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_USAGE_REVENUE"/>
            <child catalog="ActiveHub" column="SCHEDULE_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RESERVATION_GROUPS"/>
            <child catalog="ActiveHub" column="SCHEDULE_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SCHEDULE_TYPE_NAME" nullable="true" remarks="The schedule type name" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SCHEDULE_TYPE_CODE" nullable="true" remarks="The schedule type code" size="2" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="APPLY_RESERVATION_CHARGES" nullable="true" remarks="Whether reservation charges should be applied for reservations of this schedule type (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SITE_ID" nullable="true" remarks="The ID of the site that this schedule type belongs to, or null for all sites" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SITE_NAME" nullable="true" remarks="The name of the site that this schedule type belongs to, or null for all sites" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CALENDAR_COLOR" nullable="true" remarks="The color code that reservations" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="BOOKING_ASSIGNMENT" nullable="true" remarks="The type of booking assignment for reservations of this schedule type (Selected during booking / League Games / Activity Meeting Dates / Private Lessons / Daycare Sessions / External Reservation from API)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="PAY_INSTRUCTOR_FOR" nullable="true" remarks="Whether the instructor should be paid for a reservation of this schedule type (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="DEFAULT_INSTRUCTOR_ROLE_ID" nullable="true" remarks="The default instructor role ID for a reservation of this schedule type" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="INSTRUCTOR_ROLE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="INSTRUCTOR_ROLES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="DEFAULT_INSTRUCTOR_ROLE_NAME" nullable="true" remarks="The default instructor role name for a reservation of this schedule type" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="DEFAULT_DEPARTMENT_ID" nullable="true" remarks="The default instructor department ID for a reservation of this schedule type" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="DEFAULT_DEPARTMENT_NAME" nullable="true" remarks="The default instructor department name for a reservation of this schedule type" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DEFAULT_EXPENSE_GLACCOUNT_ID" nullable="true" remarks="The default expense GL account ID for a reservation of this schedule type" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="DEFAULT_EXPENSE_GLACCOUNT_NAME" nullable="true" remarks="The default expense GL account name for a reservation of this schedule type" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="DEFAULT_EXPENSE_GLACCOUNT_NUMBER" nullable="true" remarks="The default expense GL account number for a reservation of this schedule type" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID" nullable="true" remarks="The default expense offset GL account ID for a reservation of this schedule type" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="DEFAULT_EXPENSE_OFFSET_GLACCOUNT_NAME" nullable="true" remarks="The default expense offset GL account name for a reservation of this schedule type" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="DEFAULT_EXPENSE_OFFSET_GLACCOUNT_NUMBER" nullable="true" remarks="The default expense offset GL account number for a reservation of this schedule type" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="AUTO_COMPLETE_RECEIPT" nullable="true" remarks="Whether the receipt should be automatically completed when no reservation charges are being applied for reservations of this schedule type  (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="HIDE_NOTES" nullable="true" remarks="Whether the notes section of the reservation form should be hidden (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="HIDE_DISCLAIMERS" nullable="true" remarks="Whether the disclaimers section of the reservation form should be hidden (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="HIDE_CHECKLIST_ITEMS" nullable="true" remarks="Whether the checklist items section of the reservation form should be hidden (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="HIDE_APPROVAL_STAGES" nullable="true" remarks="Whether the approval stages section of the reservation form should be hidden (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="HIDE_CUSTOM_QUESTIONS" nullable="true" remarks="Whether the custom questions section of the reservation form should be hidden if there are no required questions (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="DEFAULT_CUSTOMER" nullable="true" remarks="Who the default customer is for reservations of this schedule type (None - prompt for customer / Drop-In Customer / Logged in System User)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="27" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="SCHEDULE_TYPE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="SCHEDULED_FEE_CHANGES" numRows="0" remarks="Master table showing scheduled fee changes data" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.SCHEDULED_FEE_CHANGES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.SCHEDULED_FEE_CHANGE_ID,&#13;&#10;    src.ACTIVITY_FEE_ID,&#13;&#10;    af1.CHARGE_NAME AS ACTIVITY_FEE_NAME,&#13;&#10;    src.PROGRAM_FEE_ID,&#13;&#10;    NULL AS PROGRAM_FEE_NAME,&#13;&#10;    src.PACKAGE_FEE_ID,&#13;&#10;    NULL AS PACKAGE_FEE_NAME,&#13;&#10;    src.STANDARD_CHARGE_ID,&#13;&#10;    NULL AS STANDARD_CHARGE_NAME,&#13;&#10;    src.SCHEDULED_FEE_AMOUNT,&#13;&#10;    src.SCHEDULED_FEE_DATE,&#13;&#10;    src.IS_APPLIED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.SCHEDULED_FEE_CHANGE_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.SCHEDULED_FEE_CHANGES src&#13;&#10;    JOIN hub.ACTIVITY_FEES af1 ON (af1.ORG_ID = src.ORG_ID AND af1.ACTIVITY_FEE_ID = src.ACTIVITY_FEE_ID)&#13;&#10;UNION ALL&#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.SCHEDULED_FEE_CHANGE_ID,&#13;&#10;    src.ACTIVITY_FEE_ID,&#13;&#10;    NULL AS ACTIVITY_FEE_NAME,&#13;&#10;    src.PROGRAM_FEE_ID,&#13;&#10;    pf1.CHARGE_NAME AS PROGRAM_FEE_NAME,&#13;&#10;    src.PACKAGE_FEE_ID,&#13;&#10;    NULL AS PACKAGE_FEE_NAME,&#13;&#10;    src.STANDARD_CHARGE_ID,&#13;&#10;    NULL AS STANDARD_CHARGE_NAME,&#13;&#10;    src.SCHEDULED_FEE_AMOUNT,&#13;&#10;    src.SCHEDULED_FEE_DATE,&#13;&#10;    src.IS_APPLIED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.SCHEDULED_FEE_CHANGE_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.SCHEDULED_FEE_CHANGES src&#13;&#10;    JOIN hub.PROGRAM_FEES pf1 ON (pf1.ORG_ID = src.ORG_ID AND pf1.PROGRAM_FEE_ID = src.PROGRAM_FEE_ID)&#13;&#10;UNION ALL&#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.SCHEDULED_FEE_CHANGE_ID,&#13;&#10;    src.ACTIVITY_FEE_ID,&#13;&#10;    NULL AS ACTIVITY_FEE_NAME,&#13;&#10;    src.PROGRAM_FEE_ID,&#13;&#10;    NULL AS PROGRAM_FEE_NAME,&#13;&#10;    src.PACKAGE_FEE_ID,&#13;&#10;    pf2.CHARGE_NAME AS PACKAGE_FEE_NAME,&#13;&#10;    src.STANDARD_CHARGE_ID,&#13;&#10;    NULL AS STANDARD_CHARGE_NAME,&#13;&#10;    src.SCHEDULED_FEE_AMOUNT,&#13;&#10;    src.SCHEDULED_FEE_DATE,&#13;&#10;    src.IS_APPLIED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.SCHEDULED_FEE_CHANGE_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.SCHEDULED_FEE_CHANGES src&#13;&#10;    JOIN hub.PACKAGE_FEES pf2 ON (pf2.ORG_ID = src.ORG_ID AND pf2.PACKAGE_FEE_ID = src.PACKAGE_FEE_ID)&#13;&#10;UNION ALL&#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.SCHEDULED_FEE_CHANGE_ID,&#13;&#10;    src.ACTIVITY_FEE_ID,&#13;&#10;    NULL AS ACTIVITY_FEE_NAME,&#13;&#10;    src.PROGRAM_FEE_ID,&#13;&#10;    NULL AS PROGRAM_FEE_NAME,&#13;&#10;    src.PACKAGE_FEE_ID,&#13;&#10;    NULL AS PACKAGE_FEE_NAME,&#13;&#10;    src.STANDARD_CHARGE_ID,&#13;&#10;    ch1.CHARGE_NAME AS STANDARD_CHARGE_NAME,&#13;&#10;    src.SCHEDULED_FEE_AMOUNT,&#13;&#10;    src.SCHEDULED_FEE_DATE,&#13;&#10;    src.IS_APPLIED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.SCHEDULED_FEE_CHANGE_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.SCHEDULED_FEE_CHANGES src&#13;&#10;    JOIN hub.STANDARD_CHARGES sc1 ON (sc1.ORG_ID = src.ORG_ID AND sc1.STANDARD_CHARGE_ID = src.STANDARD_CHARGE_ID)&#13;&#10;    JOIN hub.CHARGES ch1 ON (ch1.ORG_ID = src.ORG_ID AND ch1.CHARGE_ID = sc1.CHARGE_ID)&#13;&#10;&#13;&#10;UNION ALL&#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;&#13;&#10;    src.SCHEDULED_FEE_RATE_ID,&#13;&#10;    NULL AS ACTIVITY_FEE_ID,&#13;&#10;    NULL AS ACTIVITY_FEE_NAME,&#13;&#10;    NULL AS PROGRAM_FEE_ID,&#13;&#10;    NULL AS PROGRAM_FEE_NAME,&#13;&#10;    NULL AS PACKAGE_FEE_ID,&#13;&#10;    NULL AS PACKAGE_FEE_NAME,&#13;&#10;    src.STANDARDCHARGE_ID,&#13;&#10;    ch1.CHARGE_NAME AS STANDARD_CHARGE_NAME,&#13;&#10;    src.SCHEDULED_FEE,&#13;&#10;    src.SCHEDULED_DATE,&#13;&#10;    NULL AS IS_APPLIED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.SCHEDULED_FEE_RATE_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.SCHEDULED_FEE_RATES src&#13;&#10;    JOIN hub.STANDARD_CHARGES sc1 ON (sc1.ORG_ID = src.ORG_ID AND sc1.STANDARD_CHARGE_ID = src.STANDARDCHARGE_ID)&#13;&#10;    JOIN hub.CHARGES ch1 ON (ch1.ORG_ID = src.ORG_ID AND ch1.CHARGE_ID = sc1.CHARGE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SCHEDULED_FEE_CHANGE_ID" nullable="true" remarks="Scheduled fee change ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ACTIVITY_FEE_ID" nullable="true" remarks="Activity fee ID to be updated with the scheduled change" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_FEES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVITY_FEE_NAME" nullable="true" remarks="Activity fee name to be updated with the scheduled change" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PROGRAM_FEE_ID" nullable="true" remarks="Program fee ID to be updated with the scheduled change" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_FEES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PROGRAM_FEE_NAME" nullable="true" remarks="Program fee name to be updated with the scheduled change" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PACKAGE_FEE_ID" nullable="true" remarks="Package fee ID to be updated with the scheduled change" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_FEES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="PACKAGE_FEE_NAME" nullable="true" remarks="Package fee name to be updated with the scheduled change" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="STANDARD_CHARGE_ID" nullable="true" remarks="Standard charge ID to be updated with the scheduled change" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="STANDARD_CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STANDARD_CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="STANDARD_CHARGE_NAME" nullable="true" remarks="Standard charge name to be updated with the scheduled change" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="10" name="SCHEDULED_FEE_AMOUNT" nullable="true" remarks="New fee amount to be applied on the scheduled date" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="11" name="SCHEDULED_FEE_DATE" nullable="true" remarks="Date that the fee change is scheduled for" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="IS_APPLIED" nullable="true" remarks="Whether the scheduled fee change has been applied (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="SCHEDULED_FEE_CHANGE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="SCHOLARSHIP_APPLICATIONS" numRows="0" remarks="Participant Zones that are eligible for priority registration for an activity" schema="dbo" type="VIEW" viewSql="&#9;&#9;&#9;&#9;&#9;&#13;&#10;CREATE VIEW dbo.SCHOLARSHIP_APPLICATIONS &#13;&#10;AS &#9;&#13;&#10;SELECT &#13;&#10;&#9;src.ACTIVE_HUB_KEY,&#13;&#10;&#9;src.ORG_ID,&#13;&#10;&#9;src.SCHOLARSHIP_APPLICATION_ID,&#13;&#10;&#9;src.CUSTOMER_ID,&#13;&#10;&#9;CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME) AS CUSTOMER_NAME,&#13;&#10;&#9;src.CHARGE_ID,&#13;&#10;&#9;ch1.CHARGE_NAME,&#13;&#10;&#9;ch1.SCHOLARSHIP_TYPE,&#13;&#10;&#9;src.USER_ID,&#13;&#10;&#9;CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS USER_NAME,&#13;&#10;&#9;src.SITE_ID,&#13;&#10;&#9;si1.SITE_NAME,&#13;&#10;&#9;src.APPROVED_BY,&#13;&#10;&#9;CONCAT(su2.USER_FIRST_NAME, IIF(su2.USER_FIRST_NAME IS NOT NULL AND su2.USER_LAST_NAME IS NOT NULL, ' ', ''), su2.USER_LAST_NAME) AS APPROVER_NAME,&#13;&#10;&#9;src.DATE_STAMP,&#13;&#10;&#9;CASE&#13;&#10;&#9;&#9;WHEN src.STATUS IS NULL&#13;&#10;&#9;&#9;THEN NULL&#13;&#10;&#9;&#9;WHEN src.STATUS &lt;&gt; 0&#13;&#10;&#9;&#9;THEN 'Inactive'&#13;&#10;&#9;&#9;ELSE 'Active'&#13;&#10;&#9;END AS STATUS,&#13;&#10;&#9;src.APPROVAL_DATE,&#13;&#10;&#9;src.APPROVAL_SITE_ID,&#13;&#10;&#9;src.FAMILY_ID,&#13;&#10;&#9;src.ROW_VERSION,&#13;&#10;&#9;src.LAST_SYNC_TIME,&#13;&#10;&#9;src.ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM hub.SCHOLARSHIP_APPLICATIONS src&#13;&#10;  LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;  LEFT JOIN hub.CHARGES ch1 ON (ch1.ORG_ID = src.ORG_ID AND ch1.CHARGE_ID = src.CHARGE_ID)&#13;&#10;  LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.USER_ID)&#13;&#10;  LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.SITE_ID)&#13;&#10;  LEFT JOIN hub.SYSTEM_USERS su2 ON (su2.ORG_ID = src.ORG_ID AND su2.SYSTEMUSER_ID = src.APPROVED_BY)&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The dbo record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SCHOLARSHIP_APPLICATION_ID" nullable="false" remarks="The unique ID for this object" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMER_ID" nullable="true" remarks="The unique ID for this Customer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOMER_NAME" nullable="false" remarks="The name of the Customer" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CHARGE_ID" nullable="true" remarks="The Unique ID for the Scholarship Charge" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CHARGE_NAME" nullable="true" remarks="The name of the Scholarship charge" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SCHOLARSHIP_TYPE" nullable="true" remarks="The Type of the scholarship (Individual/Family)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="USER_ID" nullable="true" remarks="The unique ID for the User" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="USER_NAME" nullable="false" remarks="The name of the User" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="SITE_ID" nullable="true" remarks="The unique ID for the initiating Site" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="SITE_NAME" nullable="true" remarks="The name of the initiating site" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="APPROVED_BY" nullable="true" remarks="The ID of the approving user" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="APPROVER_NAME" nullable="false" remarks="The name of the approver" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="14" name="DATE_STAMP" nullable="true" remarks="Date entered" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="STATUS" nullable="true" remarks="Current Status" size="8" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="APPROVAL_DATE" nullable="true" remarks="Date of approval, if applicable" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="APPROVAL_SITE_ID" nullable="true" remarks="Site of approval, if applicable" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="FAMILY_ID" nullable="true" remarks="The unique ID of the associated Family" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="20" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time dbo record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The dbo sync process ID" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="SCHOLARSHIP_CHARGES" numRows="0" remarks="Master table showing defined scholarship charge data" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.SCHOLARSHIP_CHARGES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    src.CHARGE_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.SCHOLARSHIP_TYPE,&#13;&#10;    src.DISCOUNT_TYPE,&#13;&#10;    src.DISCOUNT_PERCENT,&#13;&#10;    src.DEFAULT_FEE_AMOUNT AS DISCOUNT_AMOUNT,&#13;&#10;    src.UNIT_OF_MEASURE AS DISCOUNT_UNITOFMEASURE,&#13;&#10;    src.DISCOUNT_PER_MODULE,&#13;&#10;    src.MEMBERSHIP_DISCOUNT_PERCENT AS MEMBERSHIP_PERCENT,&#13;&#10;    src.MEMBERSHIP_DISCOUNT_AMOUNT AS MEMBERSHIP_AMOUNT,&#13;&#10;    src.ACTIVITY_DISCOUNT_PERCENT AS ACTIVITY_PERCENT,&#13;&#10;    src.ACTIVITY_DISCOUNT_AMOUNT AS ACTIVITY_AMOUNT,&#13;&#10;    src.PROGRAM_DISCOUNT_PERCENT AS PROGRAM_DISCOUNT,&#13;&#10;    src.PROGRAM_DISCOUNT_AMOUNT AS PROGRAM_AMOUNT,&#13;&#10;    src.PROGRAM_UNIT_OF_MEASURE AS PROGRAM_UNITOFMEASURE,&#13;&#10;    src.SCHOLARSHIP_START_DATE AS START_DATE,&#13;&#10;    src.SCHOLARSHIP_EXPIRATION_DATE AS EXPIRATION_DATE,&#13;&#10;    src.SCHOLARSHIP_OPENING_BALANCE AS OPENING_BALANCE,&#13;&#10;    src.IS_BALANCE_UNLIMITED AS UNLIMITED_BALANCE,&#13;&#10;    src.AWARD_SCHOLARSHIP_AT_ENROLLMENT AS AWARD_AT_ENROLLMENT,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.DISABLE_SCHOLARSHIP_AFTER_FIRST_USE,&#13;&#10;    src.SCHOLARSHIP_OPENING_BALANCE_USE_SUM_OF_DONATED AS OPENING_BALANCE_USE_SUM_OF_DONATED,&#13;&#10;    src.TREAT_DISCOUNT_AS_PAYMENT,&#13;&#10;    src.FUND_SCHOLARSHIP_FROM_CAMPAIGN,&#13;&#10;    src.PREFILL_CONDITION,&#13;&#10;    src.OVERRIDE_FLAG,&#13;&#10;    src.ADD_TO_NEW_ACTIVITY,&#13;&#10;    src.TRIAL_CLASS_FEE,&#13;&#10;    src.CUSTOMER_TYPE_ID,&#13;&#10;    ct1.CUSTOMER_TYPE_NAME AS CUSTOMER_TYPE,&#13;&#10;    src.SEASON_ID,&#13;&#10;    se1.SEASON_NAME AS SEASON,&#13;&#10;    src.CHILD_SEASON_ID,&#13;&#10;    cs1.CHILD_SEASON_NAME AS CHILD_SEASON,&#13;&#10;    src.RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.CHARGES src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.GLACCOUNT_ID = src.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.SEASONS se1 ON (se1.SEASON_ID = src.SEASON_ID)&#13;&#10;    LEFT JOIN hub.CHILD_SEASONS cs1 ON (cs1.CHILD_SEASON_ID = src.CHILD_SEASON_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMER_TYPES ct1 ON (ct1.CUSTOMER_TYPE_ID = src.CUSTOMER_TYPE_ID)&#13;&#10;WHERE&#13;&#10;    src.CHARGE_TYPE = 'Scholarship';&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CHARGE_ID" nullable="true" remarks="Scholarship charge ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CHARGE_NAME" nullable="true" remarks="Scholarship charge name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_ID" nullable="true" remarks="Site ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SITE_NAME" nullable="true" remarks="The site to which the scholarship charge belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SCHOLARSHIP_TYPE" nullable="true" remarks="The type of scholarship (Individual / Family)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="DISCOUNT_TYPE" nullable="true" remarks="The type of discount (Amount / Percent)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="7" name="DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="8" name="DISCOUNT_AMOUNT" nullable="true" remarks="The default discount amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="DISCOUNT_UNITOFMEASURE" nullable="true" remarks="The default unit of measure for the amount" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="DISCOUNT_PER_MODULE" nullable="true" remarks="Whether the percent or amount of the scholarship may differ per module (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="11" name="MEMBERSHIP_PERCENT" nullable="true" remarks="The default discount percentage for memberships" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="12" name="MEMBERSHIP_AMOUNT" nullable="true" remarks="The default discount amount for memberships" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="13" name="ACTIVITY_PERCENT" nullable="true" remarks="The default discount percentage for activities" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="14" name="ACTIVITY_AMOUNT" nullable="true" remarks="The default discount amount for activities" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="15" name="PROGRAM_DISCOUNT" nullable="true" remarks="The default discount percentage for programs" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="16" name="PROGRAM_AMOUNT" nullable="true" remarks="The default discount amount for programs" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="PROGRAM_UNITOFMEASURE" nullable="true" remarks="The default unit of measure for the amount for programs" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="START_DATE" nullable="true" remarks="The first available date for this scholarship" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="EXPIRATION_DATE" nullable="true" remarks="The last available date for this scholarship" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="20" name="OPENING_BALANCE" nullable="true" remarks="The opening balance of the scholarship fund (if not unlimited)" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="UNLIMITED_BALANCE" nullable="true" remarks="Whether the scholarship fund has an unlimited balance (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="AWARD_AT_ENROLLMENT" nullable="true" remarks="Whether this scholarship is awarded at time of enrollment (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="GLACCOUNT_ID" nullable="true" remarks="The default GL account ID to post this scholarship to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="GL_ACCOUNT_NAME" nullable="true" remarks="GL account name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="DISABLE_SCHOLARSHIP_AFTER_FIRST_USE" nullable="true" remarks="Whether the scholarship should be disabled after the first use (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="OPENING_BALANCE_USE_SUM_OF_DONATED" nullable="true" remarks="Whether the opening balance of this scholarship should be the sum of the donated amounts (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="TREAT_DISCOUNT_AS_PAYMENT" nullable="true" remarks="Whether the scholarship discount should be treated as a payment (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="FUND_SCHOLARSHIP_FROM_CAMPAIGN" nullable="true" remarks="Whether the scholarship should be funded from a campaign (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="PREFILL_CONDITION" nullable="true" remarks="The prefill condition for this charge (Never / Always / If Resident / If Non-resident / If Minor / If Senior / If Internet / If Member / If Non-member)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="OVERRIDE_FLAG" nullable="true" remarks="Whether this charge can be overridden (Always / Never / By Password)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="ADD_TO_NEW_ACTIVITY" nullable="true" remarks="Whether this charge should automatically be added as a fee on new activities (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="TRIAL_CLASS_FEE" nullable="true" remarks="Whether this charge can be a trial class fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="CUSTOMER_TYPE_ID" nullable="true" remarks="The customer type ID that this charge applies to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="CUSTOMER_TYPE" nullable="true" remarks="The customer type that this charge applies to" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="SEASON_ID" nullable="true" remarks="The season ID that the scholarship is available for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="SEASON" nullable="true" remarks="The season that the scholarship is available for" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="CHILD_SEASON_ID" nullable="true" remarks="The child season ID that the scholarship is available for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="CHILD_SEASON" nullable="true" remarks="The child season that the scholarship is available for" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="RETIRED" nullable="true" remarks="Whether this scholarship charge has been retired (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="41" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="SEASONS" numRows="0" remarks="Your organization's defined seasons" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.SEASONS &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.SEASON_ID,&#13;&#10;    src.SEASON_NAME,&#13;&#10;    src.SEASON_NUMBER,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.START_DATE,&#13;&#10;    src.END_DATE,&#13;&#10;    src.IN_PERSON_REGISTRATION_DATE_TIME,&#13;&#10;    src.NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_TIME,&#13;&#10;    src.MEMBER_IN_PERSON_REGISTRATION_DATE_TIME,&#13;&#10;    src.IN_PERSON_REGISTRATION_END_DATE_TIME,&#13;&#10;    src.INTERNET_REGISTRATION_DATE_TIME,&#13;&#10;    src.NON_RESIDENT_INTERNET_REGISTRATION_DATE_TIME,&#13;&#10;    src.MEMBER_INTERNET_REGISTRATION_DATE_TIME,&#13;&#10;    src.INTERNET_REGISTRATION_END_DATE_TIME,&#13;&#10;    CAST(src.IN_PERSON_REGISTRATION_DATE_TIME AS DATE) AS IN_PERSON_REGISTRATION_DATE_ONLY,&#13;&#10;    CAST(src.NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_TIME AS DATE) AS NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_ONLY,&#13;&#10;    CAST(src.MEMBER_IN_PERSON_REGISTRATION_DATE_TIME AS DATE) AS MEMBER_IN_PERSON_REGISTRATION_DATE_ONLY,&#13;&#10;    CAST(src.IN_PERSON_REGISTRATION_END_DATE_TIME AS DATE) AS IN_PERSON_REGISTRATION_END_DATE_ONLY,&#13;&#10;    CAST(src.INTERNET_REGISTRATION_DATE_TIME AS DATE) AS INTERNET_REGISTRATION_DATE_ONLY,&#13;&#10;    CAST(src.NON_RESIDENT_INTERNET_REGISTRATION_DATE_TIME AS DATE) AS NON_RESIDENT_INTERNET_REGISTRATION_DATE_ONLY,&#13;&#10;    CAST(src.MEMBER_INTERNET_REGISTRATION_DATE_TIME AS DATE) AS MEMBER_INTERNET_REGISTRATION_DATE_ONLY,&#13;&#10;    CAST(src.INTERNET_REGISTRATION_END_DATE_TIME AS DATE) AS INTERNET_REGISTRATION_END_DATE_ONLY,&#13;&#10;    src.PAYROLL_PERIODS_IGNORE_SEASON_DATE_RANGE,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.SEASONS src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="SEASON_ID" nullable="false" remarks="The season ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
            <child catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHILD_SEASONS"/>
            <child catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
            <child catalog="ActiveHub" column="EARLY_REGISTRATION_UNTIL_SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="USAGE_FEES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SEASON_NAME" nullable="true" remarks="The season name" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SEASON_NUMBER" nullable="true" remarks="The season number if defined" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_ID" nullable="true" remarks="The ID of the site that the season is specific to (NULL for all sites)" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SITE_NAME" nullable="true" remarks="The name of the site that the season is specific to (NULL for all sites)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="START_DATE" nullable="true" remarks="The starting date of the season" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="END_DATE" nullable="true" remarks="The ending date of the season" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="IN_PERSON_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for in-person enrollments" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for online enrollments for non-residents" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="MEMBER_IN_PERSON_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for in-person enrollments for members" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="IN_PERSON_REGISTRATION_END_DATE_TIME" nullable="true" remarks="The date and time that registration ends for in-person enrollments" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="11" name="INTERNET_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for online enrollments" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="12" name="NON_RESIDENT_INTERNET_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for in-person enrollments for non-residents" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="MEMBER_INTERNET_REGISTRATION_DATE_TIME" nullable="true" remarks="The date and time that registration opens for online enrollments for members" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="14" name="INTERNET_REGISTRATION_END_DATE_TIME" nullable="true" remarks="The date and time that registration ends for online enrollments" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="IN_PERSON_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for in-person enrollments (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="NON_RESIDENT_IN_PERSON_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for online enrollments for non-residents (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="MEMBER_IN_PERSON_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for in-person enrollments for members (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="IN_PERSON_REGISTRATION_END_DATE_ONLY" nullable="true" remarks="The date that registration ends for in-person enrollments (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="INTERNET_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for online enrollments (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="NON_RESIDENT_INTERNET_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for in-person enrollments for non-residents (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="MEMBER_INTERNET_REGISTRATION_DATE_ONLY" nullable="true" remarks="The date that registration opens for online enrollments for members (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="INTERNET_REGISTRATION_END_DATE_ONLY" nullable="true" remarks="The date that registration ends for online enrollments (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="PAYROLL_PERIODS_IGNORE_SEASON_DATE_RANGE" nullable="true" remarks="Whether payroll periods ignore the start and end dates of this season (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="IS_RETIRED" nullable="true" remarks="Whether this season has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="25" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="SEASON_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="SESSIONS" numRows="0" remarks="DEPRECATED: Please use views dbo.PROGRAM_SESSIONS or dbo.SESSIONS_ONLY instead" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.SESSIONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.PROGRAM_SESSION_ID,&#13;&#10;    src.PROGRAM_ID,&#13;&#10;    src.PROGRAM_NAME,&#13;&#10;    src.SESSION_ID,&#13;&#10;    src.SESSION_NAME,&#13;&#10;    src.SESSION_ORDER_NUMBER,&#13;&#10;    src.DESCRIPTION,&#13;&#10;    src.PROGRAM_TYPE_ID,&#13;&#10;    src.PROGRAM_TYPE,&#13;&#10;    src.SITE_ID,&#13;&#10;    src.SITE_NAME,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    src.FACILITY_NAME,&#13;&#10;    src.RESERVE_FACILITIES,&#13;&#10;    src.ENROLLMIN,&#13;&#10;    src.ENROLLMAX,&#13;&#10;    src.ALLOW_ONLINE_REGISTRATION,&#13;&#10;    src.MIN_CLASSES_ENROLLED_ONLINE,&#13;&#10;    src.MAX_CLASSES_ENROLLED_ONLINE,&#13;&#10;    src.TRIAL_CLASS_CAPACITY,&#13;&#10;    src.BEGIN_DATE_TIME,&#13;&#10;    src.END_DATE_TIME,&#13;&#10;    src.BEGIN_DATE_ONLY,&#13;&#10;    src.END_DATE_ONLY,&#13;&#10;    src.SUNDAY,&#13;&#10;    src.MONDAY,&#13;&#10;    src.TUESDAY,&#13;&#10;    src.WEDNESDAY,&#13;&#10;    src.THURSDAY,&#13;&#10;    src.FRIDAY,&#13;&#10;    src.SATURDAY,&#13;&#10;    src.WEEK_OF_MONTH_1,&#13;&#10;    src.WEEK_OF_MONTH_2,&#13;&#10;    src.WEEK_OF_MONTH_3,&#13;&#10;    src.WEEK_OF_MONTH_4,&#13;&#10;    src.WEEK_OF_MONTH_5,&#13;&#10;    src.RETIRED,&#13;&#10;    src.MAX_FILLRATE,&#13;&#10;    src.AVG_FILLRATE,&#13;&#10;    src.TOTAL_ENROLLMENTS,&#13;&#10;    src.TOTAL_ENROLLED_PARTICIPANTS,&#13;&#10;    src.TOTAL_WAITLISTS,&#13;&#10;    src.TOTAL_WAITLISTED_PARTICIPANTS,&#13;&#10;    src.REGISTRATION_SESSION_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM&#13;&#10;    dbo.PROGRAM_SESSIONS src;&#13;&#10;(CONVERT([date],[BEGIN_DATE_TIME]))(CONVERT([date],[END_DATE_TIME]))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PROGRAM_SESSION_ID" nullable="true" remarks="Program / Session linking ID." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PROGRAM_ID" nullable="true" remarks="ID of the program that the session belongs to." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PROGRAM_NAME" nullable="true" remarks="Name of the program that the session belongs to." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SESSION_ID" nullable="true" remarks="Session ID." size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="SESSION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="QUALIFIED_SESSION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_FEES"/>
            <child catalog="ActiveHub" column="SESSION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_SESSIONS"/>
            <child catalog="ActiveHub" column="SESSION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SESSION_NAME" nullable="true" remarks="Name of the session." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SESSION_ORDER_NUMBER" nullable="true" remarks="The display order that this session should be displayed within this program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="DESCRIPTION" nullable="true" remarks="Description of the session" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="PROGRAM_TYPE_ID" nullable="true" remarks="The program type ID of the session" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="PROGRAM_TYPE" nullable="true" remarks="The program type of the session" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="SITE_ID" nullable="true" remarks="The site ID that the session belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="SITE_NAME" nullable="true" remarks="The site name that the session belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="FACILITY_ID" nullable="true" remarks="ID of the facility that the session takes place in." size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="FACILITY_NAME" nullable="true" remarks="Name of the facility that the session takes place in." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="RESERVE_FACILITIES" nullable="true" remarks="Whether facilities should be reserved for the generated session dates (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ENROLLMIN" nullable="true" remarks="Minimum enrollment for the session." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ENROLLMAX" nullable="true" remarks="Maximum enrollment for the session." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ALLOW_ONLINE_REGISTRATION" nullable="true" remarks="Whether online registration is allowed for this session (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="MIN_CLASSES_ENROLLED_ONLINE" nullable="true" remarks="The minimum number of dates that may be enrolled in when enrolling online" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="MAX_CLASSES_ENROLLED_ONLINE" nullable="true" remarks="The maximum number of dates that may be enrolled in when enrolling online" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="TRIAL_CLASS_CAPACITY" nullable="true" remarks="The maximum number of trial class enrollments allowed for this session" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="21" name="BEGIN_DATE_TIME" nullable="true" remarks="Starting date and time of the session." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="22" name="END_DATE_TIME" nullable="true" remarks="Ending date and time of the session." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="BEGIN_DATE_ONLY" nullable="true" remarks="Starting date of the session. (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="END_DATE_ONLY" nullable="true" remarks="Ending date of the session. (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="SUNDAY" nullable="false" remarks="Whether the session is configured for Sundays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="MONDAY" nullable="false" remarks="Whether the session is configured for Mondays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="TUESDAY" nullable="false" remarks="Whether the session is configured for Tuesdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="WEDNESDAY" nullable="false" remarks="Whether the session is configured for Wednesdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="THURSDAY" nullable="false" remarks="Whether the session is configured for Thursdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="FRIDAY" nullable="false" remarks="Whether the session is configured for Fridays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="SATURDAY" nullable="false" remarks="Whether the session is configured for Saturdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="WEEK_OF_MONTH_1" nullable="false" remarks="Whether the session is configured for days during the first week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="WEEK_OF_MONTH_2" nullable="false" remarks="Whether the session is configured for days during the second week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="WEEK_OF_MONTH_3" nullable="false" remarks="Whether the session is configured for days during the third week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="WEEK_OF_MONTH_4" nullable="false" remarks="Whether the session is configured for days during the fourth week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="WEEK_OF_MONTH_5" nullable="false" remarks="Whether the session is configured for days during the last week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="RETIRED" nullable="true" remarks="Whether the session has been retired (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="MAX_FILLRATE" nullable="true" remarks="The maximum Fill Rate of all session dates within the session" size="8" type="float" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="AVG_FILLRATE" nullable="true" remarks="The average Fill Rate of all session dates within the session" size="8" type="float" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="TOTAL_ENROLLMENTS" nullable="true" remarks="The total number of session time slot enrollments for the program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="TOTAL_ENROLLED_PARTICIPANTS" nullable="true" remarks="The total number of participants enrolled for any session in the program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="TOTAL_WAITLISTS" nullable="true" remarks="The total number of session time slots waitlists for the program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="TOTAL_WAITLISTED_PARTICIPANTS" nullable="true" remarks="The total number of participants waitlisted for any session in the program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="REGISTRATION_SESSION_ID" nullable="true" remarks="Unique identifier used to link the program registration to the specific program session." size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="45" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="SESSION_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="SESSIONS_ONLY" numRows="0" remarks="Master table showing FlexReg sessions" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.SESSIONS_ONLY&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.SESSION_ID,&#13;&#10;    src.SESSION_NAME,&#13;&#10;    src.DESCRIPTION,&#13;&#10;    src.PROGRAM_TYPE_ID,&#13;&#10;    pt1.PROGRAM_TYPE_NAME AS PROGRAM_TYPE,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.RESERVE_FACILITIES,&#13;&#10;    src.ENROLLMIN,&#13;&#10;    src.ENROLLMAX,&#13;&#10;    src.ALLOW_ONLINE_REGISTRATION,&#13;&#10;    src.MIN_CLASSES_ENROLLED_ONLINE,&#13;&#10;    src.MAX_CLASSES_ENROLLED_ONLINE,&#13;&#10;    src.TRIAL_CLASS_CAPACITY,&#13;&#10;    src.BEGIN_DATE_TIME,&#13;&#10;    src.END_DATE_TIME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKDAYS, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS SUNDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKDAYS, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS MONDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKDAYS, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS TUESDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKDAYS, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEDNESDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKDAYS, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS THURSDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKDAYS, 6, 1) = 1 THEN 'Yes' ELSE 'No' END) AS FRIDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKDAYS, 7, 1) = 1 THEN 'Yes' ELSE 'No' END) AS SATURDAY,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 1, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_1,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 2, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_2,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 3, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_3,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 4, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_4,&#13;&#10;    (CASE WHEN SUBSTRING(src.WEEKS_OF_MONTH, 5, 1) = 1 THEN 'Yes' ELSE 'No' END) AS WEEK_OF_MONTH_5,&#13;&#10;    src.BEGIN_DATE_ONLY,&#13;&#10;    src.END_DATE_ONLY,&#13;&#10;    src.TOTAL_ENROLLMENTS,&#13;&#10;    src.TOTAL_ENROLLED_PARTICIPANTS,&#13;&#10;    src.TOTAL_WAITLISTS,&#13;&#10;    src.TOTAL_WAITLISTED_PARTICIPANTS,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.MAX_FILLRATE,&#13;&#10;    src.AVG_FILLRATE,&#13;&#10;    src.DELETED&#13;&#10;FROM&#13;&#10;    hub.SESSIONS src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (src.SITE_ID = si1.SITE_ID)&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    LEFT JOIN hub.PROGRAM_TYPES pt1 ON (pt1.PROGRAM_TYPE_ID = src.PROGRAM_TYPE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SESSION_ID" nullable="true" remarks="Session ID." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SESSION_NAME" nullable="true" remarks="Name of the session." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="DESCRIPTION" nullable="true" remarks="Description of the session" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PROGRAM_TYPE_ID" nullable="true" remarks="The program type ID of the session" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PROGRAM_TYPE" nullable="true" remarks="The program type of the session" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SITE_ID" nullable="true" remarks="The site ID that the session belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SITE_NAME" nullable="true" remarks="The site name that the session belongs to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="FACILITY_ID" nullable="true" remarks="ID of the facility that the session takes place in." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="FACILITY_NAME" nullable="true" remarks="Name of the facility that the session takes place in." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="RESERVE_FACILITIES" nullable="true" remarks="Whether facilities should be reserved for the generated session dates (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ENROLLMIN" nullable="true" remarks="Minimum enrollment for the session." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ENROLLMAX" nullable="true" remarks="Maximum enrollment for the session." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ALLOW_ONLINE_REGISTRATION" nullable="true" remarks="Whether online registration is allowed for this session (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="MIN_CLASSES_ENROLLED_ONLINE" nullable="true" remarks="The minimum number of dates that may be enrolled in when enrolling online" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="MAX_CLASSES_ENROLLED_ONLINE" nullable="true" remarks="The maximum number of dates that may be enrolled in when enrolling online" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="TRIAL_CLASS_CAPACITY" nullable="true" remarks="The maximum number of trial class enrollments allowed for this session" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="17" name="BEGIN_DATE_TIME" nullable="true" remarks="Starting date and time of the session." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="END_DATE_TIME" nullable="true" remarks="Ending date and time of the session." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="19" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="SUNDAY" nullable="false" remarks="Whether the session is configured for Sundays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="MONDAY" nullable="false" remarks="Whether the session is configured for Mondays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="TUESDAY" nullable="false" remarks="Whether the session is configured for Tuesdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="WEDNESDAY" nullable="false" remarks="Whether the session is configured for Wednesdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="THURSDAY" nullable="false" remarks="Whether the session is configured for Thursdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="FRIDAY" nullable="false" remarks="Whether the session is configured for Fridays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="SATURDAY" nullable="false" remarks="Whether the session is configured for Saturdays (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="WEEK_OF_MONTH_1" nullable="false" remarks="Whether the session is configured for days during the first week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="WEEK_OF_MONTH_2" nullable="false" remarks="Whether the session is configured for days during the second week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="WEEK_OF_MONTH_3" nullable="false" remarks="Whether the session is configured for days during the third week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="WEEK_OF_MONTH_4" nullable="false" remarks="Whether the session is configured for days during the fourth week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="WEEK_OF_MONTH_5" nullable="false" remarks="Whether the session is configured for days during the last week of the month (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="BEGIN_DATE_ONLY" nullable="true" remarks="Starting date of the session. (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="END_DATE_ONLY" nullable="true" remarks="Ending date of the session. (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="TOTAL_ENROLLMENTS" nullable="true" remarks="The total number of session time slot enrollments for the program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="TOTAL_ENROLLED_PARTICIPANTS" nullable="true" remarks="The total number of participants enrolled for any session in the program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="TOTAL_WAITLISTS" nullable="true" remarks="The total number of session time slots waitlists for the program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="TOTAL_WAITLISTED_PARTICIPANTS" nullable="true" remarks="The total number of participants waitlisted for any session in the program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="MAX_FILLRATE" nullable="true" remarks="The maximum Fill Rate of all session dates within the session" size="8" type="float" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="AVG_FILLRATE" nullable="true" remarks="The average Fill Rate of all session dates within the session" size="8" type="float" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="DELETED" nullable="true" remarks="Whether the session has been marked as deleted (Yes/No)" size="5" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="SITES" numRows="0" remarks="Organization's sites. Can be used in various joins E.g. Activity Site, Revenue Site, Transaction Site" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.SITES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.SITE_ID,&#13;&#10;    src.SITE_NAME,&#13;&#10;    src.ADDRESS1,&#13;&#10;    src.ADDRESS2,&#13;&#10;    src.CITY,&#13;&#10;    src.STATE,&#13;&#10;    src.ZIPCODE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    ga1.GEOGRAPHIC_AREA_NAME AS GEOGRAPHIC_AREA,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.GEOGRAPHIC_AREA_ID,&#13;&#10;    src.EMAIL_FROM_ADDRESS,&#13;&#10;    src.PHONE1,&#13;&#10;    src.PHONE2,&#13;&#10;    src.PHONE3,&#13;&#10;    src.TAX_NAME_1,&#13;&#10;    src.TAX_NAME_2,&#13;&#10;    src.TAX_NAME_3,&#13;&#10;    src.TAX_NAME_4,&#13;&#10;    src.TAX_NAME_5,&#13;&#10;    src.TAX_NAME_6,&#13;&#10;    src.TAX_NAME_7,&#13;&#10;    src.TAX_NAME_8,&#13;&#10;    src.TAX_RATE_1,&#13;&#10;    src.TAX_RATE_2,&#13;&#10;    src.TAX_RATE_3,&#13;&#10;    src.TAX_RATE_4,&#13;&#10;    src.TAX_RATE_5,&#13;&#10;    src.TAX_RATE_6,&#13;&#10;    src.TAX_RATE_7,&#13;&#10;    src.TAX_RATE_8,&#13;&#10;    src.TAX_GLACCOUNT_ID_1,&#13;&#10;    src.TAX_GLACCOUNT_ID_2,&#13;&#10;    src.TAX_GLACCOUNT_ID_3,&#13;&#10;    src.TAX_GLACCOUNT_ID_4,&#13;&#10;    src.TAX_GLACCOUNT_ID_5,&#13;&#10;    src.TAX_GLACCOUNT_ID_6,&#13;&#10;    src.TAX_GLACCOUNT_ID_7,&#13;&#10;    src.TAX_GLACCOUNT_ID_8,&#13;&#10;    src.TAX_ABSORBED_1,&#13;&#10;    src.TAX_ABSORBED_2,&#13;&#10;    src.TAX_ABSORBED_3,&#13;&#10;    src.TAX_ABSORBED_4,&#13;&#10;    src.TAX_ABSORBED_5,&#13;&#10;    src.TAX_ABSORBED_6,&#13;&#10;    src.TAX_ABSORBED_7,&#13;&#10;    src.TAX_ABSORBED_8,&#13;&#10;    src.TAX_ORIGIN_1,&#13;&#10;    src.TAX_ORIGIN_2,&#13;&#10;    src.TAX_ORIGIN_3,&#13;&#10;    src.TAX_ORIGIN_4,&#13;&#10;    src.TAX_ORIGIN_5,&#13;&#10;    src.TAX_ORIGIN_6,&#13;&#10;    src.TAX_ORIGIN_7,&#13;&#10;    src.TAX_ORIGIN_8,&#13;&#10;    src.TAX_TABLE_ID_1,&#13;&#10;    src.TAX_TABLE_ID_2,&#13;&#10;    src.TAX_TABLE_ID_3,&#13;&#10;    src.TAX_TABLE_ID_4,&#13;&#10;    src.TAX_TABLE_ID_5,&#13;&#10;    src.TAX_TABLE_ID_6,&#13;&#10;    src.TAX_TABLE_ID_7,&#13;&#10;    src.TAX_TABLE_ID_8&#13;&#10;FROM &#13;&#10;    hub.SITES src&#13;&#10;    LEFT JOIN hub.GEOGRAPHIC_AREAS ga1 ON (ga1.GEOGRAPHIC_AREA_ID = src.GEOGRAPHIC_AREA_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SITE_ID" nullable="true" remarks="Site ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACCOUNT_CREDIT_HISTORY"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="TRANSACTION_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_PRIVATE_LESSONS"/>
            <child catalog="ActiveHub" column="REVENUE_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="TRANSACTION_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_HEADERS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CAMPAIGNS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CENTERS"/>
            <child catalog="ActiveHub" column="ACTIVITY_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHILD_WATCH_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHILD_WATCH_ROOMS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CREDIT_CARD_PROCESSING_LOG"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOM_QUESTIONS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_NOTES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
            <child catalog="ActiveHub" column="REVENUE_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="TRANSACTION_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="DISCLAIMERS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="EQUIPMENT_CATEGORIES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="EVENT_TYPES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="TRANSACTION_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_TYPES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FROM_EMAIL_ADDRESSES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GIFT_CARD_TYPE_SITES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="INSTRUCTORS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_SCHEDULES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="PACKAGE_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="OFFICIALS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PERMITS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS_CENTER_QUANTITY"/>
            <child catalog="ActiveHub" column="PRODUCT_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_SALES_DETAILS"/>
            <child catalog="ActiveHub" column="TRANSACTION_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_SALES_DETAILS"/>
            <child catalog="ActiveHub" column="REVENUE_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PRELIMINARY_DRAFTS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PREP_CODES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
            <child catalog="ActiveHub" column="REVENUE_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="TRANSACTION_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="REVENUE_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_GL_POSTINGS"/>
            <child catalog="ActiveHub" column="TRANSACTION_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_GL_POSTINGS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_HEADERS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="REPORT_DEFINITIONS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RESERVATION_GROUPS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SEASONS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SESSIONS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SKIP_DATES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STANDARD_CHARGES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SUPERVISORS"/>
            <child catalog="ActiveHub" column="REVENUE_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="TRANSACTION_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="USAGE_FEES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_NAME" nullable="true" remarks="Site Name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ADDRESS1" nullable="true" remarks="The first address line of the site." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ADDRESS2" nullable="true" remarks="The second address line of the site." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CITY" nullable="true" remarks="The city of the site." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="STATE" nullable="true" remarks="The state of the site." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ZIPCODE" nullable="true" remarks="The zip code of the site." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="GEOGRAPHIC_AREA" nullable="true" remarks="Geographic Area description" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="GEOGRAPHIC_AREA_ID" nullable="true" remarks="Geographic Area ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GEOGRAPHIC_AREA_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GEOGRAPHIC_AREAS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="EMAIL_FROM_ADDRESS" nullable="true" remarks="From email address" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PHONE1" nullable="true" remarks="Primary phone number" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="PHONE2" nullable="true" remarks="Secondary phone number" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="PHONE3" nullable="true" remarks="Fax phone number" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="TAX_NAME_1" nullable="true" remarks="Tax name for tax 1" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="TAX_NAME_2" nullable="true" remarks="Tax name for tax 2" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="TAX_NAME_3" nullable="true" remarks="Tax name for tax 3" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="TAX_NAME_4" nullable="true" remarks="Tax name for tax 4" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="TAX_NAME_5" nullable="true" remarks="Tax name for tax 5" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="TAX_NAME_6" nullable="true" remarks="Tax name for tax 6" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="TAX_NAME_7" nullable="true" remarks="Tax name for tax 7" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="TAX_NAME_8" nullable="true" remarks="Tax name for tax 8" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="25" name="TAX_RATE_1" nullable="true" remarks="Tax rate for tax 1" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="26" name="TAX_RATE_2" nullable="true" remarks="Tax rate for tax 2" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="27" name="TAX_RATE_3" nullable="true" remarks="Tax rate for tax 3" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="28" name="TAX_RATE_4" nullable="true" remarks="Tax rate for tax 4" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="29" name="TAX_RATE_5" nullable="true" remarks="Tax rate for tax 5" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="30" name="TAX_RATE_6" nullable="true" remarks="Tax rate for tax 6" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="31" name="TAX_RATE_7" nullable="true" remarks="Tax rate for tax 7" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="32" name="TAX_RATE_8" nullable="true" remarks="Tax rate for tax 8" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="TAX_GLACCOUNT_ID_1" nullable="true" remarks="GL Account ID for tax 1" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="TAX_GLACCOUNT_ID_2" nullable="true" remarks="GL Account ID for tax 2" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="TAX_GLACCOUNT_ID_3" nullable="true" remarks="GL Account ID for tax 3" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="TAX_GLACCOUNT_ID_4" nullable="true" remarks="GL Account ID for tax 4" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="TAX_GLACCOUNT_ID_5" nullable="true" remarks="GL Account ID for tax 5" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="TAX_GLACCOUNT_ID_6" nullable="true" remarks="GL Account ID for tax 6" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="TAX_GLACCOUNT_ID_7" nullable="true" remarks="GL Account ID for tax 7" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="TAX_GLACCOUNT_ID_8" nullable="true" remarks="GL Account ID for tax 8" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="TAX_ABSORBED_1" nullable="true" remarks="Whether tax 1 is included in the fee (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="TAX_ABSORBED_2" nullable="true" remarks="Whether tax 2 is included in the fee (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="TAX_ABSORBED_3" nullable="true" remarks="Whether tax 3 is included in the fee (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="TAX_ABSORBED_4" nullable="true" remarks="Whether tax 4 is included in the fee (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="TAX_ABSORBED_5" nullable="true" remarks="Whether tax 5 is included in the fee (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="TAX_ABSORBED_6" nullable="true" remarks="Whether tax 6 is included in the fee (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="TAX_ABSORBED_7" nullable="true" remarks="Whether tax 7 is included in the fee (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="TAX_ABSORBED_8" nullable="true" remarks="Whether tax 8 is included in the fee (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="TAX_ORIGIN_1" nullable="true" remarks="The origin of the state/province for tax 1" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="TAX_ORIGIN_2" nullable="true" remarks="The origin of the state/province for tax 2" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="TAX_ORIGIN_3" nullable="true" remarks="The origin of the state/province for tax 3" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="TAX_ORIGIN_4" nullable="true" remarks="The origin of the state/province for tax 4" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="TAX_ORIGIN_5" nullable="true" remarks="The origin of the state/province for tax 5" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="TAX_ORIGIN_6" nullable="true" remarks="The origin of the state/province for tax 6" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="TAX_ORIGIN_7" nullable="true" remarks="The origin of the state/province for tax 7" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="TAX_ORIGIN_8" nullable="true" remarks="The origin of the state/province for tax 8" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="TAX_TABLE_ID_1" nullable="true" remarks="The ID from the tax table for tax 1" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="TAX_TABLE_ID_2" nullable="true" remarks="The ID from the tax table for tax 2" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="TAX_TABLE_ID_3" nullable="true" remarks="The ID from the tax table for tax 3" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="TAX_TABLE_ID_4" nullable="true" remarks="The ID from the tax table for tax 4" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="61" name="TAX_TABLE_ID_5" nullable="true" remarks="The ID from the tax table for tax 5" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="TAX_TABLE_ID_6" nullable="true" remarks="The ID from the tax table for tax 6" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="TAX_TABLE_ID_7" nullable="true" remarks="The ID from the tax table for tax 7" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="TAX_TABLE_ID_8" nullable="true" remarks="The ID from the tax table for tax 8" size="4" type="int" typeCode="4"/>
         <primaryKey column="SITE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="SKILLS" numRows="0" remarks="Your organization's defined skills" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.SKILLS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.SKILL_ID,&#13;&#10;    src.SKILL_NAME,&#13;&#10;    src.SKILL_DESCRIPTION,&#13;&#10;    src.FOR_INSTRUCTORS,&#13;&#10;    src.FOR_ACTIVITIES,&#13;&#10;    src.FOR_OFFICIALS,&#13;&#10;    src.FOR_CUSTOMERS,&#13;&#10;    src.FOR_PROGRAMS,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.SKILLS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="SKILL_ID" nullable="false" remarks="The skill ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="SKILL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PREREQUISITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SKILL_NAME" nullable="true" remarks="The skill name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SKILL_DESCRIPTION" nullable="true" remarks="The skill description" size="2000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FOR_INSTRUCTORS" nullable="true" remarks="Whether this skill can be assigned to instructors (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="FOR_ACTIVITIES" nullable="true" remarks="Whether this skill can be assigned to activities (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="FOR_OFFICIALS" nullable="true" remarks="Whether this skill can be assigned to league officials (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="FOR_CUSTOMERS" nullable="true" remarks="Whether this skill can be assigned to customers (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="FOR_PROGRAMS" nullable="true" remarks="Whether this skill can be assigned to programs (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="SKILL_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="SKIP_DATE_EQUIPMENT" numRows="0" remarks="Contains information on equipment to be closed during the skip date period" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.SKIP_DATE_EQUIPMENT&#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.SKIP_DATE_ID,&#13;&#10;    sd1.SKIP_DATE_NAME,&#13;&#10;    src.FACILITY_ID AS EQUIPMENT_ID,&#13;&#10;    fa1.FACILITY_NAME AS EQUIPMENT_NAME,&#13;&#10;    src.SKIPDATE_FACILITY_ID,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_LINKS src&#13;&#10;    JOIN hub.SKIP_DATES sd1 ON (sd1.SKIP_DATE_ID = src.SKIP_DATE_ID)&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;WHERE&#13;&#10;    src.SKIPDATE_FACILITY_ID IS NOT NULL&#13;&#10;    AND fa1.ITEM_TYPE_ID = 1;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="SKIP_DATE_ID" nullable="true" remarks="The ID of the skip date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SKIP_DATE_NAME" nullable="true" remarks="The name of the skip date" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="EQUIPMENT_ID" nullable="true" remarks="The ID of the equipment to be closed during the skip date period" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="EQUIPMENT_NAME" nullable="true" remarks="The name of the equipment to be closed during the skip date period" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SKIPDATE_FACILITY_ID" nullable="true" remarks="The skip date facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="SKIP_DATE_FACILITIES" numRows="0" remarks="Contains information on facilities to be closed during the skip date period" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.SKIP_DATE_FACILITIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.SKIP_DATE_ID,&#13;&#10;    sd1.SKIP_DATE_NAME,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.SKIPDATE_FACILITY_ID,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.FACILITY_LINKS src&#13;&#10;    JOIN hub.SKIP_DATES sd1 ON (sd1.SKIP_DATE_ID = src.SKIP_DATE_ID)&#13;&#10;    JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;WHERE&#13;&#10;    src.SKIPDATE_FACILITY_ID IS NOT NULL&#13;&#10;    AND fa1.ITEM_TYPE_ID = 0;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="SKIP_DATE_ID" nullable="true" remarks="The ID of the skip date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SKIP_DATE_NAME" nullable="true" remarks="The name of the skip date" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FACILITY_ID" nullable="true" remarks="The ID of the facility to be closed during the skip date period" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FACILITY_NAME" nullable="true" remarks="The name of the facility to be closed during the skip date period" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SKIPDATE_FACILITY_ID" nullable="true" remarks="The skip date facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="SKIP_DATES" numRows="0" remarks="Contains information on configured skip dates" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.SKIP_DATES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.SKIP_DATE_ID,&#13;&#10;    src.SKIP_DATE_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.START_DATE,&#13;&#10;    src.START_TIME,&#13;&#10;    src.END_DATE,&#13;&#10;    src.END_TIME,&#13;&#10;    src.APPLY_EVERY_YEAR,&#13;&#10;    src.ACTIVITY_DEPARTMENT_ID,&#13;&#10;    adep.ACTIVITY_DEPARTMENT_NAME,&#13;&#10;    src.APPLY_MODULE_ACTIVITY,&#13;&#10;    src.APPLY_MODULE_DAYCARE,&#13;&#10;    src.APPLY_MODULE_FACILITY,&#13;&#10;    src.APPLY_MODULE_EQUIPMENT,&#13;&#10;    src.APPLY_MODULE_INSTRUCTOR,&#13;&#10;    src.SELECT_ALL_FACILITIES,&#13;&#10;    src.SELECT_NO_FACILITIES,&#13;&#10;    src.SELECT_ALL_EQUIPMENT,&#13;&#10;    src.SELECT_NO_EQUIPMENT,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.SKIP_DATES src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_DEPARTMENTS adep ON (adep.ACTIVITY_DEPARTMENT_ID = src.ACTIVITY_DEPARTMENT_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="SKIP_DATE_ID" nullable="true" remarks="The ID of the skip date" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="SKIP_DATE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_AVAILABILITY"/>
            <child catalog="ActiveHub" column="SKIP_DATE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_LINKS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SKIP_DATE_NAME" nullable="true" remarks="The name of the skip date" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_ID" nullable="true" remarks="The ID of the site that this skip date applies to (NULL for all sites)" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_NAME" nullable="true" remarks="The name of the site that this skip date applies to (NULL for all sites)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="START_DATE" nullable="true" remarks="The start date of the skip date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="START_TIME" nullable="true" remarks="The time on the start date that this skip date begins" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="END_DATE" nullable="true" remarks="The end date of the skip date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="END_TIME" nullable="true" remarks="The time on the end date that this skip date ends" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="APPLY_EVERY_YEAR" nullable="true" remarks="Whether this skip date should be applied on the same dates every year (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVITY_DEPARTMENT_ID" nullable="true" remarks="The ID of the activity department that this skip date applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ACTIVITY_DEPARTMENT_NAME" nullable="true" remarks="The name of the activity department that this skip date applies to" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="APPLY_MODULE_ACTIVITY" nullable="true" remarks="Whether this skip date applies to activities (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="APPLY_MODULE_DAYCARE" nullable="true" remarks="Whether this skip date applies to daycare sessions (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="APPLY_MODULE_FACILITY" nullable="true" remarks="Whether this skip date applies to facilities (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="APPLY_MODULE_EQUIPMENT" nullable="true" remarks="Whether this skip date applies to equipment (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="APPLY_MODULE_INSTRUCTOR" nullable="true" remarks="Whether this skip date applies to instructors (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SELECT_ALL_FACILITIES" nullable="true" remarks="Whether this skip date should have all facilities selected (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="SELECT_NO_FACILITIES" nullable="true" remarks="Whether this skip date should have no facilities selected (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="SELECT_ALL_EQUIPMENT" nullable="true" remarks="Whether this skip date should have all equipment selected (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="SELECT_NO_EQUIPMENT" nullable="true" remarks="Whether this skip date should have no equipment selected (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="21" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="SKIP_DATE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="STAGE_SEQUENCE_CUSTOM_QUESTIONS" numRows="0" remarks="Contains stage sequence links to custom questions that will initiate the stage sequence stage" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.STAGE_SEQUENCE_CUSTOM_QUESTIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.STAGE_SEQUENCE_ID,&#13;&#10;    ss1.STAGE_SEQUENCE_NAME,&#13;&#10;    src.CUSTOM_QUESTION_ID,&#13;&#10;    cq1.QUESTION AS CUSTOM_QUESTION,&#13;&#10;    src.CUSTOM_QUESTION_ANSWERS,&#13;&#10;    src.STAGE_SEQUENCE_LINK_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.STAGE_SEQUENCE_LINKS src&#13;&#10;    JOIN hub.STAGE_SEQUENCES ss1 ON (ss1.STAGE_SEQUENCE_ID = src.STAGE_SEQUENCE_ID)&#13;&#10;    JOIN hub.CUSTOM_QUESTIONS cq1 ON (cq1.CUSTOM_QUESTION_ID = src.CUSTOM_QUESTION_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="STAGE_SEQUENCE_ID" nullable="true" remarks="The stage sequence ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="STAGE_SEQUENCE_NAME" nullable="true" remarks="The stage sequence name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOM_QUESTION_ID" nullable="true" remarks="The ID of a custom question that will initiate this stage sequence stage, depending on the answer provided" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOM_QUESTION" nullable="true" remarks="The custom question that will initiate this stage sequence stage, depending on the answer provided" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOM_QUESTION_ANSWERS" nullable="true" remarks="The custom question answers that will initiate this stage sequence stage" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="STAGE_SEQUENCE_LINK_ID" nullable="false" remarks="The stage sequence link ID (for internal synchronization)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="STAGE_SEQUENCE_CUSTOMER_TYPES" numRows="0" remarks="Contains stage sequence links to customer types that will initiate the stage sequence stage" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.STAGE_SEQUENCE_CUSTOMER_TYPES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.STAGE_SEQUENCE_ID,&#13;&#10;    ss1.STAGE_SEQUENCE_NAME,&#13;&#10;    src.CUSTOMER_TYPE_ID,&#13;&#10;    ct1.CUSTOMER_TYPE_NAME,&#13;&#10;    src.STAGE_SEQUENCE_LINK_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.STAGE_SEQUENCE_LINKS src&#13;&#10;    JOIN hub.STAGE_SEQUENCES ss1 ON (ss1.STAGE_SEQUENCE_ID = src.STAGE_SEQUENCE_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMER_TYPES ct1 ON (ct1.CUSTOMER_TYPE_ID = src.CUSTOMER_TYPE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="STAGE_SEQUENCE_ID" nullable="true" remarks="The stage sequence ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="STAGE_SEQUENCE_NAME" nullable="true" remarks="The stage sequence name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_TYPE_ID" nullable="true" remarks="The ID of a customer type that will initiate this stage sequence stage" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMER_TYPE_NAME" nullable="true" remarks="The name of a customer type that will initiate this stage sequence stage" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="STAGE_SEQUENCE_LINK_ID" nullable="false" remarks="The stage sequence link ID (for internal synchronization)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="STAGE_SEQUENCE_EVENT_TYPES" numRows="0" remarks="Contains stage sequence links to event types that will initiate the stage sequence stage" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.STAGE_SEQUENCE_EVENT_TYPES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.STAGE_SEQUENCE_ID,&#13;&#10;    ss1.STAGE_SEQUENCE_NAME,&#13;&#10;    src.EVENT_TYPE_ID,&#13;&#10;    et1.EVENT_TYPE_NAME,&#13;&#10;    src.STAGE_SEQUENCE_LINK_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.STAGE_SEQUENCE_LINKS src&#13;&#10;    JOIN hub.STAGE_SEQUENCES ss1 ON (ss1.STAGE_SEQUENCE_ID = src.STAGE_SEQUENCE_ID)&#13;&#10;    JOIN hub.EVENT_TYPES et1 ON (et1.EVENT_TYPE_ID = src.EVENT_TYPE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="STAGE_SEQUENCE_ID" nullable="true" remarks="The stage sequence ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="STAGE_SEQUENCE_NAME" nullable="true" remarks="The stage sequence name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="EVENT_TYPE_ID" nullable="true" remarks="The ID of an event type that will initiate this stage sequence stage" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="EVENT_TYPE_NAME" nullable="true" remarks="The name of an event type that will initiate this stage sequence stage" size="102" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="STAGE_SEQUENCE_LINK_ID" nullable="false" remarks="The stage sequence link ID (for internal synchronization)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="STAGE_SEQUENCE_FACILITIES" numRows="0" remarks="Contains stage sequence links to facilities that will initiate the stage sequence stage" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.STAGE_SEQUENCE_FACILITIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.STAGE_SEQUENCE_ID,&#13;&#10;    ss1.STAGE_SEQUENCE_NAME,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.STAGE_SEQUENCE_LINK_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.STAGE_SEQUENCE_LINKS src&#13;&#10;    JOIN hub.STAGE_SEQUENCES ss1 ON (ss1.STAGE_SEQUENCE_ID = src.STAGE_SEQUENCE_ID)&#13;&#10;    JOIN hub.FACILITIES fa1 ON fa1.FACILITY_ID = src.FACILITY_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="STAGE_SEQUENCE_ID" nullable="true" remarks="The stage sequence ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="STAGE_SEQUENCE_NAME" nullable="true" remarks="The stage sequence name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FACILITY_ID" nullable="true" remarks="The ID of a facility that will initiate this stage sequence stage" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FACILITY_NAME" nullable="true" remarks="The name of a facility that will initiate this stage sequence stage" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="STAGE_SEQUENCE_LINK_ID" nullable="false" remarks="The stage sequence link ID (for internal synchronization)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="STAGE_SEQUENCE_FACILITY_TYPES" numRows="0" remarks="Contains stage sequence links to facility types that will initiate the stage sequence stage" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.STAGE_SEQUENCE_FACILITY_TYPES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.STAGE_SEQUENCE_ID,&#13;&#10;    ss1.STAGE_SEQUENCE_NAME,&#13;&#10;    src.FACILITY_TYPE_ID,&#13;&#10;    ft1.FACILITY_TYPE_NAME,&#13;&#10;    src.STAGE_SEQUENCE_LINK_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.STAGE_SEQUENCE_LINKS src&#13;&#10;    JOIN hub.STAGE_SEQUENCES ss1 ON (ss1.STAGE_SEQUENCE_ID = src.STAGE_SEQUENCE_ID)&#13;&#10;    JOIN hub.FACILITY_TYPES ft1 ON (ft1.FACILITY_TYPE_ID = src.FACILITY_TYPE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="STAGE_SEQUENCE_ID" nullable="true" remarks="The stage sequence ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="STAGE_SEQUENCE_NAME" nullable="true" remarks="The stage sequence name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FACILITY_TYPE_ID" nullable="true" remarks="The ID of a facility type that will initiate this stage sequence stage" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FACILITY_TYPE_NAME" nullable="true" remarks="The name of a facility type that will initiate this stage sequence stage" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="STAGE_SEQUENCE_LINK_ID" nullable="false" remarks="The stage sequence link ID (for internal synchronization)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="STAGE_SEQUENCE_LINKS" numRows="0" remarks="Contains stage sequence links to individual subject areas (for internal use)" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.STAGE_SEQUENCE_LINKS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.STAGE_SEQUENCE_ID,&#13;&#10;    ss1.STAGE_SEQUENCE_NAME,&#13;&#10;    src.EVENT_TYPE_ID,&#13;&#10;    et1.EVENT_TYPE_NAME,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.FACILITY_TYPE_ID,&#13;&#10;    ft1.FACILITY_TYPE_NAME,&#13;&#10;    src.CUSTOMER_TYPE_ID,&#13;&#10;    ct1.CUSTOMER_TYPE_NAME,&#13;&#10;    src.CUSTOM_QUESTION_ID,&#13;&#10;    cq1.QUESTION AS CUSTOM_QUESTION,&#13;&#10;    src.CUSTOM_QUESTION_ANSWERS,&#13;&#10;    src.STAGE_SEQUENCE_LINK_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.STAGE_SEQUENCE_LINKS src&#13;&#10;    LEFT JOIN hub.STAGE_SEQUENCES ss1 ON (ss1.STAGE_SEQUENCE_ID = src.STAGE_SEQUENCE_ID)&#13;&#10;    LEFT JOIN hub.EVENT_TYPES et1 ON (et1.EVENT_TYPE_ID = src.EVENT_TYPE_ID)&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON fa1.FACILITY_ID = src.FACILITY_ID&#13;&#10;    LEFT JOIN hub.FACILITY_TYPES ft1 ON (ft1.FACILITY_TYPE_ID = src.FACILITY_TYPE_ID)&#13;&#10;    LEFT JOIN hub.CUSTOM_QUESTIONS cq1 ON (cq1.CUSTOM_QUESTION_ID = src.CUSTOM_QUESTION_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMER_TYPES ct1 ON (ct1.CUSTOMER_TYPE_ID = src.CUSTOMER_TYPE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="STAGE_SEQUENCE_ID" nullable="true" remarks="The stage sequence ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="STAGE_SEQUENCE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGE_SEQUENCES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="STAGE_SEQUENCE_NAME" nullable="true" remarks="The stage sequence name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="EVENT_TYPE_ID" nullable="true" remarks="The ID of an event type that will initiate this stage sequence stage" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="EVENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="EVENT_TYPE_NAME" nullable="true" remarks="The name of an event type that will initiate this stage sequence stage" size="102" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="FACILITY_ID" nullable="true" remarks="The ID of a facility that will initiate this stage sequence stage" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="FACILITY_NAME" nullable="true" remarks="The name of a facility that will initiate this stage sequence stage" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="FACILITY_TYPE_ID" nullable="true" remarks="The ID of a facility type that will initiate this stage sequence stage" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="FACILITY_TYPE_NAME" nullable="true" remarks="The name of a facility type that will initiate this stage sequence stage" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CUSTOMER_TYPE_ID" nullable="true" remarks="The ID of a customer type that will initiate this stage sequence stage" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CUSTOMER_TYPE_NAME" nullable="true" remarks="The name of a customer type that will initiate this stage sequence stage" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="CUSTOM_QUESTION_ID" nullable="true" remarks="The ID of a custom question that will initiate this stage sequence stage, depending on the answer provided" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOM_QUESTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOM_QUESTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="CUSTOM_QUESTION" nullable="true" remarks="The custom question that will initiate this stage sequence stage, depending on the answer provided" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CUSTOM_QUESTION_ANSWERS" nullable="true" remarks="The custom question answers that will initiate this stage sequence stage" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="STAGE_SEQUENCE_LINK_ID" nullable="false" remarks="The stage sequence link ID (for internal synchronization)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="14" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="STAGE_SEQUENCE_LINK_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="STAGE_SEQUENCE_STAGE_CHILD_STAGES" numRows="0" remarks="Contains the parent to child links for stage sequences stages" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.STAGE_SEQUENCE_STAGE_CHILD_STAGES &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.STAGE_SEQUENCE_STAGE_ID,&#13;&#10;    ss1.STAGE_SEQUENCE_ID,&#13;&#10;    ss1.STAGE_SEQUENCE_NAME,&#13;&#10;    st1.STAGE_ID,&#13;&#10;    st1.STAGE_DESCRIPTION,&#13;&#10;    sss1.STAGE_TYPE,&#13;&#10;    src.CHILD_STAGE_SEQUENCE_SEQUENCE_STAGE_ID,&#13;&#10;    ss2.STAGE_SEQUENCE_ID AS CHILD_STAGE_SEQUENCE_ID,&#13;&#10;    ss2.STAGE_SEQUENCE_NAME AS CHILD_STAGE_SEQUENCE_NAME,&#13;&#10;    st2.STAGE_ID AS CHILD_STAGE_ID,&#13;&#10;    st2.STAGE_DESCRIPTION AS CHILD_STAGE_DESCRIPTION,&#13;&#10;    sss2.STAGE_TYPE AS CHILD_STAGE_TYPE,&#13;&#10;    src.STAGE_SEQUENCE_STAGE_DETAIL_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.STAGE_SEQUENCE_STAGE_CHILD_STAGES src&#13;&#10;    LEFT JOIN hub.STAGE_SEQUENCE_STAGES sss1 ON (sss1.STAGE_SEQUENCE_STAGE_ID = src.STAGE_SEQUENCE_STAGE_ID)&#13;&#10;    LEFT JOIN hub.STAGE_SEQUENCES ss1 ON (ss1.STAGE_SEQUENCE_ID = sss1.STAGE_SEQUENCE_ID)&#13;&#10;    LEFT JOIN hub.STAGES st1 ON (st1.STAGE_ID = sss1.STAGE_ID)&#13;&#10;    LEFT JOIN hub.STAGE_SEQUENCE_STAGES sss2 ON (sss2.STAGE_SEQUENCE_STAGE_ID = src.CHILD_STAGE_SEQUENCE_SEQUENCE_STAGE_ID)&#13;&#10;    LEFT JOIN hub.STAGE_SEQUENCES ss2 ON (ss2.STAGE_SEQUENCE_ID = sss2.STAGE_SEQUENCE_ID)&#13;&#10;    LEFT JOIN hub.STAGES st2 ON (st2.STAGE_ID = sss2.STAGE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="STAGE_SEQUENCE_STAGE_ID" nullable="true" remarks="The stage sequence stage ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="STAGE_SEQUENCE_STAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGE_SEQUENCE_STAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="STAGE_SEQUENCE_ID" nullable="true" remarks="The stage sequence ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="STAGE_SEQUENCE_NAME" nullable="true" remarks="The stage sequence name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="STAGE_ID" nullable="true" remarks="The stage ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="STAGE_DESCRIPTION" nullable="true" remarks="The stage name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="STAGE_TYPE" nullable="true" remarks="The stage type (Request Start / Request in Progress / Request Decision End)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CHILD_STAGE_SEQUENCE_SEQUENCE_STAGE_ID" nullable="true" remarks="The child stage sequence stage ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="STAGE_SEQUENCE_STAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGE_SEQUENCE_STAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CHILD_STAGE_SEQUENCE_ID" nullable="true" remarks="The child stage sequence ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CHILD_STAGE_SEQUENCE_NAME" nullable="true" remarks="The child stage sequence name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CHILD_STAGE_ID" nullable="true" remarks="The child stage ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="CHILD_STAGE_DESCRIPTION" nullable="true" remarks="The child stage name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="CHILD_STAGE_TYPE" nullable="true" remarks="The child stage type (Request Start / Request in Progress / Request Decision End)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="STAGE_SEQUENCE_STAGE_DETAIL_ID" nullable="false" remarks="The stage sequence stage detail ID (for internal synchronization)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="STAGE_SEQUENCE_STAGE_DETAIL_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="STAGE_SEQUENCE_STAGES" numRows="0" remarks="Contains defined stages that may be initiated from each stage sequence" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.STAGE_SEQUENCE_STAGES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.STAGE_SEQUENCE_ID,&#13;&#10;    ss1.STAGE_SEQUENCE_NAME,&#13;&#10;    src.STAGE_ID,&#13;&#10;    st1.STAGE_DESCRIPTION,&#13;&#10;    src.STAGE_TYPE,&#13;&#10;    src.STAGE_SEQUENCE_STAGE_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.STAGE_SEQUENCE_STAGES src&#13;&#10;    LEFT JOIN hub.STAGE_SEQUENCES ss1 ON (ss1.STAGE_SEQUENCE_ID = src.STAGE_SEQUENCE_ID)&#13;&#10;    LEFT JOIN hub.STAGES st1 ON (st1.STAGE_ID = src.STAGE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="STAGE_SEQUENCE_ID" nullable="true" remarks="The stage sequence ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="STAGE_SEQUENCE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGE_SEQUENCES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="STAGE_SEQUENCE_NAME" nullable="true" remarks="The stage sequence name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="STAGE_ID" nullable="true" remarks="The stage ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="STAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="STAGE_DESCRIPTION" nullable="true" remarks="The stage name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="STAGE_TYPE" nullable="true" remarks="The stage type (Request Start / Request in Progress / Request Decision End)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="STAGE_SEQUENCE_STAGE_ID" nullable="false" remarks="The stage sequence stage ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CHILD_STAGE_SEQUENCE_SEQUENCE_STAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGE_SEQUENCE_STAGE_CHILD_STAGES"/>
            <child catalog="ActiveHub" column="STAGE_SEQUENCE_STAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGE_SEQUENCE_STAGE_CHILD_STAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="STAGE_SEQUENCE_STAGE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="STAGE_SEQUENCES" numRows="0" remarks="Your organization's defined stage sequences" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.STAGE_SEQUENCES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.STAGE_SEQUENCE_ID,&#13;&#10;    src.STAGE_SEQUENCE_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.STAGE_SEQUENCES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="STAGE_SEQUENCE_ID" nullable="false" remarks="The stage sequence ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="STAGE_SEQUENCE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGE_SEQUENCE_LINKS"/>
            <child catalog="ActiveHub" column="STAGE_SEQUENCE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGE_SEQUENCE_STAGES"/>
            <child catalog="ActiveHub" column="STAGE_SEQUENCE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STANDARD_CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="STAGE_SEQUENCE_NAME" nullable="true" remarks="The stage sequence name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="2" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="STAGE_SEQUENCE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="STAGES" numRows="0" remarks="Your organization's defined stages" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.STAGES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.STAGE_ID,&#13;&#10;    src.STAGE_DESCRIPTION,&#13;&#10;    src.STAGE_VERSION,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.APPROVAL_SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS APPROVAL_SYSTEM_USER_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.STAGES src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.SYSTEMUSER_ID = src.APPROVAL_SYSTEMUSER_ID)&#13;&#10;WHERE&#13;&#10;    src.ALLOW_INDIVIDUAL_SELECTION = 'No'&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="STAGE_ID" nullable="false" remarks="The stage ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="STAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGE_SEQUENCE_STAGES"/>
            <child catalog="ActiveHub" column="STAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTION_STAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="STAGE_DESCRIPTION" nullable="true" remarks="The stage description" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="STAGE_VERSION" nullable="true" remarks="The current version number of the stage" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_ID" nullable="true" remarks="The ID of the site that the stage belongs to (NULL for all sites)" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SITE_NAME" nullable="true" remarks="The name of the site that the stage belongs to (NULL for all sites)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="APPROVAL_SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who must approve the transaction stage" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="APPROVAL_SYSTEM_USER_NAME" nullable="false" remarks="The name of the system user who must approve the transaction stage" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="STAGE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="STANDARD_CHARGE_ALTERNATE_KEY_QUALIFICATIONS" numRows="0" remarks="Master table containing defined standard charge alternate key qualifications" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE   VIEW dbo.STANDARD_CHARGE_ALTERNATE_KEY_QUALIFICATIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.CHARGE_QUALIFICATION_LINK_ID,&#13;&#10;    src.QUALIFICATION_TYPE_ID,&#13;&#10;    src.QUALIFICATION_TYPE,&#13;&#10;    src.STANDARD_CHARGE_ID,&#13;&#10;    ch2.CHARGE_NAME AS STANDARD_CHARGE_NAME,&#13;&#10;    src.ALTERNATE_KEY_TYPE_ID,&#13;&#10;    akt.ALTERNATE_KEY_TYPE AS ALTERNATE_KEY_TYPE_NAME,&#13;&#10;    src.ALTERNATE_KEY_STATUS_ID,&#13;&#10;    aks.ALTERNATE_KEY_STATUS AS ALTERNATE_KEY_STATUS_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM hub.CHARGE_QUALIFICATION_LINKS src&#13;&#10;LEFT JOIN hub.STANDARD_CHARGES sc1 ON sc1.STANDARD_CHARGE_ID = src.STANDARD_CHARGE_ID&#13;&#10;LEFT JOIN hub.CHARGES ch2 ON (ch2.CHARGE_ID = sc1.CHARGE_ID)&#13;&#10;LEFT JOIN hub.ALTERNATE_KEY_TYPES akt ON akt.ALTERNATE_KEY_TYPE_ID = src.ALTERNATE_KEY_TYPE_ID&#13;&#10;LEFT JOIN hub.ALTERNATE_KEY_STATUSES aks ON aks.ALTERNATE_KEY_STATUS_ID = src.ALTERNATE_KEY_STATUS_ID&#13;&#10;WHERE src.QUALIFICATION_TYPE_ID = 6; -- KeyType.standard_charge_multi_alternate_key = 6&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CHARGE_QUALIFICATION_LINK_ID" nullable="true" remarks="Charge qualification link ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="QUALIFICATION_TYPE_ID" nullable="true" remarks="Qualification type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="QUALIFICATION_TYPE" nullable="true" remarks="Qualification type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="STANDARD_CHARGE_ID" nullable="true" remarks="Standard charge ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="STANDARD_CHARGE_NAME" nullable="true" remarks="Standard charge name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ALTERNATE_KEY_TYPE_ID" nullable="true" remarks="Alternate key type ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ALTERNATE_KEY_TYPE_NAME" nullable="true" remarks="Alternate key type name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ALTERNATE_KEY_STATUS_ID" nullable="true" remarks="Alternate key status ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ALTERNATE_KEY_STATUS_NAME" nullable="true" remarks="Alternate key status name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="STANDARD_CHARGES" numRows="0" remarks="Master table showing defined standard resource charges data" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.STANDARD_CHARGES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.STANDARD_CHARGE_ID,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    ch1.CHARGE_NAME,&#13;&#10;    src.CHARGE_TYPE,&#13;&#10;    src.CUSTOMER_TYPE_ID,&#13;&#10;    ct1.CUSTOMER_TYPE_NAME AS CUSTOMER_TYPE,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.CENTER_ID,&#13;&#10;    ce1.CENTER_NAME,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.FACILITY_TYPE_ID,&#13;&#10;    ft1.FACILITY_TYPE_NAME AS FACILITY_TYPE,&#13;&#10;    src.RESOURCE_TYPE,&#13;&#10;    src.EVENT_TYPE_ID,&#13;&#10;    et1.EVENT_TYPE_NAME AS EVENT_TYPE,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.ACTIVATION_DATE,&#13;&#10;    src.EXPIRATION_DATE,&#13;&#10;    src.CHARGE_ONCE,&#13;&#10;    src.DEPOSIT,&#13;&#10;    src.DISCOUNT_PERCENT,&#13;&#10;    src.DISCOUNT_TYPE,&#13;&#10;    src.DEFAULT_QUANTITY,&#13;&#10;    src.DEFAULT_FEE_AMOUNT,&#13;&#10;    src.UNIT_OF_MEASURE,&#13;&#10;    src.STAGE_SEQUENCE_ID,&#13;&#10;    ss1.STAGE_SEQUENCE_NAME AS STAGE_SEQUENCE,&#13;&#10;    src.DISCOUNTABLE,&#13;&#10;    src.PRIMARY_FEE,&#13;&#10;    src.PREFILL_CONDITION,&#13;&#10;    src.AGES_MIN,&#13;&#10;    src.AGES_MAX,&#13;&#10;    src.FEE_ORDER,&#13;&#10;    src.ONLINE_QUESTION,&#13;&#10;    src.ACTIVATION_PASSWORD,&#13;&#10;    src.ALLOWED_QUANTITY_CHANGED,&#13;&#10;    src.ALLOWED_MIN_QUANTITY,&#13;&#10;    src.ALLOWED_MAX_QUANTITY,&#13;&#10;    src.PERMIT_LEVEL,&#13;&#10;    src.EXCLUDE_FROM_PAYMENT_PLAN,&#13;&#10;    src.SYSTEM_GL_ACCOUNT_PACKAGE_ID,&#13;&#10;    sgap.SYSTEM_GL_ACCOUNT_PACKAGE_NAME AS SYSTEM_GL_ACCOUNT_PACKAGE,&#13;&#10;    src.EXTRA_BOOKING_FEE,&#13;&#10;    src.FOR_EQUIPMENT_LENDING,&#13;&#10;    src.CLAIM_CHARGE,&#13;&#10;    src.HOLIDAY_RATE_AMOUNT,&#13;&#10;    src.HOLIDAY_RATE_PERCENT,&#13;&#10;    src.LAST_MINUTE_RATE,&#13;&#10;    src.LAST_MINUTE_FEE_AMOUNT,&#13;&#10;    src.LAST_MINUTE_PERCENT,&#13;&#10;    src.PRIOR_TO_BOOKING,&#13;&#10;    src.PRIOR_TO_BOOKING_UNIT,&#13;&#10;    src.TAXABLE_BY_TAX_1,&#13;&#10;    src.TAXABLE_BY_TAX_2,&#13;&#10;    src.TAXABLE_BY_TAX_3,&#13;&#10;    src.TAXABLE_BY_TAX_4,&#13;&#10;    src.TAXABLE_BY_TAX_5,&#13;&#10;    src.TAXABLE_BY_TAX_6,&#13;&#10;    src.TAXABLE_BY_TAX_7,&#13;&#10;    src.TAXABLE_BY_TAX_8,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.STANDARD_CHARGE_ID AS source_id,&#13;&#10;&#9;src.IS_SCHEDULED_RATE&#13;&#10;FROM &#13;&#10;    hub.STANDARD_CHARGES src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.CENTERS ce1 ON (ce1.ORG_ID = src.ORG_ID AND ce1.CENTER_ID = src.CENTER_ID)&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON (fa1.ORG_ID = src.ORG_ID AND fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    LEFT JOIN hub.CHARGES ch1 ON (ch1.ORG_ID = src.ORG_ID AND ch1.CHARGE_ID = src.CHARGE_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.ORG_ID = src.ORG_ID AND gl1.GLACCOUNT_ID = src.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.EVENT_TYPES et1 ON (et1.ORG_ID = src.ORG_ID AND et1.EVENT_TYPE_ID = src.EVENT_TYPE_ID)&#13;&#10;    LEFT JOIN hub.FACILITY_TYPES ft1 ON (ft1.ORG_ID = src.ORG_ID AND ft1.FACILITY_TYPE_ID = src.FACILITY_TYPE_ID)&#13;&#10;    LEFT JOIN hub.STAGE_SEQUENCES ss1 ON (ss1.ORG_ID = src.ORG_ID AND ss1.STAGE_SEQUENCE_ID = src.STAGE_SEQUENCE_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMER_TYPES ct1 ON (ct1.ORG_ID = src.ORG_ID AND ct1.CUSTOMER_TYPE_ID = src.CUSTOMER_TYPE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_GL_ACCOUNT_PACKAGES sgap ON (sgap.ORG_ID = src.ORG_ID AND sgap.SYSTEM_GL_ACCOUNT_PACKAGE_ID = src.SYSTEM_GL_ACCOUNT_PACKAGE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="STANDARD_CHARGE_ID" nullable="true" remarks="Standard charge ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="STANDARD_CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="STANDARD_CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="STANDARD_CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SCHEDULED_FEE_CHANGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CHARGE_ID" nullable="true" remarks="The charge ID that this standard charge is based on" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CHARGE_NAME" nullable="true" remarks="The charge name for the fee" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CHARGE_TYPE" nullable="true" remarks="The type of charge (Fee / Discount)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMER_TYPE_ID" nullable="true" remarks="The customer type ID that this charge applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOMER_TYPE" nullable="true" remarks="The customer type that this charge applies to" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SITE_ID" nullable="true" remarks="The site ID that this charge applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SITE_NAME" nullable="true" remarks="Site name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CENTER_ID" nullable="true" remarks="Center ID that this charge applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CENTERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="CENTER_NAME" nullable="true" remarks="Center name that this charge applies to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="FACILITY_ID" nullable="true" remarks="Facility ID that this charge applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="FACILITY_NAME" nullable="true" remarks="Facility name that this charge applies to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="FACILITY_TYPE_ID" nullable="true" remarks="Facility type ID that this charge applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="FACILITY_TYPE" nullable="true" remarks="Facility type name that this charge applies to" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="RESOURCE_TYPE" nullable="true" remarks="The resource type that this charge applies to (Facility / Equipment)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="EVENT_TYPE_ID" nullable="true" remarks="The event type ID that this charge applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="EVENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="EVENT_TYPE" nullable="true" remarks="The event type name that this charge applies to" size="102" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="GLACCOUNT_ID" nullable="true" remarks="The default GL account ID to post this charge to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="GL_ACCOUNT_NAME" nullable="true" remarks="GL account name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ACTIVATION_DATE" nullable="true" remarks="The first available date for this fee" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="EXPIRATION_DATE" nullable="true" remarks="The last available date for this fee" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="CHARGE_ONCE" nullable="true" remarks="Whether this charge should only be charged once per permit (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="DEPOSIT" nullable="true" remarks="Whether this charge is a deposit (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="25" name="DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="DISCOUNT_TYPE" nullable="true" remarks="The type of discount (Amount / Percent)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="DEFAULT_QUANTITY" nullable="true" remarks="The default quantity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="28" name="DEFAULT_FEE_AMOUNT" nullable="true" remarks="The default fee or discount amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="UNIT_OF_MEASURE" nullable="true" remarks="The default unit of measure for the amount" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="STAGE_SEQUENCE_ID" nullable="true" remarks="The stage sequence ID that this charge applies to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="STAGE_SEQUENCE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGE_SEQUENCES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="STAGE_SEQUENCE" nullable="true" remarks="The stage sequence name that this charge applies to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="DISCOUNTABLE" nullable="true" remarks="Whether this charge can be discounted (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="PRIMARY_FEE" nullable="true" remarks="Whether this charge is a primary fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="PREFILL_CONDITION" nullable="true" remarks="The prefill condition for this charge (Never / Always / If Resident / If Non-resident / If Minor / If Senior / If Internet / If Member / If Non-member)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="AGES_MIN" nullable="true" remarks="The maximum age for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="AGES_MAX" nullable="true" remarks="The minimum age for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="FEE_ORDER" nullable="true" remarks="The order in which the fee should be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="ONLINE_QUESTION" nullable="true" remarks="Online question to be asked for this charge" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="ACTIVATION_PASSWORD" nullable="true" remarks="The answer to the online question that must be entered to activate this fee" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="ALLOWED_QUANTITY_CHANGED" nullable="true" remarks="Whether the quantity for this fee can be changed online (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="ALLOWED_MIN_QUANTITY" nullable="true" remarks="The minimum allowed quantity for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="ALLOWED_MAX_QUANTITY" nullable="true" remarks="The maximum allowed quantity for this fee to be applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="PERMIT_LEVEL" nullable="true" remarks="Whether this fee is applied at the permit level (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="EXCLUDE_FROM_PAYMENT_PLAN" nullable="true" remarks="Whether this charge should be excluded from any payment plan (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID" nullable="true" remarks="System GL account package ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="SYSTEM_GL_ACCOUNT_PACKAGE" nullable="true" remarks="System GL account package name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="EXTRA_BOOKING_FEE" nullable="true" remarks="Whether this charge can be an extra booking fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="FOR_EQUIPMENT_LENDING" nullable="true" remarks="Whether this charge is available for equipment lending fees (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="CLAIM_CHARGE" nullable="true" remarks="Whether this charge can be a claim fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="50" name="HOLIDAY_RATE_AMOUNT" nullable="true" remarks="The default fee or discount amount for holiday dates" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="51" name="HOLIDAY_RATE_PERCENT" nullable="true" remarks="The default percent for holiday dates" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="LAST_MINUTE_RATE" nullable="true" remarks="Whether this charge is a last-minute fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="53" name="LAST_MINUTE_FEE_AMOUNT" nullable="true" remarks="The fee amount when applied as a last-minute fee" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="54" name="LAST_MINUTE_PERCENT" nullable="true" remarks="The discount percentage when applied as a last-minute fee" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="PRIOR_TO_BOOKING" nullable="true" remarks="The number of units prior to the start of the booking for this to be considered as a last-minute fee" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="PRIOR_TO_BOOKING_UNIT" nullable="true" remarks="The type of units prior to the start of the booking for this to be considered as a last-minute fee (Days / Hours)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="TAXABLE_BY_TAX_1" nullable="true" remarks="Whether tax 1 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="TAXABLE_BY_TAX_2" nullable="true" remarks="Whether tax 2 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="TAXABLE_BY_TAX_3" nullable="true" remarks="Whether tax 3 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="TAXABLE_BY_TAX_4" nullable="true" remarks="Whether tax 4 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="61" name="TAXABLE_BY_TAX_5" nullable="true" remarks="Whether tax 5 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="TAXABLE_BY_TAX_6" nullable="true" remarks="Whether tax 6 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="TAXABLE_BY_TAX_7" nullable="true" remarks="Whether tax 7 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="TAXABLE_BY_TAX_8" nullable="true" remarks="Whether tax 8 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="65" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="66" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="67" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="68" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="69" name="IS_SCHEDULED_RATE" nullable="true" remarks="If it is for booking date" size="3" type="char" typeCode="1"/>
         <primaryKey column="STANDARD_CHARGE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="SUBSIDIES" numRows="0" remarks="Sudsidy program" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.SUBSIDIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    ACTIVE_HUB_KEY,&#13;&#10;&#9;ORG_ID,&#9;&#13;&#10;&#9;SUBSIDY_ID,&#13;&#10;&#9;SUBSIDY_NAME,&#13;&#10;&#9;GLACCOUNT_ID,&#13;&#10;&#9;STATUS,&#13;&#10;&#9;CREATETIME,&#13;&#10;&#9;UPDATETIME,&#13;&#10;&#9;LINK_ACTIVITY_STATUS,&#13;&#10;&#9;LINK_PACKAGE_STATUS,&#13;&#10;&#9;LAST_SYNC_TIME,&#13;&#10;&#9;ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM &#13;&#10;    hub.SUBSIDIES&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The dbo record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SUBSIDY_ID" nullable="false" remarks="Subsidy id" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SUBSIDY_NAME" nullable="true" remarks="Subsidy name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GLACCOUNT_ID" nullable="true" remarks="Glaccount id" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="STATUS" nullable="true" remarks="Status" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="CREATETIME" nullable="true" remarks="Create time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="UPDATETIME" nullable="true" remarks="Update time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="LINK_ACTIVITY_STATUS" nullable="true" remarks="Subsidy link activity status" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="LINK_PACKAGE_STATUS" nullable="true" remarks="Subsidy link package status" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time dbo record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The dbo sync process ID" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="SUBSIDY_ANNUAL_BUDGET" numRows="0" remarks="Subsidy program annual budget VIEW" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.SUBSIDY_ANNUAL_BUDGET &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    ACTIVE_HUB_KEY,&#13;&#10;&#9;ORG_ID,&#9;&#13;&#10;&#9;SUBSIDY_ANNUAL_BUDGET_ID,&#13;&#10;&#9;SUBSIDY_ID,&#13;&#10;&#9;BUDGET_YEAR,&#13;&#10;&#9;BUDGET_MAX_AMOUNT,&#13;&#10;&#9;CURRENT_MAX_EXPENDITURE,&#13;&#10;&#9;CREATETIME,&#13;&#10;&#9;UPDATETIME,&#13;&#10;&#9;LAST_SYNC_TIME,&#13;&#10;&#9;ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM &#13;&#10;    hub.SUBSIDY_ANNUAL_BUDGET&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The dbo record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SUBSIDY_ANNUAL_BUDGET_ID" nullable="false" remarks="Subsidy annual budget table primary key" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SUBSIDY_ID" nullable="true" remarks="Subsidy id" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="BUDGET_YEAR" nullable="true" remarks="Which year does the budget belong to" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="5" name="BUDGET_MAX_AMOUNT" nullable="true" remarks="Maximum budget for the corresponding year" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="6" name="CURRENT_MAX_EXPENDITURE" nullable="true" remarks="Current maximum expenditure for the corresponding year" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="CREATETIME" nullable="true" remarks="Create time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="UPDATETIME" nullable="true" remarks="Update time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time dbo record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The dbo sync process ID" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="SUBSIDY_DEFAULT_ALLOCATIONS" numRows="0" remarks="Subsidy default allocations VIEW" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.SUBSIDY_DEFAULT_ALLOCATIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    ACTIVE_HUB_KEY,&#13;&#10;&#9;ORG_ID,&#9;&#13;&#10;&#9;SUBSIDY_DEFAULT_ALLOCATIONS_ID,&#13;&#10;&#9;SUBSIDY_ID,&#13;&#10;&#9;START_DATE,&#13;&#10;&#9;END_DATE,&#13;&#10;&#9;START_AGE,&#13;&#10;&#9;END_AGE,&#13;&#10;&#9;ALLOCATION_AMOUNT,&#13;&#10;&#9;LAST_SYNC_TIME,&#13;&#10;&#9;ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM &#13;&#10;    hub.SUBSIDY_DEFAULT_ALLOCATIONS&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The dbo record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SUBSIDY_DEFAULT_ALLOCATIONS_ID" nullable="false" remarks="Subsidy default allocations table primary key" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SUBSIDY_ID" nullable="true" remarks="Related subsidy table foreign key" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="START_DATE" nullable="true" remarks="Default allocations configuration start date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="END_DATE" nullable="true" remarks="Default allocations configuration end date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="START_AGE" nullable="true" remarks="Default allocations configuration start age" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="END_AGE" nullable="true" remarks="Default allocations configuration end age" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="8" name="ALLOCATION_AMOUNT" nullable="true" remarks="Default allocations configuration default amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time dbo record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The dbo sync process ID" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="SUBSIDY_LINKS" numRows="0" remarks="Sudsidy program" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.SUBSIDY_LINKS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    ACTIVE_HUB_KEY,&#13;&#10;&#9;ORG_ID,&#9;&#13;&#10;&#9;SUBSIDY_LINKS_ID,&#13;&#10;&#9;SUBSIDY_ID,&#13;&#10;&#9;ACTIVITY_ID,&#13;&#10;&#9;PACKAGE_ID,&#13;&#10;&#9;LAST_SYNC_TIME,&#13;&#10;&#9;ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM &#13;&#10;    hub.SUBSIDY_LINKS&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The dbo record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SUBSIDY_LINKS_ID" nullable="false" remarks="Subsidy link id" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SUBSIDY_ID" nullable="true" remarks="Related subsidy table foreign key" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_ID" nullable="true" remarks="Activity id" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PACKAGE_ID" nullable="true" remarks="Package id" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time dbo record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The dbo sync process ID" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="SUBSIDY_USAGES" numRows="0" remarks="Subsidy usages VIEW" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.SUBSIDY_USAGES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    ACTIVE_HUB_KEY,&#13;&#10;&#9;ORG_ID,&#9;&#13;&#10;&#9;SUBSIDY_USAGES_ID,&#13;&#10;&#9;ORIGINAL_SUBSIDY_USAGE_ID,&#13;&#10;&#9;SUBSIDY_ID,&#9;&#9;&#13;&#10;&#9;CUSTOMER_ID,&#13;&#10;&#9;STATUS,&#13;&#10;&#9;AMOUNT,&#13;&#10;&#9;DATESTAMP,&#13;&#10;&#9;CUSTOMER_SUBSIDY_ALLOCATION_ID,&#13;&#10;&#9;ALLOCATION_AMOUNT,&#13;&#10;&#9;ALLOCATION_BALANCE,&#13;&#10;&#9;LAST_SYNC_TIME,&#13;&#10;&#9;ACTIVE_HUB_PROCESS_ID&#13;&#10;FROM &#13;&#10;    hub.SUBSIDY_USAGES&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The dbo record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SUBSIDY_USAGES_ID" nullable="false" remarks="Subsidy link id" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ORIGINAL_SUBSIDY_USAGE_ID" nullable="true" remarks="Package id" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SUBSIDY_ID" nullable="true" remarks="Related subsidy table foreign key" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMER_ID" nullable="true" remarks="Customer pk" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="STATUS" nullable="true" remarks="Subsidy usage status" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="7" name="AMOUNT" nullable="true" remarks="Subsidy usage amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="DATESTAMP" nullable="true" remarks="Subsidy usage date time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CUSTOMER_SUBSIDY_ALLOCATION_ID" nullable="true" remarks="pk of CUSTOMER_SUBSIDY_ALLOCATIONS" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="10" name="ALLOCATION_AMOUNT" nullable="true" remarks="Transaction time allocation amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="11" name="ALLOCATION_BALANCE" nullable="true" remarks="Transaction time allocation balance amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="12" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time dbo record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The dbo sync process ID" size="8" type="bigint" typeCode="-5"/>
      </table>
      <table catalog="ActiveHub" name="SUPERVISORS" numRows="0" remarks="Master table showing Supervisor details" schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21488&#13;&#10;--FileName=dbo.SUPERVISORS.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.SUPERVISORS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.SUPERVISOR_ID,&#13;&#10;    cu1.CUSTOMER_FIRST_NAME AS SUPERVISOR_FIRST_NAME,&#13;&#10;    cu1.CUSTOMER_LAST_NAME AS SUPERVISOR_LAST_NAME,&#13;&#10;    CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME) AS SUPERVISOR_FULL_NAME,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    src.OFFICIAL_TITLE,&#13;&#10;    src.EMAIL_REGISTRATION_NOTIFICATION,&#13;&#10;    src.EMAIL_RESERVATION_NOTIFICATION,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.SUPERVISORS src&#13;&#10;    INNER JOIN hub.CUSTOMERS cu1 ON (src.CUSTOMER_ID = cu1.CUSTOMER_ID)&#13;&#10;    INNER JOIN hub.SITES si1 ON (src.SITE_ID = si1.SITE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SUPERVISOR_ID" nullable="true" remarks="Supervisor's ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="SUPERVISOR_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="SUPERVISOR_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CENTERS"/>
            <child catalog="ActiveHub" column="SUPERVISOR_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SUPERVISOR_FIRST_NAME" nullable="true" remarks="Supervisor's first name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SUPERVISOR_LAST_NAME" nullable="true" remarks="Supervisor's last name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SUPERVISOR_FULL_NAME" nullable="false" remarks="Supervisor's full name (first + last)" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMER_ID" nullable="true" remarks="Supervisor's customer ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="OFFICIAL_TITLE" nullable="true" remarks="Supervisor's official title" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="EMAIL_REGISTRATION_NOTIFICATION" nullable="true" remarks="Whether this supervisor should receive email notifications of activity registrations (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="EMAIL_RESERVATION_NOTIFICATION" nullable="true" remarks="Whether this supervisor should receive email notifications of facility reservations (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="SITE_ID" nullable="true" remarks="Supervisor's site ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="SITE_NAME" nullable="true" remarks="Supervisor's site name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="RETIRED" nullable="true" remarks="Whether the Supervisor record has been retired (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="12" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="SUPERVISOR_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="SUSPENSION_TRANSACTION" numRows="0" remarks="" schema="dbo" type="VIEW" viewSql="&#9;&#9;&#9;&#9;&#9;&#13;&#10;CREATE VIEW dbo.SUSPENSION_TRANSACTION &#13;&#10;AS &#9;&#13;&#10;SELECT &#13;&#10;&#9;st.SUSPENSION_TRANSACTION_ID,&#13;&#10;&#9;st.CUSTOMER_ID,&#13;&#10;&#9;c.CUSTOMER_FIRST_NAME AS CUSTOMER_FIRST_NAME,&#13;&#10;&#9;c.CUSTOMER_LAST_NAME AS CUSTOMER_LAST_NAME,&#13;&#10;&#9;st.SUSPENSION_FROM_DATE AS SUSPENSION_FROM_DATE,&#13;&#10;&#9;st.SUSPENSION_UNTIL_DATE AS SUSPENSION_UNTIL_DATE,&#13;&#10;&#9;r.DESCRIPTION AS REASON,&#13;&#10;&#9;CASE st.ALL_FAMILY_MEMBERS WHEN 0 THEN 'False' WHEN -1 THEN 'True' END AS IS_ALL_FAMILY_MEMBERS,&#13;&#10;&#9;CASE st.STAFF_DAYCARE WHEN 0 THEN 'On' WHEN -1 THEN 'Suspended' END AS STAFF_FLEXREG,&#13;&#10;&#9;CASE st.STAFF_REGISTRATION WHEN 0 THEN 'On' WHEN -1 THEN 'Suspended' END AS STAFF_REGISTRATION,&#13;&#10;&#9;CASE st.STAFF_MEMBERSHIP WHEN 0 THEN 'On' WHEN -1 THEN 'Suspended' END AS STAFF_MEMBERSHIP,&#13;&#10;&#9;CASE st.STAFF_RESERVATION WHEN 0 THEN 'On' WHEN -1 THEN 'Suspended' END AS STAFF_RESERVATION,&#13;&#10;&#9;CASE st.STAFF_POS WHEN 0 THEN 'On' WHEN -1 THEN 'Suspended' END AS STAFF_POS,&#13;&#10;&#9;CASE st.ONLINE_DAYCARE WHEN 0 THEN 'On' WHEN -1 THEN 'Suspended' END AS ONLINE_FLEXREG,&#13;&#10;&#9;CASE st.ONLINE_REGISTRATION WHEN 0 THEN 'On' WHEN -1 THEN 'Suspended' END AS ONLINE_REGISTRATION,&#13;&#10;&#9;CASE st.ONLINE_MEMBERSHIP WHEN 0 THEN 'On' WHEN -1 THEN 'Suspended' END AS ONLINE_MEMBERSHIP,&#13;&#10;&#9;CASE st.ONLINE_RESERVATION WHEN 0 THEN 'On' WHEN -1 THEN 'Suspended' END AS ONLINE_RESERVATIONS,&#13;&#10;&#9;CASE st.ONLINE_ACCOUNT_ACTION WHEN 0 THEN 'On' WHEN -1 THEN 'Suspended' END AS ONLINE_ACCOUNTACTION,&#13;&#10;&#9;st.SYSTEMUSER_ID,&#13;&#10;&#9;su.USER_FIRST_NAME AS USER_FIRST_NAME,&#13;&#10;&#9;su.USER_LAST_NAME AS USER_LAST_NAME,&#13;&#10;&#9;st.DATESTAMP AS DATESTAMP,&#13;&#10;&#9;st.ORG_ID&#13;&#10;FROM [hub].[SUSPENSION_TRANSACTION] st&#13;&#10;LEFT JOIN [hub].[SYSTEM_USERS] su ON su.SYSTEMUSER_ID = st.SYSTEMUSER_ID AND su.ORG_ID = st.ORG_ID&#13;&#10;LEFT JOIN [hub].[CUSTOMERS] c ON c.CUSTOMER_ID = st.CUSTOMER_ID AND c.ORG_ID = st.ORG_ID&#13;&#10;LEFT JOIN [hub].[REASONS] r ON r.REASON_ID = st.REASON_ID AND r.ORG_ID = st.ORG_ID&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="SUSPENSION_TRANSACTION_ID" nullable="false" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="CUSTOMER_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_FIRST_NAME" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMER_LAST_NAME" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="SUSPENSION_FROM_DATE" nullable="true" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="SUSPENSION_UNTIL_DATE" nullable="true" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="REASON" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="IS_ALL_FAMILY_MEMBERS" nullable="true" remarks="" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="STAFF_FLEXREG" nullable="true" remarks="" size="9" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="STAFF_REGISTRATION" nullable="true" remarks="" size="9" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="STAFF_MEMBERSHIP" nullable="true" remarks="" size="9" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="STAFF_RESERVATION" nullable="true" remarks="" size="9" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="STAFF_POS" nullable="true" remarks="" size="9" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ONLINE_FLEXREG" nullable="true" remarks="" size="9" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ONLINE_REGISTRATION" nullable="true" remarks="" size="9" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ONLINE_MEMBERSHIP" nullable="true" remarks="" size="9" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ONLINE_RESERVATIONS" nullable="true" remarks="" size="9" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ONLINE_ACCOUNTACTION" nullable="true" remarks="" size="9" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="SYSTEMUSER_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="USER_FIRST_NAME" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="USER_LAST_NAME" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="21" name="DATESTAMP" nullable="true" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="ORG_ID" nullable="false" remarks="" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="SYSTEM_GL_ACCOUNT_PACKAGES" numRows="0" remarks="Your organization's defined system GL account packages" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.SYSTEM_GL_ACCOUNT_PACKAGES &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.SYSTEM_GL_ACCOUNT_PACKAGE_ID,&#13;&#10;    src.SYSTEM_GL_ACCOUNT_PACKAGE_NAME,&#13;&#10;    src.FUND_ID,&#13;&#10;    fu1.FUND_NAME,&#13;&#10;    src.PAYMENT_CASH_GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS PAYMENT_CASH_GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS PAYMENT_CASH_GL_ACCOUNT_NUMBER,&#13;&#10;    src.PAYMENT_CHECK_GLACCOUNT_ID,&#13;&#10;    gl2.ACCOUNTNAME AS PAYMENT_CHECK_GL_ACCOUNT_NAME,&#13;&#10;    gl2.ACCOUNTNUMBER AS PAYMENT_CHECK_GL_ACCOUNT_NUMBER,&#13;&#10;    src.PAYMENT_CREDIT_CARD_GLACCOUNT_ID,&#13;&#10;    gl3.ACCOUNTNAME AS PAYMENT_CREDIT_CARD_GL_ACCOUNT_NAME,&#13;&#10;    gl3.ACCOUNTNUMBER AS PAYMENT_CREDIT_CARD_GL_ACCOUNT_NUMBER,&#13;&#10;    src.PAYMENT_DEBIT_CARD_GLACCOUNT_ID,&#13;&#10;    gl4.ACCOUNTNAME AS PAYMENT_DEBIT_CARD_GL_ACCOUNT_NAME,&#13;&#10;    gl4.ACCOUNTNUMBER AS PAYMENT_DEBIT_CARD_GL_ACCOUNT_NUMBER,&#13;&#10;    src.PAYMENT_CREDIT_MEMO_GLACCOUNT_ID,&#13;&#10;    gl5.ACCOUNTNAME AS PAYMENT_CREDIT_MEMO_GL_ACCOUNT_NAME,&#13;&#10;    gl5.ACCOUNTNUMBER AS PAYMENT_CREDIT_MEMO_GL_ACCOUNT_NUMBER,&#13;&#10;    src.PAYMENT_ECP_GLACCOUNT_ID,&#13;&#10;    gl6.ACCOUNTNAME AS PAYMENT_ECP_GL_ACCOUNT_NAME,&#13;&#10;    gl6.ACCOUNTNUMBER AS PAYMENT_ECP_GL_ACCOUNT_NUMBER,&#13;&#10;    src.DEFERRED_REVENUE_GLACCOUNT_ID,&#13;&#10;    gl7.ACCOUNTNAME AS DEFERRED_REVENUE_GL_ACCOUNT_NAME,&#13;&#10;    gl7.ACCOUNTNUMBER AS DEFERRED_REVENUE_GL_ACCOUNT_NUMBER,&#13;&#10;    src.ACCOUNTS_RECEIVABLE_GLACCOUNT_ID,&#13;&#10;    gl8.ACCOUNTNAME AS ACCOUNTS_RECEIVABLE_GL_ACCOUNT_NAME,&#13;&#10;    gl8.ACCOUNTNUMBER AS ACCOUNTS_RECEIVABLE_GL_ACCOUNT_NUMBER,&#13;&#10;    src.FUTURE_RECEIVABLES_GLACCOUNT_ID,&#13;&#10;    gl9.ACCOUNTNAME AS FUTURE_RECEIVABLES_GL_ACCOUNT_NAME,&#13;&#10;    gl9.ACCOUNTNUMBER AS FUTURE_RECEIVABLES_GL_ACCOUNT_NUMBER,&#13;&#10;    src.DEFERRED_RECEIVABLES_GLACCOUNT_ID,&#13;&#10;    gl10.ACCOUNTNAME AS DEFERRED_RECEIVABLES_GL_ACCOUNT_NAME,&#13;&#10;    gl10.ACCOUNTNUMBER AS DEFERRED_RECEIVABLES_GL_ACCOUNT_NUMBER,&#13;&#10;    src.REFUND_CLEARING_GLACCOUNT_ID,&#13;&#10;    gl11.ACCOUNTNAME AS REFUND_CLEARING_GL_ACCOUNT_NAME,&#13;&#10;    gl11.ACCOUNTNUMBER AS REFUND_CLEARING_GL_ACCOUNT_NUMBER,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.SYSTEM_GL_ACCOUNT_PACKAGES src&#13;&#10;    LEFT JOIN hub.FUNDS fu1 ON (fu1.FUND_ID = src.FUND_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.GLACCOUNT_ID = src.PAYMENT_CASH_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl2 ON (gl2.GLACCOUNT_ID = src.PAYMENT_CHECK_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl3 ON (gl3.GLACCOUNT_ID = src.PAYMENT_CREDIT_CARD_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl4 ON (gl4.GLACCOUNT_ID = src.PAYMENT_DEBIT_CARD_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl5 ON (gl5.GLACCOUNT_ID = src.PAYMENT_CREDIT_MEMO_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl6 ON (gl6.GLACCOUNT_ID = src.PAYMENT_ECP_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl7 ON (gl7.GLACCOUNT_ID = src.DEFERRED_REVENUE_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl8 ON (gl8.GLACCOUNT_ID = src.ACCOUNTS_RECEIVABLE_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl9 ON (gl9.GLACCOUNT_ID = src.FUTURE_RECEIVABLES_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl10 ON (gl10.GLACCOUNT_ID = src.DEFERRED_RECEIVABLES_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl11 ON (gl11.GLACCOUNT_ID = src.REFUND_CLEARING_GLACCOUNT_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID" nullable="false" remarks="The system GL account package ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_FEES"/>
            <child catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CAMPAIGNS"/>
            <child catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
            <child catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLOBAL_DISCOUNTS"/>
            <child catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_FEES"/>
            <child catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGE_FEES"/>
            <child catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS"/>
            <child catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_FEES"/>
            <child catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STANDARD_CHARGES"/>
            <child catalog="ActiveHub" column="DISCOUNT_SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="USAGE_FEES"/>
            <child catalog="ActiveHub" column="FEE_SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="USAGE_FEES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SYSTEM_GL_ACCOUNT_PACKAGE_NAME" nullable="true" remarks="The system GL account package name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FUND_ID" nullable="true" remarks="The ID of the fund that this system GL account package is related to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FUND_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FUNDS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FUND_NAME" nullable="true" remarks="The name of the fund that this system GL account package is related to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PAYMENT_CASH_GLACCOUNT_ID" nullable="true" remarks="GL account ID for cash payments" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PAYMENT_CASH_GL_ACCOUNT_NAME" nullable="true" remarks="GL account name for cash payments" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PAYMENT_CASH_GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number for cash payments" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="PAYMENT_CHECK_GLACCOUNT_ID" nullable="true" remarks="GL account ID for check payments" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="PAYMENT_CHECK_GL_ACCOUNT_NAME" nullable="true" remarks="GL account name for check payments" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="PAYMENT_CHECK_GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number for check payments" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="PAYMENT_CREDIT_CARD_GLACCOUNT_ID" nullable="true" remarks="GL account ID for credit card payments" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="PAYMENT_CREDIT_CARD_GL_ACCOUNT_NAME" nullable="true" remarks="GL account name for credit card payments" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="PAYMENT_CREDIT_CARD_GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number for credit card payments" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="PAYMENT_DEBIT_CARD_GLACCOUNT_ID" nullable="true" remarks="GL account ID for debit card payments" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PAYMENT_DEBIT_CARD_GL_ACCOUNT_NAME" nullable="true" remarks="GL account name for debit card payments" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="PAYMENT_DEBIT_CARD_GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number for debit card payments" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="PAYMENT_CREDIT_MEMO_GLACCOUNT_ID" nullable="true" remarks="GL account ID for credit memo payments" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="PAYMENT_CREDIT_MEMO_GL_ACCOUNT_NAME" nullable="true" remarks="GL account name for credit memo payments" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="PAYMENT_CREDIT_MEMO_GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number for credit memo payments" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="PAYMENT_ECP_GLACCOUNT_ID" nullable="true" remarks="GL account ID for electronic check processing (ECP) payments" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="PAYMENT_ECP_GL_ACCOUNT_NAME" nullable="true" remarks="GL account name for electronic check processing (ECP) payments" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="PAYMENT_ECP_GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number for electronic check processing (ECP) payments" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="DEFERRED_REVENUE_GLACCOUNT_ID" nullable="true" remarks="GL account ID for deferred revenue" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="DEFERRED_REVENUE_GL_ACCOUNT_NAME" nullable="true" remarks="GL account name for deferred revenue" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="DEFERRED_REVENUE_GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number for deferred revenue" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ACCOUNTS_RECEIVABLE_GLACCOUNT_ID" nullable="true" remarks="GL account ID for accounts receivable" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ACCOUNTS_RECEIVABLE_GL_ACCOUNT_NAME" nullable="true" remarks="GL account name for accounts receivable" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="ACCOUNTS_RECEIVABLE_GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number for accounts receivable" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="FUTURE_RECEIVABLES_GLACCOUNT_ID" nullable="true" remarks="GL account ID for future accounts receivable" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="FUTURE_RECEIVABLES_GL_ACCOUNT_NAME" nullable="true" remarks="GL account name for future accounts receivable" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="FUTURE_RECEIVABLES_GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number for future accounts receivable" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="DEFERRED_RECEIVABLES_GLACCOUNT_ID" nullable="true" remarks="GL account ID for deferred accounts receivable" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="DEFERRED_RECEIVABLES_GL_ACCOUNT_NAME" nullable="true" remarks="GL account name for deferred accounts receivable" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="DEFERRED_RECEIVABLES_GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number for deferred accounts receivable" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="REFUND_CLEARING_GLACCOUNT_ID" nullable="true" remarks="GL account ID for refund clearing" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="REFUND_CLEARING_GL_ACCOUNT_NAME" nullable="true" remarks="GL account name for refund clearing" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="REFUND_CLEARING_GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number for refund clearing" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="IS_RETIRED" nullable="true" remarks="Whether this system GL account package has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="38" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="SYSTEM_USAGE_LOG" numRows="0" remarks="Contains system access information for staff users and online customers" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.SYSTEM_USAGE_LOG &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.SYSTEM_USAGE_LOG_ID,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    ISNULL(CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME), '') AS SYSTEM_USER_NAME,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    ISNULL(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS CUSTOMER_NAME,&#13;&#10;    src.USER_WORKSTATION_ID,&#13;&#10;    wo1.WORKSTATION_NAME AS USER_WORKSTATION_NAME,&#13;&#10;    src.LOGGED_ON,&#13;&#10;    src.LOGON_DATE_TIME,&#13;&#10;    CAST(src.LOGON_DATE_TIME AS DATE) AS LOGON_DATE_ONLY,&#13;&#10;    src.USER_LOGOFF_DATE_TIME,&#13;&#10;    CAST(src.USER_LOGOFF_DATE_TIME AS DATE) AS USER_LOGOFF_DATE_ONLY,&#13;&#10;    src.USER_TIMEOUT_DATE_TIME,&#13;&#10;    CAST(src.USER_TIMEOUT_DATE_TIME AS DATE) AS USER_TIMEOUT_DATE_ONLY,&#13;&#10;    src.CUSTOMER_LOGOFF_TIMEOUT_DATE_TIME,&#13;&#10;    CAST(src.CUSTOMER_LOGOFF_TIMEOUT_DATE_TIME AS DATE) AS CUSTOMER_LOGOFF_TIMEOUT_DATE_ONLY,&#13;&#10;    src.SERVER_WORKSTATION_ID,&#13;&#10;    wo2.WORKSTATION_NAME AS SERVER_WORKSTATION_NAME,&#13;&#10;    src.SERVER_IP,&#13;&#10;    src.SERVER_SOFTWARE_VERSION,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.SYSTEM_USAGE_LOG src&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS wo1 ON (wo1.WORKSTATION_ID = src.USER_WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS wo2 ON (wo2.WORKSTATION_ID = src.SERVER_WORKSTATION_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="SYSTEM_USAGE_LOG_ID" nullable="false" remarks="The system usage log ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user if this is a staff access log" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SYSTEM_USER_NAME" nullable="false" remarks="The name of the system user if this is a staff access log" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMER_ID" nullable="true" remarks="The ID of the customer if this is a online customer access log" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CUSTOMER_NAME" nullable="false" remarks="The name of the customer if this is a online customer access log" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="USER_WORKSTATION_ID" nullable="true" remarks="The ID of the workstation to be used for receipts and transactions" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="USER_WORKSTATION_NAME" nullable="true" remarks="The name of the workstation to be used for receipts and transactions" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="LOGGED_ON" nullable="true" remarks="Whether the system user or customer is currently logged into the system" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="LOGON_DATE_TIME" nullable="true" remarks="The date and time that the system user or customer is logged into the system" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="LOGON_DATE_ONLY" nullable="true" remarks="The date that the system user or customer is logged into the system (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="USER_LOGOFF_DATE_TIME" nullable="true" remarks="The date and time that the system user logged out of the system" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="USER_LOGOFF_DATE_ONLY" nullable="true" remarks="The date that the system user logged out of the system (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="12" name="USER_TIMEOUT_DATE_TIME" nullable="true" remarks="The date and time that the system user's session timed out without being logged out of the system" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="USER_TIMEOUT_DATE_ONLY" nullable="true" remarks="The date that the system user's session timed out without being logged out of the system (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="14" name="CUSTOMER_LOGOFF_TIMEOUT_DATE_TIME" nullable="true" remarks="The date and time that the online customer either logged out or when their session timed out" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="CUSTOMER_LOGOFF_TIMEOUT_DATE_ONLY" nullable="true" remarks="The date that the online customer either logged out or when their session timed out (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SERVER_WORKSTATION_ID" nullable="true" remarks="The ID of the workstation assigned to the physical server that the staff user or online customer were connected to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="SERVER_WORKSTATION_NAME" nullable="true" remarks="The name of the workstation assigned to the physical server that the staff user or online customer were connected to" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="SERVER_IP" nullable="true" remarks="The IP address of the physical server that the staff user or online customer were connected to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="SERVER_SOFTWARE_VERSION" nullable="true" remarks="The software version being run on the physical server that the staff user or online customer were connected to" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="20" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="SYSTEM_USAGE_LOG_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="SYSTEM_USER_PROFILES" numRows="0" remarks="Authorization profiles assigned to system users" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.SYSTEM_USER_PROFILES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.SYSTEM_USER_PROFILE_ID,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    src.PROFILE_ID,&#13;&#10;    pr1.PROFILE_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;&#9;su1.RETIRED,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.SYSTEM_USER_PROFILE_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.SYSTEM_USER_PROFILES src&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.PROFILES pr1 ON (pr1.ORG_ID = src.ORG_ID AND pr1.PROFILE_ID = src.PROFILE_ID);&#13;&#10;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SYSTEM_USER_PROFILE_ID" nullable="true" remarks="The system user profile ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SYSTEMUSER_ID" nullable="true" remarks="The system user ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SYSTEM_USER_NAME" nullable="false" remarks="The system user's name" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PROFILE_ID" nullable="true" remarks="The assigned profile ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROFILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROFILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PROFILE_NAME" nullable="true" remarks="The assigned profile name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="RETIRED" nullable="true" remarks="Whether the user record has been retired (Yes or No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="SYSTEM_USER_PROFILE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="SYSTEM_USERS" numRows="0" remarks="Organization's system users" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.SYSTEM_USERS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    src.PROFILE_ID,&#13;&#10;    pr1.PROFILE_NAME AS USER_DEFAULT_PROFILE,&#13;&#10;    src.USER_FIRST_NAME,&#13;&#10;    src.USER_LAST_NAME,&#13;&#10;    src.EMPLOYEE_ID,&#13;&#10;    src.LOGIN_NAME,&#13;&#10;    src.EMAIL,&#13;&#10;    IIF(hub.udf_ValidateEmailFormat(src.EMAIL) = 1, 'Yes', 'No') AS IS_EMAIL_VALID,&#13;&#10;    src.MOBILE_PHONE_COUNTRY_CODE,&#13;&#10;    src.MOBILE_PHONE_NUMBER,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    src.SYSTEM_ADMIN,&#13;&#10;    src.PERMIT_ADMINISTRATOR,&#13;&#10;    src.RECEIVE_EMAIL_FOR_NEW_ACCOUNTS,&#13;&#10;    src.CUSTOMER_VIEW_TYPE,&#13;&#10;    src.AUTO_PRINT_RECEIPTS,&#13;&#10;    src.AUTO_PRINT_PERMITS,&#13;&#10;    src.SITE_ACCESS,&#13;&#10;    src.ALL_DEPARTMENTS_ACCESS,&#13;&#10;    src.NEVER_EXPIRE,&#13;&#10;    src.RETIRED,&#13;&#10;    src.PASSWORD_LAST_CHANGED AS PASSWORD_LAST_CHANGED_DATE_TIME,&#13;&#10;    CAST(src.PASSWORD_LAST_CHANGED AS DATE) AS PASSWORD_LAST_CHANGED_DATE_ONLY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.LAST_LOGIN_DATE_TIME,&#13;&#10;    src.LAST_LOGIN_DATE_ONLY&#13;&#10;FROM &#13;&#10;    hub.SYSTEM_USERS src&#13;&#10;    LEFT JOIN hub.PROFILES pr1 ON (pr1.PROFILE_ID = src.PROFILE_ID);&#13;&#10;(CONVERT([date],[LAST_LOGIN_DATE_TIME]))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SYSTEMUSER_ID" nullable="true" remarks="User ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACCOUNT_CREDIT_HISTORY"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_HEADERS"/>
            <child catalog="ActiveHub" column="CHECK_IN_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHILD_WATCH_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="CHECK_OUT_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHILD_WATCH_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CREDIT_CARD_PROCESSING_LOG"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_MERGE_LOG"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_NOTES"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SIGNED_WAIVERS"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_USERS"/>
            <child catalog="ActiveHub" column="ISSUED_BY_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GIFT_CARDS"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_SCHEDULES"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="PERMIT_ADMINISTRATOR_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PERMITS"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PERMITS"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_ATTENDANCE_HISTORY"/>
            <child catalog="ActiveHub" column="UNDO_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_ATTENDANCE_HISTORY"/>
            <child catalog="ActiveHub" column="ABSENT_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="CHECK_IN_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="CHECK_OUT_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_GL_POSTINGS"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_HEADERS"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="LAST_UPDATED_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SAVED_CREDIT_CARD_HISTORY"/>
            <child catalog="ActiveHub" column="UPDATED_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SAVED_CREDIT_CARD_HISTORY"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SAVED_CREDIT_CARDS"/>
            <child catalog="ActiveHub" column="APPROVAL_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGES"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USAGE_LOG"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USER_PROFILES"/>
            <child catalog="ActiveHub" column="APPROVAL_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTION_STAGES"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTION_STAGES"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="UPLOADED_BY_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PROFILE_ID" nullable="true" remarks="User profile ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROFILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROFILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="USER_DEFAULT_PROFILE" nullable="true" remarks="User default profile name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="USER_FIRST_NAME" nullable="true" remarks="User first name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="USER_LAST_NAME" nullable="true" remarks="User last name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="EMPLOYEE_ID" nullable="true" remarks="User employee number" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="LOGIN_NAME" nullable="true" remarks="User login name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="EMAIL" nullable="true" remarks="User email address" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="IS_EMAIL_VALID" nullable="false" remarks="Whether the user's email address has been provided and is a validly formatted email address (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="MOBILE_PHONE_COUNTRY_CODE" nullable="true" remarks="The country code for the user's mobile phone number" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="MOBILE_PHONE_NUMBER" nullable="true" remarks="The user's mobile phone number" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CUSTOMER_ID" nullable="true" remarks="User customer ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="SYSTEM_ADMIN" nullable="true" remarks="Whether the user is a system administrator (Yes or No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PERMIT_ADMINISTRATOR" nullable="true" remarks="Whether the user is a permit adminstrator (Yes or No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="RECEIVE_EMAIL_FOR_NEW_ACCOUNTS" nullable="true" remarks="Whether this user should receive an email for each newly created customer account (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="CUSTOMER_VIEW_TYPE" nullable="true" remarks="The type of customer view that this user should maintain customer records with (Use Standard HTML Customer View / Use Enhanced Customer View / Use System Default Type)" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="AUTO_PRINT_RECEIPTS" nullable="true" remarks="Whether receipts should auto print for this user (Yes / No / Use System Default)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="AUTO_PRINT_PERMITS" nullable="true" remarks="Whether permits should auto print for this user (Yes / No / Use System Default)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="SITE_ACCESS" nullable="true" remarks="User site access description" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ALL_DEPARTMENTS_ACCESS" nullable="true" remarks="Whether this user has access to all departments (Yes or No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="NEVER_EXPIRE" nullable="true" remarks="Whether the user password never expires (Yes or No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="RETIRED" nullable="true" remarks="Whether the user record has been retired (Yes or No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="23" name="PASSWORD_LAST_CHANGED_DATE_TIME" nullable="true" remarks="The date and time that the user's password was last changed" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="PASSWORD_LAST_CHANGED_DATE_ONLY" nullable="true" remarks="The date that the user's password was last changed (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="25" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="28" name="LAST_LOGIN_DATE_TIME" nullable="true" remarks="The date and time that the user last logged in" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="LAST_LOGIN_DATE_ONLY" nullable="true" remarks="The date that the user last logged in (date only)" size="20" type="date" typeCode="12"/>
         <primaryKey column="SYSTEMUSER_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="TEAM_CATEGORIES" numRows="0" remarks="Your organization's defined team categories" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.TEAM_CATEGORIES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.TEAM_CATEGORY_ID,&#13;&#10;    src.TEAM_CATEGORY_NAME,&#13;&#10;    src.GENDER_INDEX,&#13;&#10;    src.TEAM_PAYMENT_SCENARIO,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.TEAM_CATEGORIES src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="TEAM_CATEGORY_ID" nullable="false" remarks="The team category ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="TEAM_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_TEAM_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="TEAM_CATEGORY_NAME" nullable="true" remarks="The team category name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="GENDER_INDEX" nullable="true" remarks="The gender ID of the team" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GENDERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="TEAM_PAYMENT_SCENARIO" nullable="true" remarks="How enrollment of team members is paid (All members pay individually / All members pay individually, team can pre-pay members / Team pays lump sum for all members / Use default)" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="TEAM_CATEGORY_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="TEAM_CONTACTS" numRows="0" remarks="Your organization's defined team contacts" schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.TEAM_CONTACTS &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.TEAM_CONTACT_ID,&#13;&#10;    te1.LEAGUE_ID,&#13;&#10;    le1.LEAGUE_NAME,&#13;&#10;    te1.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    ac1.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    src.TEAM_ID,&#13;&#10;    te1.TEAM_NAME,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME), '') AS CUSTOMER_NAME,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.CONTACT_TYPE_ID,&#13;&#10;    ct1.CONTACT_TYPE_NAME,&#13;&#10;    src.IS_ONLINE_ADMINISTRATOR,&#13;&#10;    src.SHOW_ONLINE,&#13;&#10;    src.SHOW_CONTACT_INFO_ONLINE,&#13;&#10;    src.CAN_ROLLOVER_TEAM_ONLINE,&#13;&#10;    src.RECEIVE_PLAYER_ENROLLMENT_EMAILS,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.TEAM_CONTACTS src&#13;&#10;    LEFT JOIN hub.TEAMS te1 ON (te1.TEAM_ID = src.TEAM_ID)&#13;&#10;    LEFT JOIN hub.LEAGUES le1 ON (le1.LEAGUE_ID = te1.LEAGUE_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON (ac1.ACTIVITY_ID = te1.ACTIVITY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON cu1.CUSTOMER_ID = src.CUSTOMER_ID&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON co1.COMPANY_ID = src.COMPANY_ID&#13;&#10;    LEFT JOIN hub.CONTACT_TYPES ct1 ON (ct1.CONTACT_TYPE_ID = src.CONTACT_TYPE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="TEAM_CONTACT_ID" nullable="false" remarks="The team contact ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LEAGUE_ID" nullable="true" remarks="The ID of the league that the team belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LEAGUE_NAME" nullable="true" remarks="The name of the league that the team belongs to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVITY_ID" nullable="true" remarks="The ID of the activity that the team is enrolled in" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_NAME" nullable="true" remarks="The name of the activity that the team is enrolled in" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVITY_NUMBER" nullable="true" remarks="The number of the activity that the team is enrolled in" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="TEAM_ID" nullable="true" remarks="The ID of the team that the contact belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="TEAM_NAME" nullable="true" remarks="The name of the team that the contact belongs to" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CUSTOMER_ID" nullable="true" remarks="The ID of the customer who is the contact" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CUSTOMER_NAME" nullable="true" remarks="The name of the customer who is the contact" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="COMPANY_ID" nullable="true" remarks="The ID of the company who is the contact" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="COMPANY_NAME" nullable="true" remarks="The name of the company who is the contact" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CONTACT_TYPE_ID" nullable="true" remarks="The ID of the contact type" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CONTACT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CONTACT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="CONTACT_TYPE_NAME" nullable="true" remarks="The name of the contact type" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="IS_ONLINE_ADMINISTRATOR" nullable="true" remarks="Whether the team contact can administer the team information online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="SHOW_ONLINE" nullable="true" remarks="Whether the team contact should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SHOW_CONTACT_INFO_ONLINE" nullable="true" remarks="Whether the team contact's contact information should be displayed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="CAN_ROLLOVER_TEAM_ONLINE" nullable="true" remarks="Whether the contact can roll-over the team information online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="RECEIVE_PLAYER_ENROLLMENT_EMAILS" nullable="true" remarks="Whether the contact should receive an email as each team member enrolls (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="19" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="TEAM_CONTACT_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="TEAM_PLAYERS" numRows="0" remarks="Your organization's defined team players" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.TEAM_PLAYERS &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.TEAM_PLAYER_ID,&#13;&#10;    te1.LEAGUE_ID,&#13;&#10;    le1.LEAGUE_NAME,&#13;&#10;    te1.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    ac1.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    src.TEAM_ID,&#13;&#10;    te1.TEAM_NAME,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    cu1.CUSTOMER_FIRST_NAME AS FIRST_NAME,&#13;&#10;    cu1.CUSTOMER_LAST_NAME AS LAST_NAME,&#13;&#10;    cu1.CUSTOMER_EMAIL AS EMAIL_ADDRESS,&#13;&#10;    cu1.HOMEPHONE AS HOME_PHONE,&#13;&#10;    cu1.WORKPHONE AS WORK_PHONE,&#13;&#10;    cu1.CELLPHONE AS CELL_PHONE,&#13;&#10;    cu1.OTHERPHONE AS OTHER_PHONE,&#13;&#10;    src.PLAYER_NUMBER,&#13;&#10;    src.TRANSACTION_ID,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.TEAM_PLAYERS src&#13;&#10;    LEFT JOIN hub.TEAMS te1 ON (te1.TEAM_ID = src.TEAM_ID)&#13;&#10;    LEFT JOIN hub.LEAGUES le1 ON (le1.LEAGUE_ID = te1.LEAGUE_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON (ac1.ACTIVITY_ID = te1.ACTIVITY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = src.CUSTOMER_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="TEAM_PLAYER_ID" nullable="false" remarks="The team player ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LEAGUE_ID" nullable="true" remarks="The ID of the league that the team belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LEAGUE_NAME" nullable="true" remarks="The name of the league that the team belongs to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVITY_ID" nullable="true" remarks="The ID of the activity that the team is enrolled in" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_NAME" nullable="true" remarks="The name of the activity that the team is enrolled in" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVITY_NUMBER" nullable="true" remarks="The number of the activity that the team is enrolled in" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="TEAM_ID" nullable="true" remarks="The ID of the team that the player belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="TEAM_NAME" nullable="true" remarks="The name of the team that the player belongs to" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CUSTOMER_ID" nullable="true" remarks="The ID of the customer who is the player" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="FIRST_NAME" nullable="true" remarks="The first name of the player" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="LAST_NAME" nullable="true" remarks="The last name of the player" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="EMAIL_ADDRESS" nullable="true" remarks="The email address of the player" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="HOME_PHONE" nullable="true" remarks="The home phone number of the player" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="WORK_PHONE" nullable="true" remarks="The work phone number of the player" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="CELL_PHONE" nullable="true" remarks="The cell phone number of the player" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="OTHER_PHONE" nullable="true" remarks="The other phone number of the player" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="PLAYER_NUMBER" nullable="true" remarks="The assigned player number" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="TRANSACTION_ID" nullable="true" remarks="The ID of the enrollment transaction" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="TEAM_PLAYER_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="TEAMS" numRows="0" remarks="Your organization's defined teams and groups" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.TEAMS &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.TEAM_ID,&#13;&#10;    src.LEAGUE_ID,&#13;&#10;    le1.LEAGUE_NAME,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    ac1.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    src.TEAM_NAME,&#13;&#10;    src.TEAM_NUMBER,&#13;&#10;    src.TEAM_CODE,&#13;&#10;    src.TEAM_DESCRIPTION,&#13;&#10;    src.HOME_FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME AS HOME_FACILITY_NAME,&#13;&#10;    src.ACTIVITY_TEAM_CATEGORY_ID,&#13;&#10;    tc1.TEAM_CATEGORY_NAME AS ACTIVITY_TEAM_CATEGORY_NAME,&#13;&#10;    src.ACTIVITY_DIVISION_ID,&#13;&#10;    ad1.ACTIVITY_DIVISION_NAME,&#13;&#10;    src.MAXIMUM_PLAYERS,&#13;&#10;    src.LEAGUE_OR_TOURNAMENT_SEED,&#13;&#10;    src.TEAM_MEMBERS_MUST_PAY_IN_FULL,&#13;&#10;    src.IS_GROUP,&#13;&#10;    src.TRANSACTION_ID,&#13;&#10;    src.IS_REFUNDED,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.TEAMS src&#13;&#10;    LEFT JOIN hub.LEAGUES le1 ON (le1.LEAGUE_ID = src.LEAGUE_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON (ac1.ACTIVITY_ID = src.ACTIVITY_ID)&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON (fa1.FACILITY_ID = src.HOME_FACILITY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_TEAM_CATEGORIES atc ON (atc.ACTIVITY_TEAM_CATEGORY_ID = src.ACTIVITY_TEAM_CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.TEAM_CATEGORIES tc1 ON (tc1.TEAM_CATEGORY_ID = atc.TEAM_CATEGORY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_DIVISIONS ad1 ON (ad1.ACTIVITY_DIVISION_ID = src.ACTIVITY_DIVISION_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="TEAM_ID" nullable="false" remarks="The team ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_ENROLLMENTS"/>
            <child catalog="ActiveHub" column="AWAY_TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULE_PAIRINGS"/>
            <child catalog="ActiveHub" column="HOME_TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULE_PAIRINGS"/>
            <child catalog="ActiveHub" column="OFFICIAL_TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULE_PAIRINGS"/>
            <child catalog="ActiveHub" column="TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAM_CONTACTS"/>
            <child catalog="ActiveHub" column="TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAM_PLAYERS"/>
            <child catalog="ActiveHub" column="TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="LEAGUE_ID" nullable="true" remarks="The ID of the league that the team belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="LEAGUE_NAME" nullable="true" remarks="The name of the league that the team belongs to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVITY_ID" nullable="true" remarks="The ID of the activity that the team is enrolled in" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ACTIVITY_NAME" nullable="true" remarks="The name of the activity that the team is enrolled in" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVITY_NUMBER" nullable="true" remarks="The number of the activity that the team is enrolled in" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="TEAM_NAME" nullable="true" remarks="The team name" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="TEAM_NUMBER" nullable="true" remarks="The team number within the league or activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="TEAM_CODE" nullable="true" remarks="The code assigned to the team" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="TEAM_DESCRIPTION" nullable="true" remarks="The team description" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="HOME_FACILITY_ID" nullable="true" remarks="The ID of the team's home facility" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="HOME_FACILITY_NAME" nullable="true" remarks="The name of the team's home facility" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ACTIVITY_TEAM_CATEGORY_ID" nullable="true" remarks="The ID of the activity team category assigned to the team" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_TEAM_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_TEAM_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ACTIVITY_TEAM_CATEGORY_NAME" nullable="true" remarks="The name of the activity team category assigned to the team" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ACTIVITY_DIVISION_ID" nullable="true" remarks="The ID of the activity division assigned to the team" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_DIVISION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_DIVISIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ACTIVITY_DIVISION_NAME" nullable="true" remarks="The name of the activity division assigned to the team" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="MAXIMUM_PLAYERS" nullable="true" remarks="The maximum number of players for the team" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="LEAGUE_OR_TOURNAMENT_SEED" nullable="true" remarks="The seeding number for this team within the league or tournament" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="TEAM_MEMBERS_MUST_PAY_IN_FULL" nullable="true" remarks="Whether team members must pay in full when joining the team (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="IS_GROUP" nullable="true" remarks="Whether this is a group rather than a team (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="TRANSACTION_ID" nullable="true" remarks="The ID of the transaction from enrolling the team" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="IS_REFUNDED" nullable="true" remarks="Whether the team enrollment has been refunded (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="IS_RETIRED" nullable="true" remarks="Whether the team has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="23" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="TEAM_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="TRANSACTION_STAGES" numRows="0" remarks="Contains stages required for individual transactions" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.TRANSACTION_STAGES &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.TRANSACTION_STAGE_ID,&#13;&#10;    src.TRANSACTION_ID,&#13;&#10;    src.STAGE_ID,&#13;&#10;    src.STAGE_VERSION,&#13;&#10;    src.STAGE_DESCRIPTION,&#13;&#10;    src.STAGE_STATUS,&#13;&#10;    src.STAGE_TYPE,&#13;&#10;    src.IS_CHECKLIST_STAGE,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    src.APPROVAL_SYSTEMUSER_ID,&#13;&#10;    CONCAT(su2.USER_FIRST_NAME, IIF(su2.USER_FIRST_NAME IS NOT NULL AND su2.USER_LAST_NAME IS NOT NULL, ' ', ''), su2.USER_LAST_NAME) AS APPROVAL_SYSTEM_USER_NAME,&#13;&#10;    src.DUE_DATE,&#13;&#10;    src.COMPLETED_DATE_TIME,&#13;&#10;    CAST(src.COMPLETED_DATE_TIME AS DATE) AS COMPLETED_DATE_ONLY,&#13;&#10;    src.IS_REQUIRED,&#13;&#10;    src.SHOW_ONLINE,&#13;&#10;    src.ITEM_SIGNED_ONLINE,&#13;&#10;    src.SHOW_SIGNATURE_LINE,&#13;&#10;    src.REQUIRED_BEFORE_COMPLETING_TRANSACTION,&#13;&#10;    src.REQUIRE_INITIALS_ONLINE,&#13;&#10;    src.PRINT_PAYER_AND_CUSTOMER,&#13;&#10;    src.ONLINE_WAIVER_INITIALS,&#13;&#10;    src.IS_PERMIT_LEVEL,&#13;&#10;    src.WAIVER_FILE_ID,&#13;&#10;    src.SIGNED_WAIVER_FILE_ID,&#13;&#10;    src.DELETED_DUE_TO_REFUND,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.TRANSACTION_STAGES src&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su2 ON (su2.SYSTEMUSER_ID = src.APPROVAL_SYSTEMUSER_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="TRANSACTION_STAGE_ID" nullable="false" remarks="The transaction stage ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="TRANSACTION_ID" nullable="true" remarks="The transaction ID that the stage belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="STAGE_ID" nullable="true" remarks="The stage or checklist item ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="STAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="STAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="STAGE_VERSION" nullable="true" remarks="The version number of the stage or checklist item at the time of the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="STAGE_DESCRIPTION" nullable="true" remarks="The stage or checklist item description" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="STAGE_STATUS" nullable="true" remarks="The current stage status (Waiting for other / In progress / In progress - email sent / Approved / Denied / Inactive)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="STAGE_TYPE" nullable="true" remarks="The stage type (Request Start / Request in Progress / Request Decision End)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="IS_CHECKLIST_STAGE" nullable="true" remarks="Whether this stage is a checklist item (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who initiated the transaction stage" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="SYSTEM_USER_NAME" nullable="false" remarks="The name of the system user who initiated the transaction stage" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="APPROVAL_SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who must approve the transaction stage" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="APPROVAL_SYSTEM_USER_NAME" nullable="false" remarks="The name of the system user who must approve the transaction stage" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="DUE_DATE" nullable="true" remarks="The date that this transaction stage is due" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="COMPLETED_DATE_TIME" nullable="true" remarks="The date and time that this transaction stage was completed" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="COMPLETED_DATE_ONLY" nullable="true" remarks="The date that this transaction stage was completed (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="IS_REQUIRED" nullable="true" remarks="Whether the item is required prior to its due date (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SHOW_ONLINE" nullable="true" remarks="Whether the checklist item should be shown online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ITEM_SIGNED_ONLINE" nullable="true" remarks="Whether the checklist item can be signed online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="SHOW_SIGNATURE_LINE" nullable="true" remarks="Whether a signature line should be displayed for this item (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="REQUIRED_BEFORE_COMPLETING_TRANSACTION" nullable="true" remarks="Whether the item is required prior to completing the transaction (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="REQUIRE_INITIALS_ONLINE" nullable="true" remarks="How the acceptance of the item should be performed online (Initials / Checkbox / E-signature)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="PRINT_PAYER_AND_CUSTOMER" nullable="true" remarks="Whether the payer and the customer should both be printed on the waiver (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="ONLINE_WAIVER_INITIALS" nullable="true" remarks="The initials that were entered online" size="4" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="IS_PERMIT_LEVEL" nullable="true" remarks="Whether a permit level approval is required (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="WAIVER_FILE_ID" nullable="true" remarks="The ID of the required waiver document" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="SIGNED_WAIVER_FILE_ID" nullable="true" remarks="The ID of the signed and scanned waiver document" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="DELETED_DUE_TO_REFUND" nullable="true" remarks="Whether the transaction has been refunded or voided (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="27" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="TRANSACTION_STAGE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="TRANSACTIONS" numRows="0" remarks="Posted transaction data.  Does not include voided records." schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.TRANSACTIONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.TRANSACTION_ID,&#13;&#10;    src.RECEIPT_HEADER_ID,&#13;&#10;    FORMAT(rh1.RECEIPT_NUMBER, '#.0000') AS RECEIPT_NUMBER,&#13;&#10;    src.CREATION_DATE_TIME,&#13;&#10;    CAST(src.CREATION_DATE_TIME AS DATE) AS CREATION_DATE_ONLY,&#13;&#10;    src.LAST_UPDATED_DATE_TIME,&#13;&#10;    CAST(src.LAST_UPDATED_DATE_TIME AS DATE) AS LAST_UPDATED_DATE_ONLY,&#13;&#10;    src.TRANSACTION_SITE_ID,&#13;&#10;    si1.SITE_NAME AS TRANSACTION_SITE_NAME,&#13;&#10;    src.REVENUE_SITE_ID,&#13;&#10;    si2.SITE_NAME AS REVENUE_SITE_NAME,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    src.CASH_SUMMARY_SHEET_ID,&#13;&#10;    src.MODULE_NAME,&#13;&#10;    src.TRANSACTION_TYPE_ID,&#13;&#10;    rv4.REFERENCE_VALUE AS TRANSACTION_TYPE,&#13;&#10;    src.ORIGINAL_TRANSACTION_TYPE_ID,&#13;&#10;    rv5.REFERENCE_VALUE AS ORIGINAL_TRANSACTION_TYPE,&#13;&#10;    src.ORIGINAL_TRANSACTION_ID,&#13;&#10;    src.ROOT_TRANSACTION_ID,&#13;&#10;    src.LINKED_TRANSACTION_ID,&#13;&#10;    src.ADDITIONAL_TRANSACTION_ID,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME) AS CUSTOMER_NAME,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.APPLIED_AMOUNT,&#13;&#10;    src.CREDIT_CARD_AMOUNT,&#13;&#10;    src.ECP_AMOUNT,&#13;&#10;    src.PREFUND_AMOUNT_USED,&#13;&#10;    src.QUANTITY,&#13;&#10;    src.EVENT_NAME,&#13;&#10;    src.STAFF_NOTES,&#13;&#10;    src.CUSTOMER_NOTES,&#13;&#10;    src.EFFECTIVE_DATE_TIME,&#13;&#10;    CAST(src.EFFECTIVE_DATE_TIME AS DATE) AS EFFECTIVE_DATE_ONLY,&#13;&#10;    src.PRORATE_EFFECTIVE_DATE,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    src.WAITLIST_RANK,&#13;&#10;    src.PRIVATE_LESSON_GROUP_ID,&#13;&#10;    src.MAX_PRIVATE_LESSON_BOOKINGS,&#13;&#10;    src.RESERVATION_PERIOD_UNIT,&#13;&#10;    src.PASS_OR_FAIL,&#13;&#10;    src.PASS_OR_FAIL_DATE,&#13;&#10;    src.PASS_OR_FAIL_PERCENTAGE,&#13;&#10;    src.PASS_OR_FAIL_GRADE_ID,&#13;&#10;    apfg.ACTIVITY_PASS_FAIL_GRADE_NAME AS PASS_OR_FAIL_GRADE_NAME,&#13;&#10;    src.DEPOSIT_PAYOFF_AMOUNT,&#13;&#10;    src.ROLLOVER_TRANSACTION_ID,&#13;&#10;    src.PROGRAM_ID,&#13;&#10;    pr1.PROGRAM_NAME,&#13;&#10;    src.SESSION_ID,&#13;&#10;    se1.SESSION_NAME,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    src.MEMBERSHIP_ID,&#13;&#10;    src.EXPIRATION_DATE,&#13;&#10;    src.MAX_USES,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.PERMIT_ID,&#13;&#10;    pe1.PERMIT_NUMBER,&#13;&#10;    src.RESERVATION_TYPE,&#13;&#10;    src.EVENT_TYPE_ID,&#13;&#10;    et1.EVENT_TYPE_NAME AS EVENT_TYPE,&#13;&#10;    src.SCHEDULE_TYPE_ID,&#13;&#10;    st1.SCHEDULE_TYPE_NAME AS SCHEDULE_TYPE,&#13;&#10;    src.PREP_CODE_ID,&#13;&#10;    pc1.PREP_CODE_NAME,&#13;&#10;    src.NON_EXCLUSIVE_EVENT,&#13;&#10;    src.LOCKER_ID,&#13;&#10;    src.COMBINATION_LOCK_ID,&#13;&#10;    src.LOCKER_COMBINATION,&#13;&#10;    src.POSPRODUCT_ID,&#13;&#10;    ppr.PRODUCT_NAME,&#13;&#10;    src.POS_FEATURE_1,&#13;&#10;    src.POS_FEATURE_2,&#13;&#10;    src.REFUND_TO_INVENTORY_QUANTITY,&#13;&#10;    src.LEAGUE_SCHEDULE_ID,&#13;&#10;    src.TEAM_ID,&#13;&#10;    src.CAMPAIGN_ID,&#13;&#10;    ca1.CAMPAIGN_NAME,&#13;&#10;    src.GIFT_CARD_ID,&#13;&#10;    src.CUSTOMQUESTIONANSWER_TRANSACTION_ID,&#13;&#10;    src.REFUND_TYPE,&#13;&#10;    src.REFUND_RETAIN_OWED_PERCENT,&#13;&#10;    src.REFUND_RETAIN_AMOUNT,&#13;&#10;    src.WITHDRAW_REASON,&#13;&#10;    src.CANCEL_REASON_ID,&#13;&#10;    re1.DESCRIPTION AS CANCEL_REASON,&#13;&#10;    src.TRANSACTION_FEE_AMOUNT,&#13;&#10;    src.CREDIT_CARD_FEE_AMOUNT,&#13;&#10;    src.CREDIT_CARD_FEE_SURCHARGE_AMOUNT,&#13;&#10;    src.CONVENIENCE_FEE_AMOUNT,&#13;&#10;    src.CONVENIENCE_FEE_ABSORBED_AMOUNT,&#13;&#10;    src.CONVENIENCE_FEE_DISCOUNT_AMOUNT,&#13;&#10;    src.CONVENIENCE_FEE_ABSORBED_DISCOUNT_AMOUNT,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    'No' AS VOIDED,&#13;&#10;    src.GIFT_CARD_ID AS GIFT_CERTIFICATE_ID,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.TRANSACTION_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.TRANSACTIONS src&#13;&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON (rh1.ORG_ID = src.ORG_ID AND rh1.RECEIPT_HEADER_ID = src.RECEIPT_HEADER_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.TRANSACTION_SITE_ID)&#13;&#10;    LEFT JOIN hub.SITES si2 ON (si2.ORG_ID = src.ORG_ID AND si2.SITE_ID = src.REVENUE_SITE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.ORG_ID = src.ORG_ID AND co1.COMPANY_ID = src.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON (ac1.ORG_ID = src.ORG_ID AND ac1.ACTIVITY_ID = src.ACTIVITY_ID)&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON (fa1.ORG_ID = src.ORG_ID AND fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    LEFT JOIN hub.PROGRAMS pr1 ON (pr1.ORG_ID = src.ORG_ID AND pr1.PROGRAM_ID = src.PROGRAM_ID)&#13;&#10;    LEFT JOIN hub.SESSIONS se1 ON (se1.ORG_ID = src.ORG_ID AND se1.SESSION_ID = src.SESSION_ID)&#13;&#10;    LEFT JOIN hub.PACKAGES pa1 ON (pa1.ORG_ID = src.ORG_ID AND pa1.PACKAGE_ID = src.PACKAGE_ID)&#13;&#10;    LEFT JOIN hub.PERMITS pe1 ON (pe1.ORG_ID = src.ORG_ID AND pe1.PERMIT_ID = src.PERMIT_ID)&#13;&#10;    LEFT JOIN hub.POS_PRODUCTS ppr ON (ppr.ORG_ID = src.ORG_ID AND ppr.POSPRODUCT_ID = src.POSPRODUCT_ID)&#13;&#10;    LEFT JOIN hub.CAMPAIGNS ca1 ON (ca1.ORG_ID = src.ORG_ID AND ca1.CAMPAIGN_ID = src.CAMPAIGN_ID)&#13;&#10;    LEFT JOIN hub.REASONS re1 ON (re1.ORG_ID = src.ORG_ID AND re1.REASON_ID = src.CANCEL_REASON_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.PREP_CODES pc1 ON (pc1.ORG_ID = src.ORG_ID AND pc1.PREP_CODE_ID = src.PREP_CODE_ID)&#13;&#10;    LEFT JOIN hub.SCHEDULE_TYPES st1 ON (st1.ORG_ID = src.ORG_ID AND st1.SCHEDULE_TYPE_ID = src.SCHEDULE_TYPE_ID)&#13;&#10;    LEFT JOIN hub.EVENT_TYPES et1 ON (et1.ORG_ID = src.ORG_ID AND et1.EVENT_TYPE_ID = src.EVENT_TYPE_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_PASS_FAIL_GRADES apfg ON (apfg.ORG_ID = src.ORG_ID AND apfg.ACTIVITY_PASS_FAIL_GRADE_ID = src.PASS_OR_FAIL_GRADE_ID)&#13;&#10;    LEFT JOIN hub.REFERENCE_VALUES rv4 ON (rv4.ORG_ID = src.ORG_ID AND rv4.REFERENCE_ID = src.TRANSACTION_TYPE_ID AND rv4.REFERENCE_TABLE = 'TRANSACTION_TYPES' AND rv4.REFERENCE_COLUMN = 'TITLE')&#13;&#10;    LEFT JOIN hub.REFERENCE_VALUES rv5 ON (rv5.ORG_ID = src.ORG_ID AND rv5.REFERENCE_ID = src.ORIGINAL_TRANSACTION_TYPE_ID AND rv5.REFERENCE_TABLE = 'TRANSACTION_TYPES' AND rv5.REFERENCE_COLUMN = 'TITLE')&#13;&#10;WHERE&#13;&#10;    src.VOIDED = 0;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="TRANSACTION_ID" nullable="true" remarks="Transaction ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="REGISTRATION_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_ENROLLMENTS"/>
            <child catalog="ActiveHub" column="ROOT_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_ENROLLMENTS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_ENROLLMENTS"/>
            <child catalog="ActiveHub" column="ROOT_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_PRIVATE_LESSONS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_PRIVATE_LESSONS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_USAGE"/>
            <child catalog="ActiveHub" column="ROOT_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_THIRD_PARTY_BILLING_LINKS"/>
            <child catalog="ActiveHub" column="ORIGINAL_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_SCHEDULES"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_SALES_DETAILS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="ORIGINAL_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_GL_POSTINGS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAM_PLAYERS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAMS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTION_STAGES"/>
            <child catalog="ActiveHub" column="ADDITIONAL_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="LINKED_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="ORIGINAL_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="ROLLOVER_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="ROOT_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="RECEIPT_HEADER_ID" nullable="true" remarks="ID of the receipt header that the transaction belongs to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="RECEIPT_NUMBER" nullable="true" remarks="The receipt number that the transaction belongs to" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="3" name="CREATION_DATE_TIME" nullable="true" remarks="Date and time that the transaction was created" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CREATION_DATE_ONLY" nullable="true" remarks="Date that the transaction was created (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="LAST_UPDATED_DATE_TIME" nullable="true" remarks="Date and time that the transaction was last updated" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="LAST_UPDATED_DATE_ONLY" nullable="true" remarks="Date that the transaction was last updated (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="TRANSACTION_SITE_ID" nullable="true" remarks="ID of the site where the transaction was created" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="TRANSACTION_SITE_NAME" nullable="true" remarks="Name of the site where the transaction was created" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="REVENUE_SITE_ID" nullable="true" remarks="ID of the site for the item that the transaction is for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="REVENUE_SITE_NAME" nullable="true" remarks="Name of the site for the item that the transaction is for" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="WORKSTATION_ID" nullable="true" remarks="ID of the workstation where the transaction was created" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="WORKSTATION_NAME" nullable="true" remarks="Name of the workstation where the transaction was created" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the user who created the transaction" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the user who created the transaction" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="CASH_SUMMARY_SHEET_ID" nullable="true" remarks="ID of the cash summary sheet that was active on the workstation when the transaction was created" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="MODULE_NAME" nullable="true" remarks="The system module that the transaction belongs to" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="TRANSACTION_TYPE_ID" nullable="true" remarks="The transaction type ID of the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="TRANSACTION_TYPE" nullable="true" remarks="The transaction type of the transaction" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ORIGINAL_TRANSACTION_TYPE_ID" nullable="true" remarks="The original transaction type ID of the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ORIGINAL_TRANSACTION_TYPE" nullable="true" remarks="The original transaction type of the transaction" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ORIGINAL_TRANSACTION_ID" nullable="true" remarks="The original transaction ID for a series of transactions" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="ROOT_TRANSACTION_ID" nullable="true" remarks="The root transaction ID for a chain of transactions" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="LINKED_TRANSACTION_ID" nullable="true" remarks="A linked transaction ID for a related transaction if applicable" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="ADDITIONAL_TRANSACTION_ID" nullable="true" remarks="An additional transaction ID for a related transaction if applicable" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="CUSTOMER_ID" nullable="true" remarks="ID of the customer who is the participant of the transaction" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="CUSTOMER_NAME" nullable="false" remarks="Name of the customer who is the participant of the transaction" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="COMPANY_ID" nullable="true" remarks="ID of the company who is the owner of the transaction if applicable" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="COMPANY_NAME" nullable="true" remarks="Name of the company who is the owner of the transaction if applicable" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="29" name="APPLIED_AMOUNT" nullable="true" remarks="The total payment amount applied to the transaction" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="30" name="CREDIT_CARD_AMOUNT" nullable="true" remarks="The credit card payment amount applied to the transaction" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="31" name="ECP_AMOUNT" nullable="true" remarks="The electronic check processing payment amount applied to the transaction" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="32" name="PREFUND_AMOUNT_USED" nullable="true" remarks="Total prefund amount used for this transaction" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="QUANTITY" nullable="true" remarks="The quantity applicable to this transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="EVENT_NAME" nullable="true" remarks="The event or item description for this transaction" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="STAFF_NOTES" nullable="true" remarks="Staff notes entered for this transaction" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="CUSTOMER_NOTES" nullable="true" remarks="Customer notes entered for this transaction" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="37" name="EFFECTIVE_DATE_TIME" nullable="true" remarks="The effective date and time related to this transaction" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="EFFECTIVE_DATE_ONLY" nullable="true" remarks="The effective date related to this transaction (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="PRORATE_EFFECTIVE_DATE" nullable="true" remarks="The proration date applied to this transaction" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="ACTIVITY_ID" nullable="true" remarks="The activity ID if this transaction is related to an activity" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="WAITLIST_RANK" nullable="true" remarks="The customer's waitlist rank for waitlist transactions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="PRIVATE_LESSON_GROUP_ID" nullable="true" remarks="The private lesson group ID for the enrollment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="MAX_PRIVATE_LESSON_BOOKINGS" nullable="true" remarks="The number of private lessons included in the enrollment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="RESERVATION_PERIOD_UNIT" nullable="true" remarks="Default reservation period (Use Default / Minute / Hour / Day / Week / Month / Defined Date Range / Rental Block / Overnight)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="PASS_OR_FAIL" nullable="true" remarks="The pass or fail status if a grade has been entered that designates pass or fail (pass / fail)" size="4" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="PASS_OR_FAIL_DATE" nullable="true" remarks="The date that the pass or fail status was entered" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="47" name="PASS_OR_FAIL_PERCENTAGE" nullable="true" remarks="The pass or fail percentage if one has been entered" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="PASS_OR_FAIL_GRADE_ID" nullable="true" remarks="The pass or fail grade ID that has been entered" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_PASS_FAIL_GRADE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITY_PASS_FAIL_GRADES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="PASS_OR_FAIL_GRADE_NAME" nullable="true" remarks="The pass or fail grade name that has been entered" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="50" name="DEPOSIT_PAYOFF_AMOUNT" nullable="true" remarks="The amount required to pay off a specified deposit" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="ROLLOVER_TRANSACTION_ID" nullable="true" remarks="The transaction ID created when this enrollment was rolled over" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="PROGRAM_ID" nullable="true" remarks="The program ID if this transaction is related to a daycare program" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="PROGRAM_NAME" nullable="true" remarks="The program name if this transaction is related to a daycare program" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="SESSION_ID" nullable="true" remarks="The session ID if this transaction is related to a daycare program session" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SESSION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SESSIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="SESSION_NAME" nullable="true" remarks="The session name if this transaction is related to a daycare program session" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="PACKAGE_ID" nullable="true" remarks="The package ID if this transaction is related to a membership" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="PACKAGE_NAME" nullable="true" remarks="The package name if this transaction is related to a membership" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="MEMBERSHIP_ID" nullable="true" remarks="The membership ID if this transaction is related to a membership" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="EXPIRATION_DATE" nullable="true" remarks="The expiration date if this transaction is related to a membership sale or renewal" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="MAX_USES" nullable="true" remarks="The max uses purchased for a punch pass membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="61" name="FACILITY_ID" nullable="true" remarks="The facility ID if this transaction is related to a reservation or private lesson" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="FACILITY_NAME" nullable="true" remarks="The facility name if this transaction is related to a reservation or private lesson" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="PERMIT_ID" nullable="true" remarks="The permit ID if this transaction is related to a reservation" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PERMIT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PERMITS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="PERMIT_NUMBER" nullable="true" remarks="The permit number if this transaction is related to a reservation" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="65" name="RESERVATION_TYPE" nullable="true" remarks="The reservation type (Regular / Continuous)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="66" name="EVENT_TYPE_ID" nullable="true" remarks="The event type ID if this transaction is related to a reservation" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="EVENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="67" name="EVENT_TYPE" nullable="true" remarks="The event type name if this transaction is related to a reservation" size="102" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="68" name="SCHEDULE_TYPE_ID" nullable="true" remarks="The schedule type ID if this transaction is related to a reservation" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SCHEDULE_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SCHEDULE_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="69" name="SCHEDULE_TYPE" nullable="true" remarks="The schedule type name if this transaction is related to a reservation" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="70" name="PREP_CODE_ID" nullable="true" remarks="The prep code ID if this transaction is related to a reservation" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PREP_CODE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PREP_CODES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="71" name="PREP_CODE_NAME" nullable="true" remarks="The prep code ID if this transaction is related to a reservation" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="72" name="NON_EXCLUSIVE_EVENT" nullable="true" remarks="Whether the reservation associated with this transaction is a non-exclusive event (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="73" name="LOCKER_ID" nullable="true" remarks="The locker ID if this transaction is related to a locker reservation" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="74" name="COMBINATION_LOCK_ID" nullable="true" remarks="The combination lock ID if this transaction is related to a locker reservation" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="75" name="LOCKER_COMBINATION" nullable="true" remarks="The locker combination if this transaction is related to a locker reservation" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="76" name="POSPRODUCT_ID" nullable="true" remarks="The POS product ID if this is a point of sale transaction" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="77" name="PRODUCT_NAME" nullable="true" remarks="The POS product name if this is a point of sale transaction" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="78" name="POS_FEATURE_1" nullable="true" remarks="The feature 1 option selected during a point of sale transaction" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="79" name="POS_FEATURE_2" nullable="true" remarks="The feature 2 option selected during a point of sale transaction" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="80" name="REFUND_TO_INVENTORY_QUANTITY" nullable="true" remarks="The quantity to be returned to inventory during a point of sale refund" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="81" name="LEAGUE_SCHEDULE_ID" nullable="true" remarks="The league schedule ID if this transaction is related to a league" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LEAGUE_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LEAGUE_SCHEDULES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="82" name="TEAM_ID" nullable="true" remarks="The team ID if this transaction is related to a league and a specific team" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TEAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="83" name="CAMPAIGN_ID" nullable="true" remarks="The campaign ID if this transaction is related to a donation" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CAMPAIGN_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CAMPAIGNS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="84" name="CAMPAIGN_NAME" nullable="true" remarks="The campaign name if this transaction is related to a donation" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="85" name="GIFT_CARD_ID" nullable="true" remarks="The gift card ID if this transaction is related to the sale or refund of a gift card" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GIFT_CARD_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GIFT_CARDS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="86" name="CUSTOMQUESTIONANSWER_TRANSACTION_ID" nullable="true" remarks="The transaction ID for custom question answers that apply to this transaction as well" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="87" name="REFUND_TYPE" nullable="true" remarks="The type of refund processed" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="88" name="REFUND_RETAIN_OWED_PERCENT" nullable="true" remarks="The percentage of the fee retained during a refund" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="89" name="REFUND_RETAIN_AMOUNT" nullable="true" remarks="The amount of the fee retained during a refund" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="90" name="WITHDRAW_REASON" nullable="true" remarks="The reason for withdrawal" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="91" name="CANCEL_REASON_ID" nullable="true" remarks="The ID of the reason selected during a refund or cancellation transaction" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="REASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="92" name="CANCEL_REASON" nullable="true" remarks="The reason selected during a refund or cancellation transaction" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="93" name="TRANSACTION_FEE_AMOUNT" nullable="true" remarks="Amount of transaction fee" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="94" name="CREDIT_CARD_FEE_AMOUNT" nullable="true" remarks="Amount of credit card fee" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="95" name="CREDIT_CARD_FEE_SURCHARGE_AMOUNT" nullable="true" remarks="Amount of credit card fee that is a surcharge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="96" name="CONVENIENCE_FEE_AMOUNT" nullable="true" remarks="Amount of convenience fee" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="97" name="CONVENIENCE_FEE_ABSORBED_AMOUNT" nullable="true" remarks="Amount of convenience fee that was absorbed" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="98" name="CONVENIENCE_FEE_DISCOUNT_AMOUNT" nullable="true" remarks="Amount of convenience fee discount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="99" name="CONVENIENCE_FEE_ABSORBED_DISCOUNT_AMOUNT" nullable="true" remarks="Amount of convenience fee discount that was absorbed" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="100" name="IS_RETIRED" nullable="true" remarks="Whether the transaction has been marked as retired to hide it from display (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="101" name="VOIDED" nullable="false" remarks="Whether the transaction has been voided (Yes/No)" size="2" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="102" name="GIFT_CERTIFICATE_ID" nullable="true" remarks="The gift certificate ID if this transaction is related to a gift certificate" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="103" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="104" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="105" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="106" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="107" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="TRANSACTION_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="UPLOADED_FILES" numRows="0" remarks="Contains details of uploaded system and customer files. Does not contain the actual file content." schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.UPLOADED_FILES &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.UPLOADED_FILE_ID,&#13;&#10;    src.DISPLAY_NAME,&#13;&#10;    src.CONTENT_TYPE,&#13;&#10;    src.FILE_SIZE_BYTES,&#13;&#10;    src.HREF_TEXT,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME) AS CUSTOMER_NAME,&#13;&#10;    src.FILE_EXTENSION,&#13;&#10;    src.USE_AS_MAP_ICON,&#13;&#10;    src.IMAGE_WIDTH,&#13;&#10;    src.IMAGE_HEIGHT,&#13;&#10;    src.UPLOADED_BY_SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS UPLOADED_BY_SYSTEM_USER_NAME,&#13;&#10;    src.UPLOADED_DATE_TIME,&#13;&#10;    src.ENABLE_FOR_INSTRUCTOR_EMAIL_ATTACHMENT,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.FILE_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.UPLOADED_FILES src&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.SYSTEMUSER_ID = src.UPLOADED_BY_SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="UPLOADED_FILE_ID" nullable="false" remarks="The ID of the uploaded file" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CAMPAIGN_IMAGE_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CAMPAIGNS"/>
            <child catalog="ActiveHub" column="SIGNED_WAIVER_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SIGNED_WAIVERS"/>
            <child catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_SIGNED_WAIVERS"/>
            <child catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_WAIVERS"/>
            <child catalog="ActiveHub" column="DISPLAY_IMAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="EVENT_TYPES"/>
            <child catalog="ActiveHub" column="CAPTIVATE_APP_IMAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
            <child catalog="ActiveHub" column="AVAILABLE_ICON_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_TYPES"/>
            <child catalog="ActiveHub" column="BOOKED_ICON_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_TYPES"/>
            <child catalog="ActiveHub" column="CLOSED_ICON_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITY_TYPES"/>
            <child catalog="ActiveHub" column="ICON_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_ROOMS"/>
            <child catalog="ActiveHub" column="IMAGE_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_PRODUCTS"/>
            <child catalog="ActiveHub" column="DISPLAY_IMAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RESERVATION_GROUPS"/>
            <child catalog="ActiveHub" column="SIGNED_WAIVER_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTION_STAGES"/>
            <child catalog="ActiveHub" column="WAIVER_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTION_STAGES"/>
            <child catalog="ActiveHub" column="BIRTHDAY_ALERT_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="EQUIPMENT_CUSTOMER_MAX_EXCEEDED_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="EQUIPMENT_INVENTORY_SHORT_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="EQUIPMENT_PREREQUISITE_MISSING_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="EQUIPMENT_SIGN_IN_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="EQUIPMENT_SIGN_OUT_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="PASS_AT_LAST_USE_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="PASS_DEBIT_BALANCE_GREATER_THAN_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="PASS_EXPIRY_WITHIN_DAYS_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="PASS_INVALID_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="PASS_MULTIPLE_SELECT_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="PASS_SCANNED_SAME_DAY_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="PASS_VALID_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="STAFF_OR_CUSTOMER_NOTES_ALERT_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="DISPLAY_NAME" nullable="true" remarks="The display name of the uploaded file if one was provided, otherwise contains a system-generated value" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CONTENT_TYPE" nullable="true" remarks="The content type of the uploaded file" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="FILE_SIZE_BYTES" nullable="true" remarks="The size of the uploaded file in bytes" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="HREF_TEXT" nullable="true" remarks="The text that should be displayed when presenting the file as a clickable web site link" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMER_ID" nullable="true" remarks="The ID of the customer that the uploaded file is related to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOMER_NAME" nullable="false" remarks="The name of the customer that the uploaded file is related to" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="FILE_EXTENSION" nullable="true" remarks="The file extension of the uploaded file" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="USE_AS_MAP_ICON" nullable="true" remarks="Whether the uploaded file is an image and can be used as a map icon (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="IMAGE_WIDTH" nullable="true" remarks="The image width if the uploaded file is an image" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="IMAGE_HEIGHT" nullable="true" remarks="The image height if the uploaded file is an image" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="UPLOADED_BY_SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who uploaded the file" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="UPLOADED_BY_SYSTEM_USER_NAME" nullable="false" remarks="The name of the system user who uploaded the file" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="UPLOADED_DATE_TIME" nullable="true" remarks="The date and time that the file was uploaded" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ENABLE_FOR_INSTRUCTOR_EMAIL_ATTACHMENT" nullable="true" remarks="Whether the uploaded file can be selected as an email attachment for instructor emails (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="SITE_ID" nullable="true" remarks="The ID of the site that the uploaded file is specific to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SITE_NAME" nullable="true" remarks="The name of the site that the uploaded file is specific to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="FILE_NAME" nullable="true" remarks="The file name of the uploaded file if applicable" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="UPLOADED_FILE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="USAGE_FEES" numRows="0" remarks="Master table showing defined usage fees data" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.USAGE_FEES &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.USAGE_FEE_ID,&#13;&#10;    src.USAGE_FEE_NAME,&#13;&#10;    src.USAGE_FEE_DESCRIPTION,&#13;&#10;    src.USAGE_FEE_FOR,&#13;&#10;    src.IS_DEFAULT_FOR_ACTIVITIES,&#13;&#10;    src.IS_DEFAULT_FOR_PACKAGES,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.EXCLUDE_FROM_PAYMENT_PLAN,&#13;&#10;    src.FEE_CHARGE_ID,&#13;&#10;    ch1.CHARGE_NAME AS FEE_CHARGE_NAME,&#13;&#10;    src.FEE_GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS FEE_GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS FEE_GL_ACCOUNT_NUMBER,&#13;&#10;    src.IS_DISCOUNTABLE_FOR_PACKAGES,&#13;&#10;    src.FEE_SYSTEM_GL_ACCOUNT_PACKAGE_ID,&#13;&#10;    sgap1.SYSTEM_GL_ACCOUNT_PACKAGE_NAME AS FEE_SYSTEM_GL_ACCOUNT_PACKAGE,&#13;&#10;    src.DISCOUNT_SYSTEM_GL_ACCOUNT_PACKAGE_ID,&#13;&#10;    sgap2.SYSTEM_GL_ACCOUNT_PACKAGE_NAME AS DISCOUNT_SYSTEM_GL_ACCOUNT_PACKAGE,&#13;&#10;    src.APPLY_TYPE,&#13;&#10;    src.GOOD_FOR_TYPE,&#13;&#10;    src.GOOD_FOR_START_DATE,&#13;&#10;    src.GOOD_FOR_END_DATE,&#13;&#10;    src.OVERRIDE_FEE_AMOUNT,&#13;&#10;    src.OVERRIDE_ALT_FEE_AMOUNT,&#13;&#10;    src.MAX_FAMILY_USAGE_FEE_AMOUNT,&#13;&#10;    src.EARLY_REGISTRATION_UNTIL_TYPE,&#13;&#10;    src.EARLY_REGISTRATION_UNTIL_SEASON_ID,&#13;&#10;    se1.SEASON_NAME AS EARLY_REGISTRATION_UNTIL_SEASON,&#13;&#10;    src.EARLY_REGISTRATION_UNTIL_CHILD_SEASON_ID,&#13;&#10;    cs1.CHILD_SEASON_NAME AS EARLY_REGISTRATION_UNTIL_CHILD_SEASON,&#13;&#10;    src.EARLY_REGISTRATION_UNTIL_DATE,&#13;&#10;    src.EARLY_REGISTRATION_DISCOUNT_CHARGE_ID,&#13;&#10;    ch2.CHARGE_NAME AS EARLY_REGISTRATION_DISCOUNT_CHARGE_NAME,&#13;&#10;    src.EARLY_REGISTRATION_DISCOUNT_GLACCOUNT_ID,&#13;&#10;    gl2.ACCOUNTNAME AS EARLY_REGISTRATION_DISCOUNT_GL_ACCOUNT_NAME,&#13;&#10;    gl2.ACCOUNTNUMBER AS EARLY_REGISTRATION_DISCOUNT_GL_ACCOUNT_NUMBER,&#13;&#10;    src.EARLY_REGISTRATION_OVERRIDE_DISCOUNT_AMOUNT,&#13;&#10;    src.EARLY_REGISTRATION_OVERRIDE_DISCOUNT_PERCENT,&#13;&#10;    src.EARLY_REGISTRATION_OVERRIDE_ALT_DISCOUNT_AMOUNT,&#13;&#10;    src.EARLY_REGISTRATION_OVERRIDE_ALT_DISCOUNT_PERCENT,&#13;&#10;    src.WAIVED_FOR_EARLY_REGISTRATION_FEES_AMOUNT,&#13;&#10;    src.TAXABLE_BY_TAX_1,&#13;&#10;    src.TAXABLE_BY_TAX_2,&#13;&#10;    src.TAXABLE_BY_TAX_3,&#13;&#10;    src.TAXABLE_BY_TAX_4,&#13;&#10;    src.TAXABLE_BY_TAX_5,&#13;&#10;    src.TAXABLE_BY_TAX_6,&#13;&#10;    src.TAXABLE_BY_TAX_7,&#13;&#10;    src.TAXABLE_BY_TAX_8,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.USAGE_FEES src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.CHARGES ch1 ON (ch1.CHARGE_ID = src.FEE_CHARGE_ID)&#13;&#10;    LEFT JOIN hub.CHARGES ch2 ON (ch2.CHARGE_ID = src.EARLY_REGISTRATION_DISCOUNT_CHARGE_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.GLACCOUNT_ID = src.FEE_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl2 ON (gl2.GLACCOUNT_ID = src.EARLY_REGISTRATION_DISCOUNT_GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.CHILD_SEASONS cs1 ON (cs1.CHILD_SEASON_ID = src.EARLY_REGISTRATION_UNTIL_CHILD_SEASON_ID)&#13;&#10;    LEFT JOIN hub.SEASONS se1 ON (se1.SEASON_ID = src.EARLY_REGISTRATION_UNTIL_SEASON_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_GL_ACCOUNT_PACKAGES sgap1 ON (sgap1.SYSTEM_GL_ACCOUNT_PACKAGE_ID = src.FEE_SYSTEM_GL_ACCOUNT_PACKAGE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_GL_ACCOUNT_PACKAGES sgap2 ON (sgap2.SYSTEM_GL_ACCOUNT_PACKAGE_ID = src.DISCOUNT_SYSTEM_GL_ACCOUNT_PACKAGE_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="USAGE_FEE_ID" nullable="true" remarks="Usage fee ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="USAGE_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="USAGE_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="COUPON_QUALIFICATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="USAGE_FEE_NAME" nullable="true" remarks="Usage fee name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="USAGE_FEE_DESCRIPTION" nullable="true" remarks="Usage fee description" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="USAGE_FEE_FOR" nullable="true" remarks="What the usage fee is for (packages / activities)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="IS_DEFAULT_FOR_ACTIVITIES" nullable="true" remarks="Whether this usage fee is the default for activities (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="IS_DEFAULT_FOR_PACKAGES" nullable="true" remarks="Whether this usage fee is the default for packages (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SITE_ID" nullable="true" remarks="Site ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SITE_NAME" nullable="true" remarks="Site name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="EXCLUDE_FROM_PAYMENT_PLAN" nullable="true" remarks="Whether this usage fee should be excluded from payment plans (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="FEE_CHARGE_ID" nullable="true" remarks="The charge ID for the fee" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="FEE_CHARGE_NAME" nullable="true" remarks="The charge name for the fee" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="FEE_GLACCOUNT_ID" nullable="true" remarks="The GL account ID for the fee" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="FEE_GL_ACCOUNT_NAME" nullable="true" remarks="The GL account name for the fee" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="FEE_GL_ACCOUNT_NUMBER" nullable="true" remarks="The GL account number for the fee" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="IS_DISCOUNTABLE_FOR_PACKAGES" nullable="true" remarks="Whether this usage fee is the discountable for packages (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="FEE_SYSTEM_GL_ACCOUNT_PACKAGE_ID" nullable="true" remarks="The system GL account package ID for the fee" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="FEE_SYSTEM_GL_ACCOUNT_PACKAGE" nullable="true" remarks="The system GL account package name for the fee" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="DISCOUNT_SYSTEM_GL_ACCOUNT_PACKAGE_ID" nullable="true" remarks="The system GL account package ID for the discount" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="DISCOUNT_SYSTEM_GL_ACCOUNT_PACKAGE" nullable="true" remarks="The system GL account package name for the discount" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="APPLY_TYPE" nullable="true" remarks="How this usage fee is to be applied (Per Member / Per Family Member / Per Individual)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="GOOD_FOR_TYPE" nullable="true" remarks="When the activity usage fee is valid (Date Range / Selected Seasons)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="GOOD_FOR_START_DATE" nullable="true" remarks="The start date that the activity usage fee is valid" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="GOOD_FOR_END_DATE" nullable="true" remarks="The end date that the activity usage fee is valid" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="24" name="OVERRIDE_FEE_AMOUNT" nullable="true" remarks="The overridden fee amount for the first member" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="25" name="OVERRIDE_ALT_FEE_AMOUNT" nullable="true" remarks="The overridden fee amount for subsequent members" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="26" name="MAX_FAMILY_USAGE_FEE_AMOUNT" nullable="true" remarks="The maximum total usage fees for a family" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="EARLY_REGISTRATION_UNTIL_TYPE" nullable="true" remarks="How early registration will be determined (Before start date for season / Before start date for child season / Until date / None)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="EARLY_REGISTRATION_UNTIL_SEASON_ID" nullable="true" remarks="The season ID that the registration must be prior to be considered early registration" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="EARLY_REGISTRATION_UNTIL_SEASON" nullable="true" remarks="The season name that the registration must be prior to be considered early registration" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="EARLY_REGISTRATION_UNTIL_CHILD_SEASON_ID" nullable="true" remarks="The child season ID that the registration must be prior to be considered early registration" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHILD_SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHILD_SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="EARLY_REGISTRATION_UNTIL_CHILD_SEASON" nullable="true" remarks="The child season name that the registration must be prior to be considered early registration" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="EARLY_REGISTRATION_UNTIL_DATE" nullable="true" remarks="The date that the registration must be prior to be considered early registration" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="EARLY_REGISTRATION_DISCOUNT_CHARGE_ID" nullable="true" remarks="The charge ID for the early registration discount" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="EARLY_REGISTRATION_DISCOUNT_CHARGE_NAME" nullable="true" remarks="The charge name for the early registration discount" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="EARLY_REGISTRATION_DISCOUNT_GLACCOUNT_ID" nullable="true" remarks="The GL account ID for the early registration discount" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="EARLY_REGISTRATION_DISCOUNT_GL_ACCOUNT_NAME" nullable="true" remarks="The GL account name for the early registration discount" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="EARLY_REGISTRATION_DISCOUNT_GL_ACCOUNT_NUMBER" nullable="true" remarks="The GL account number for the early registration discount" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="38" name="EARLY_REGISTRATION_OVERRIDE_DISCOUNT_AMOUNT" nullable="true" remarks="The early registration discount amount for the first member" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="39" name="EARLY_REGISTRATION_OVERRIDE_DISCOUNT_PERCENT" nullable="true" remarks="The early registration discount amount for subsequent members" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="40" name="EARLY_REGISTRATION_OVERRIDE_ALT_DISCOUNT_AMOUNT" nullable="true" remarks="The early registration discount amount for subsequent members" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="41" name="EARLY_REGISTRATION_OVERRIDE_ALT_DISCOUNT_PERCENT" nullable="true" remarks="The early registration discount amount for subsequent members" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="42" name="WAIVED_FOR_EARLY_REGISTRATION_FEES_AMOUNT" nullable="true" remarks="The minimum early registration enrollment amount for the usage fee to be waived" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="TAXABLE_BY_TAX_1" nullable="true" remarks="Whether tax 1 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="TAXABLE_BY_TAX_2" nullable="true" remarks="Whether tax 2 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="TAXABLE_BY_TAX_3" nullable="true" remarks="Whether tax 3 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="TAXABLE_BY_TAX_4" nullable="true" remarks="Whether tax 4 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="TAXABLE_BY_TAX_5" nullable="true" remarks="Whether tax 5 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="TAXABLE_BY_TAX_6" nullable="true" remarks="Whether tax 6 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="TAXABLE_BY_TAX_7" nullable="true" remarks="Whether tax 7 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="TAXABLE_BY_TAX_8" nullable="true" remarks="Whether tax 8 applies to this fee (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="IS_RETIRED" nullable="true" remarks="Whether this fee has been retired from further use (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="52" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="USAGE_FEE_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="VOIDED_AR_TRANSACTIONS" numRows="0" remarks="VOIDED AR transaction data." schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.VOIDED_AR_TRANSACTIONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.ARTRANSACTION_ID AS AR_TRANSACTION_ID,&#13;&#10;    src.ORIGINALARTRANSACTION_ID AS ORIGINAL_TRANSACTION_ID,&#13;&#10;    src.RECEIPTHEADER_ID AS RECEIPT_HEADER_ID,&#13;&#10;    src.ARSCHEDULEHEADER_ID AS AR_SCHEDULE_HEADER_ID,&#13;&#10;    src.RECEIPTDETAIL_ID AS RECEIPT_DETAIL_ID,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME) AS CUSTOMER_NAME,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.TRANSACTIONCUSTOMER_ID AS TRANSACTION_CUSTOMER_ID,&#13;&#10;    NULLIF(CONCAT(cu2.CUSTOMER_FIRST_NAME, IIF(cu2.CUSTOMER_FIRST_NAME IS NOT NULL AND cu2.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu2.CUSTOMER_LAST_NAME), '') AS TRANSACTION_CUSTOMER_NAME,&#13;&#10;    src.TRANSACTIONCOMPANY_ID AS TRANSACTION_COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME AS TRANSACTION_COMPANY_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME AS SITE_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    src.TRANSACTIONTYPE AS TRANSACTION_TYPE_ID,&#13;&#10;    rv4.REFERENCE_VALUE AS TRANSACTION_TYPE,&#13;&#10;&#9;src.AMOUNT,&#13;&#10;&#9;src.DESCRIPTION,&#13;&#10;&#9;src.DATEDUE,&#13;&#10;&#9;src.DATESTAMP,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.ARTRANSACTION_ID AS source_id,&#13;&#10;    'Yes' AS VOIDED,&#13;&#10;    src.VOIDEDBY AS VOIDED_BY,&#13;&#10;    CONCAT(su2.USER_FIRST_NAME, IIF(su2.USER_FIRST_NAME IS NOT NULL AND su2.USER_LAST_NAME IS NOT NULL, ' ', ''), su2.USER_LAST_NAME) AS VOIDED_BY_USER_NAME,&#13;&#10;    src.VOIDEDON AS VOIDED_DATE_TIME,&#13;&#10;    CAST(src.VOIDEDON AS DATE) AS VOIDED_DATE_ONLY&#9;&#13;&#10;FROM &#13;&#10;    hub.ARTRANSACTIONS src&#13;&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON (rh1.ORG_ID = src.ORG_ID AND rh1.RECEIPT_HEADER_ID = src.RECEIPTHEADER_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu2 ON (cu2.ORG_ID = src.ORG_ID AND cu2.CUSTOMER_ID = src.TRANSACTIONCUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.ORG_ID = src.ORG_ID AND co1.COMPANY_ID = src.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su2 ON (su2.ORG_ID = src.ORG_ID AND su2.SYSTEMUSER_ID = src.VOIDEDBY)&#13;&#10;    LEFT JOIN hub.REFERENCE_VALUES rv4 ON (rv4.ORG_ID = src.ORG_ID AND rv4.REFERENCE_ID = src.TRANSACTIONTYPE AND rv4.REFERENCE_TABLE = 'ar_transaction' AND rv4.REFERENCE_COLUMN = 'ar_transaction_type')&#13;&#10;WHERE&#13;&#10;    src.VOIDED = -1;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AR_TRANSACTION_ID" nullable="false" remarks="Unique ID of the table" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORIGINAL_TRANSACTION_ID" nullable="true" remarks="The original AR transaction ID for a series of transactions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="RECEIPT_HEADER_ID" nullable="true" remarks="ID of the receipt header that the transaction belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="AR_SCHEDULE_HEADER_ID" nullable="true" remarks="The AR schedule header ID identifying the payment plan" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="RECEIPT_DETAIL_ID" nullable="true" remarks="The AR schedule detail ID identifying the payment plan charge" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMER_ID" nullable="true" remarks="ID of the customer who is the participant of the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOMER_NAME" nullable="false" remarks="Customer Name" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="COMPANY_ID" nullable="true" remarks="ID of the company who is the owner of the transaction if applicable" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="COMPANY_NAME" nullable="true" remarks="Company Name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="TRANSACTION_CUSTOMER_ID" nullable="true" remarks="The ID of the transacted customer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="TRANSACTION_CUSTOMER_NAME" nullable="true" remarks="The name of the transacted customer" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="TRANSACTION_COMPANY_ID" nullable="true" remarks="The ID of the transacted company" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="TRANSACTION_COMPANY_NAME" nullable="true" remarks="The name of the transacted company" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="SITE_ID" nullable="true" remarks="The ID of the site that the transaction occurred at" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="SITE_NAME" nullable="true" remarks="Name of the site where the transaction was done" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the user who created the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the user who created the transaction" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="TRANSACTION_TYPE_ID" nullable="true" remarks="The transaction type ID of the transaction" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="TRANSACTION_TYPE" nullable="true" remarks="The transaction type description of the transaction" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="19" name="AMOUNT" nullable="true" remarks="Total charged amount for the transaction" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="DESCRIPTION" nullable="true" remarks="The charge description of this AR transaction" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="21" name="DATEDUE" nullable="true" remarks="The date that the payment plan charge will be or was due on" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="22" name="DATESTAMP" nullable="true" remarks="The date and time that the transaction was created" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="23" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="source_id" nullable="false" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="VOIDED" nullable="false" remarks="Whether this transaction has been voided" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="VOIDED_BY" nullable="true" remarks="The ID of the system user who voided the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="VOIDED_BY_USER_NAME" nullable="false" remarks="The name of the system user who voided the transaction" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="30" name="VOIDED_DATE_TIME" nullable="true" remarks="The date and time that the transaction was voided" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="VOIDED_DATE_ONLY" nullable="true" remarks="The date that the transaction was voided (date only)" size="20" type="date" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="VOIDED_FINANCIAL_GL_TRANSACTIONS" numRows="0" remarks="DEPRECATED - REPLACED BY dbo.VOIDED_RECEIPT_GL_POSTINGS" schema="dbo" type="VIEW" viewSql="&#13;&#10;&#13;&#10;CREATE VIEW dbo.VOIDED_FINANCIAL_GL_TRANSACTIONS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.GL_LEDGER_ID,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS ACCOUNT_NUMBER,&#13;&#10;    src.AMOUNT,&#13;&#10;    rd1.CHARGE_ID,&#13;&#10;    (CASE&#13;&#10;        WHEN gl1.SYSTEM_ACCOUNT = 13 THEN 'Cash Payment Rounding'&#13;&#10;        ELSE rd1.DESCRIPTION&#13;&#10;        END) AS CHARGE_NAME,&#13;&#10;    src.TRANSACTION_SITE_ID,&#13;&#10;    si2.SITE_NAME AS TRANSACTION_SITE,&#13;&#10;    src.REVENUE_SITE_ID,&#13;&#10;    si1.SITE_NAME AS REVENUE_SITE,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.TRANSACTION_DATE_TIME,&#13;&#10;    CAST(src.TRANSACTION_DATE_TIME AS DATE) AS TRANSACTION_DATE,&#13;&#10;    FORMAT(rh1.RECEIPT_NUMBER, '0.0000') AS RECEIPT_NUMBER,&#13;&#10;    tr1.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    tr1.PACKAGE_ID,&#13;&#10;    tr1.PROGRAM_ID,&#13;&#10;    tr1.FACILITY_ID AS RESOURCE_ID,&#13;&#10;    tr1.PERMIT_ID,&#13;&#10;    pe1.PERMIT_NUMBER,&#13;&#10;    ac1.SEASON_ID,&#13;&#10;    se2.SEASON_NAME AS PARENT_SEASON,&#13;&#10;    ac1.CHILD_SEASON_ID,&#13;&#10;    cs1.CHILD_SEASON_NAME AS CHILD_SEASON,&#13;&#10;    tr1.SESSION_ID,&#13;&#10;    se1.SESSION_NAME,&#13;&#10;    tr1.POSPRODUCT_ID,&#13;&#10;    ppr.PRODUCT_NAME,&#13;&#10;    tr1.CAMPAIGN_ID,&#13;&#10;    ca1.CAMPAIGN_NAME,&#13;&#10;    ISNULL(tr1.CUSTOMER_ID, rp1.CUSTOMER_ID) AS CUSTOMER_ID,&#13;&#10;    ISNULL(cu1.CUSTOMER_FIRST_NAME, cu2.CUSTOMER_FIRST_NAME) AS CUSTOMER_FIRST_NAME,&#13;&#10;    ISNULL(cu1.CUSTOMER_LAST_NAME, cu2.CUSTOMER_LAST_NAME) AS CUSTOMER_LAST_NAME,&#13;&#10;    ISNULL(tr1.COMPANY_ID, rp1.COMPANY_ID) AS COMPANY_ID,&#13;&#10;    ISNULL(co1.COMPANY_NAME, co2.COMPANY_NAME) AS COMPANY_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    tr1.STAFF_NOTES,&#13;&#10;    rd1.CUSTOMER_SCHOLARSHIP_ID,&#13;&#10;    src.EXPENSE_ID,&#13;&#10;    'Yes' AS VOIDED,&#13;&#10;    src.VOIDED_BY,&#13;&#10;    CONCAT(su2.USER_FIRST_NAME, IIF(su2.USER_FIRST_NAME IS NOT NULL AND su2.USER_LAST_NAME IS NOT NULL, ' ', ''), su2.USER_LAST_NAME) AS VOIDED_BY_USER_NAME,&#13;&#10;    src.VOIDED_DATE_TIME,&#13;&#10;    CAST(src.VOIDED_DATE_TIME AS DATE) VOIDED_DATE_ONLY,&#13;&#10;    src.GL_LEDGER_ID AS ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.RECEIPT_GL_POSTINGS src&#13;&#10;    LEFT JOIN hub.RECEIPT_DETAILS rd1 ON (rd1.ORG_ID = src.ORG_ID AND rd1.RECEIPT_DETAIL_ID = src.RECEIPT_DETAIL_ID)&#13;&#10;    LEFT JOIN hub.TRANSACTIONS tr1 ON (tr1.ORG_ID = src.ORG_ID AND tr1.TRANSACTION_ID = src.TRANSACTION_ID)&#13;&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON (rh1.ORG_ID = src.ORG_ID AND rh1.RECEIPT_HEADER_ID = src.RECEIPT_HEADER_ID)&#13;&#10;    LEFT JOIN hub.RECEIPT_PAYMENTS rp1 ON (rp1.ORG_ID = src.ORG_ID AND rp1.RECEIPT_PAYMENT_ID = src.RECEIPT_PAYMENT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.ORG_ID = src.ORG_ID AND gl1.GLACCOUNT_ID = src.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.REVENUE_SITE_ID)&#13;&#10;    LEFT JOIN hub.SITES si2 ON (si2.ORG_ID = src.ORG_ID AND si2.SITE_ID = src.TRANSACTION_SITE_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.PERMITS pe1 ON (pe1.ORG_ID = tr1.ORG_ID AND pe1.PERMIT_ID = tr1.PERMIT_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON (ac1.ORG_ID = tr1.ORG_ID AND ac1.ACTIVITY_ID = tr1.ACTIVITY_ID)&#13;&#10;    LEFT JOIN hub.CAMPAIGNS ca1 ON (ca1.ORG_ID = tr1.ORG_ID AND ca1.CAMPAIGN_ID = tr1.CAMPAIGN_ID)&#13;&#10;    LEFT JOIN hub.POS_PRODUCTS ppr ON (ppr.ORG_ID = tr1.ORG_ID AND ppr.POSPRODUCT_ID = tr1.POSPRODUCT_ID)&#13;&#10;    LEFT JOIN hub.SESSIONS se1 ON (se1.ORG_ID = tr1.ORG_ID AND se1.SESSION_ID = tr1.SESSION_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.ORG_ID = tr1.ORG_ID AND co1.COMPANY_ID = tr1.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = tr1.ORG_ID AND cu1.CUSTOMER_ID = tr1.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co2 ON (co2.ORG_ID = rp1.ORG_ID AND co2.COMPANY_ID = rp1.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu2 ON (cu2.ORG_ID = rp1.ORG_ID AND cu2.CUSTOMER_ID = rp1.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.SEASONS se2 ON (se2.ORG_ID = ac1.ORG_ID AND se2.SEASON_ID = ac1.SEASON_ID)&#13;&#10;    LEFT JOIN hub.CHILD_SEASONS cs1 ON (cs1.ORG_ID = ac1.ORG_ID AND cs1.CHILD_SEASON_ID = ac1.CHILD_SEASON_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su2 ON (su2.ORG_ID = src.ORG_ID AND su2.SYSTEMUSER_ID = src.VOIDED_BY)&#13;&#10;WHERE&#13;&#10;    src.VOIDED = 1;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="GL_LEDGER_ID" nullable="false" remarks="GL ledger ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="GLACCOUNT_ID" nullable="true" remarks="GL account ID." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ACCOUNT_NAME" nullable="true" remarks="GL account name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACCOUNT_NUMBER" nullable="true" remarks="GL account number" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="4" name="AMOUNT" nullable="true" remarks="Total charged amount for the transaction" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CHARGE_ID" nullable="true" remarks="The ID of the related charge record" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CHARGE_NAME" nullable="true" remarks="Shows the receipt charge name" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="TRANSACTION_SITE_ID" nullable="true" remarks="ID of the transaction site" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="TRANSACTION_SITE" nullable="true" remarks="Name of the transaction site" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="REVENUE_SITE_ID" nullable="true" remarks="ID of the site where the revenue is recognized" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="REVENUE_SITE" nullable="true" remarks="Name of the site where the revenue is recognized" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="WORKSTATION_ID" nullable="true" remarks="ID of the workstation where the transaction occurred" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="WORKSTATION_NAME" nullable="true" remarks="Name of the workstation where the transaction occurred" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="TRANSACTION_DATE_TIME" nullable="true" remarks="Transaction date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="TRANSACTION_DATE" nullable="true" remarks="Transaction date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="RECEIPT_NUMBER" nullable="true" remarks="Number of the receipt for the transaction" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ACTIVITY_ID" nullable="true" remarks="If this transaction relates to an activity, then this field displays the activity ID, otherwise this is hidden." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ACTIVITY_NUMBER" nullable="true" remarks="If this transaction relates to an activity, then this field displays the activity number, otherwise this is hidden." size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="PACKAGE_ID" nullable="true" remarks="If this transaction relates to a membership package, then this field displays the package ID, otherwise this is hidden." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="PROGRAM_ID" nullable="true" remarks="If this transaction relates to a FlexReg program, then this field displays the program ID, otherwise this is hidden." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="RESOURCE_ID" nullable="true" remarks="If this transaction relates to a resource reservation, then this field displays the resource ID, otherwise this is hidden." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="PERMIT_ID" nullable="true" remarks="Permit ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="PERMIT_NUMBER" nullable="true" remarks="If this transaction relates to a resource reservation, then this field displays the permit number" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="SEASON_ID" nullable="true" remarks="If this transaction relates to an activity, then this field displays the ID of the parent season, otherwise NULL." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="PARENT_SEASON" nullable="true" remarks="If this transaction relates to an activity, then this field displays the parent season, otherwise this is hidden." size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="CHILD_SEASON_ID" nullable="true" remarks="If this transaction relates to an activity, then this field displays the ID of the child season, otherwise NULL." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="CHILD_SEASON" nullable="true" remarks="If this transaction relates to an activity, then this field displays the child season, otherwise this is hidden." size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="SESSION_ID" nullable="true" remarks="If the transaction relates to any program sessions, then this field displays ID of the session, otherwise NULL." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="SESSION_NAME" nullable="true" remarks="If the transaction relates to any program sessions, then this field displays names of the sessions, otherwise this is hidden." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="POSPRODUCT_ID" nullable="true" remarks="If this transaction relates to a POS product sale, then this field displays the product ID, otherwise NULL." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="PRODUCT_NAME" nullable="true" remarks="The name of the POS product." size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="CAMPAIGN_ID" nullable="true" remarks="Campaign ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="CAMPAIGN_NAME" nullable="true" remarks="Campaign name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="CUSTOMER_ID" nullable="true" remarks="Customer ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="CUSTOMER_FIRST_NAME" nullable="true" remarks="Customer's first name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="CUSTOMER_LAST_NAME" nullable="true" remarks="Customer's last name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="COMPANY_ID" nullable="true" remarks="Company ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="COMPANY_NAME" nullable="true" remarks="Company name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user. Details will be in the table System_Users" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the system user" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="STAFF_NOTES" nullable="true" remarks="Staff notes added at the time of transaction" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="CUSTOMER_SCHOLARSHIP_ID" nullable="true" remarks="Customer scholarship ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="EXPENSE_ID" nullable="true" remarks="The ID of the expense that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="VOIDED" nullable="false" remarks="Whether the GL posting has been voided (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="VOIDED_BY" nullable="true" remarks="The ID of the system user who voided the GL posting" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="VOIDED_BY_USER_NAME" nullable="false" remarks="The name of the system user who voided the GL posting" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="46" name="VOIDED_DATE_TIME" nullable="true" remarks="The date and time that the GL posting was voided" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="VOIDED_DATE_ONLY" nullable="true" remarks="The date that the GL posting was voided (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="49" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="VOIDED_RECEIPT_DETAIL_PAYMENTS" numRows="0" remarks="Voided receipt detail payment data .  Only includes voided records." schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.VOIDED_RECEIPT_DETAIL_PAYMENTS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.RECEIPT_DETAIL_PAYMENT_ID,&#13;&#10;    src.RECEIPT_PAYMENT_ID,&#13;&#10;    src.RECEIPT_DETAIL_ID,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.AMOUNT,&#13;&#10;    src.IS_MULTI_GL,&#13;&#10;    src.IS_EXPORTED,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID,&#13;&#10;    src.RECEIPT_DETAIL_PAYMENT_ID AS source_id &#13;&#10;FROM &#13;&#10;    hub.RECEIPT_DETAIL_PAYMENTS src&#13;&#10;&#9;INNER JOIN hub.RECEIPT_DETAILS rd ON (src.ORG_ID = rd.ORG_ID AND src.RECEIPT_DETAIL_ID = rd.RECEIPT_DETAIL_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.ORG_ID = src.ORG_ID AND gl1.GLACCOUNT_ID = src.GLACCOUNT_ID)&#13;&#10;&#9;WHERE rd.VOIDED = 1;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="RECEIPT_DETAIL_PAYMENT_ID" nullable="true" remarks="The receipt detail payment ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="RECEIPT_PAYMENT_ID" nullable="true" remarks="The ID of the receipt payment that is being applied" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="RECEIPT_DETAIL_ID" nullable="true" remarks="The ID receipt detail that the payment is applied to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="GLACCOUNT_ID" nullable="true" remarks="The ID of the GL account related to this receipt detail item (unless the receipt detail is distributed across multiple GL accounts)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GL_ACCOUNT_NAME" nullable="true" remarks="The GL account name related to this receipt detail item" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="The GL account number related to this receipt detail item" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="6" name="AMOUNT" nullable="true" remarks="The amount of the payment that is applied to this receipt detail item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="IS_MULTI_GL" nullable="true" remarks="Whether the receipt detail is distributed across multiple GL accounts (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="IS_EXPORTED" nullable="true" remarks="Whether this payment distribution has been exported via the financial export (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="source_id" nullable="true" remarks="The ID value from the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="VOIDED_RECEIPT_DETAILS" numRows="0" remarks="Voided receipt detail data. Only includes voided records." schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.VOIDED_RECEIPT_DETAILS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.RECEIPT_DETAIL_ID,&#13;&#10;    src.TRANSACTION_ID,&#13;&#10;    src.ORIGINAL_RECEIPT_DETAIL_ID,&#13;&#10;    src.ROOT_RECEIPT_DETAIL_ID,&#13;&#10;    src.ORIGINAL_TRANSACTION_ID,&#13;&#10;    src.TRANSACTION_SITE_ID,&#13;&#10;    si1.SITE_NAME AS TRANSACTION_SITE_NAME,&#13;&#10;    src.REVENUE_SITE_ID,&#13;&#10;    si2.SITE_NAME AS REVENUE_SITE_NAME,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.CHARGE_ID,&#13;&#10;    ch1.CHARGE_NAME,&#13;&#10;    src.STANDARD_CHARGE_ID,&#13;&#10;    ch2.CHARGE_NAME AS STANDARD_CHARGE_NAME,&#13;&#10;    src.DESCRIPTION,&#13;&#10;    src.IS_PRIMARY_FEE,&#13;&#10;    src.AMOUNT,&#13;&#10;    src.APPLIED_AMOUNT,&#13;&#10;    src.IS_DEPOSIT,&#13;&#10;    src.IS_DISCOUNT,&#13;&#10;    src.DISCOUNT_TYPE,&#13;&#10;    src.DISCOUNT_PERCENT,&#13;&#10;    src.UNIT_FEE_AMOUNT,&#13;&#10;    src.UNIT_OF_MEASURE,&#13;&#10;    src.QUANTITY,&#13;&#10;    src.IS_DISCOUNTABLE,&#13;&#10;    src.APPLIED_DISCOUNT_AMOUNT,&#13;&#10;    src.DEPOSIT_PAYOFF_AMOUNT,&#13;&#10;    src.POSPRODUCT_ID,&#13;&#10;    ppr.PRODUCT_NAME,&#13;&#10;    src.COUPON_ID,&#13;&#10;    src.IS_PAYMENT_PLAN_CHARGE,&#13;&#10;    src.IS_EXTRA_BOOKING_FEE,&#13;&#10;    src.OVERRIDE_INCLUDE_FLAG,&#13;&#10;    src.IS_CLAIM_CHARGE,&#13;&#10;    src.EXCLUDE_FROM_PAYMENT_PLAN,&#13;&#10;    src.APPLIES_TO_PRIMARY_FEE,&#13;&#10;    src.FACILITY_SCHEDULE_ID,&#13;&#10;    src.IS_NON_REFUNDABLE,&#13;&#10;    src.PREFUND_AMOUNT_USED,&#13;&#10;    src.CUSTOMER_SCHOLARSHIP_ID,&#13;&#10;    src.TAXABLE_BY_TAX_1,&#13;&#10;    src.TAXABLE_BY_TAX_2,&#13;&#10;    src.TAXABLE_BY_TAX_3,&#13;&#10;    src.TAXABLE_BY_TAX_4,&#13;&#10;    src.TAXABLE_BY_TAX_5,&#13;&#10;    src.TAXABLE_BY_TAX_6,&#13;&#10;    src.TAXABLE_BY_TAX_7,&#13;&#10;    src.TAXABLE_BY_TAX_8,&#13;&#10;    src.TAX_AMOUNT_1,&#13;&#10;    src.TAX_AMOUNT_2,&#13;&#10;    src.TAX_AMOUNT_3,&#13;&#10;    src.TAX_AMOUNT_4,&#13;&#10;    src.TAX_AMOUNT_5,&#13;&#10;    src.TAX_AMOUNT_6,&#13;&#10;    src.TAX_AMOUNT_7,&#13;&#10;    src.TAX_AMOUNT_8,&#13;&#10;    src.TAX_APPLIED_AMOUNT_1,&#13;&#10;    src.TAX_APPLIED_AMOUNT_2,&#13;&#10;    src.TAX_APPLIED_AMOUNT_3,&#13;&#10;    src.TAX_APPLIED_AMOUNT_4,&#13;&#10;    src.TAX_APPLIED_AMOUNT_5,&#13;&#10;    src.TAX_APPLIED_AMOUNT_6,&#13;&#10;    src.TAX_APPLIED_AMOUNT_7,&#13;&#10;    src.TAX_APPLIED_AMOUNT_8,&#13;&#10;    src.TAX_GLACCOUNT_ID_1,&#13;&#10;    src.TAX_GLACCOUNT_ID_2,&#13;&#10;    src.TAX_GLACCOUNT_ID_3,&#13;&#10;    src.TAX_GLACCOUNT_ID_4,&#13;&#10;    src.TAX_GLACCOUNT_ID_5,&#13;&#10;    src.TAX_GLACCOUNT_ID_6,&#13;&#10;    src.TAX_GLACCOUNT_ID_7,&#13;&#10;    src.TAX_GLACCOUNT_ID_8,&#13;&#10;    src.TAX_EXEMPTED_1,&#13;&#10;    src.TAX_EXEMPTED_2,&#13;&#10;    src.TAX_EXEMPTED_3,&#13;&#10;    src.TAX_EXEMPTED_4,&#13;&#10;    src.TAX_EXEMPTED_5,&#13;&#10;    src.TAX_EXEMPTED_6,&#13;&#10;    src.TAX_EXEMPTED_7,&#13;&#10;    src.TAX_EXEMPTED_8,&#13;&#10;    src.TAX_EXEMPTED_AMOUNT_1,&#13;&#10;    src.TAX_EXEMPTED_AMOUNT_2,&#13;&#10;    src.TAX_EXEMPTED_AMOUNT_3,&#13;&#10;    src.TAX_EXEMPTED_AMOUNT_4,&#13;&#10;    src.TAX_EXEMPTED_AMOUNT_5,&#13;&#10;    src.TAX_EXEMPTED_AMOUNT_6,&#13;&#10;    src.TAX_EXEMPTED_AMOUNT_7,&#13;&#10;    src.TAX_EXEMPTED_AMOUNT_8,&#13;&#10;    'Yes' AS VOIDED,&#13;&#10;    src.VOIDED_BY,&#13;&#10;    CONCAT(su2.USER_FIRST_NAME, IIF(su2.USER_FIRST_NAME IS NOT NULL AND su2.USER_LAST_NAME IS NOT NULL, ' ', ''), su2.USER_LAST_NAME) AS VOIDED_BY_USER_NAME,&#13;&#10;    src.VOIDED_DATE_TIME,&#13;&#10;    CAST(src.VOIDED_DATE_TIME AS DATE) VOIDED_DATE_ONLY,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.RECEIPT_DETAILS src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.SITE_ID = src.TRANSACTION_SITE_ID)&#13;&#10;    LEFT JOIN hub.SITES si2 ON (si2.SITE_ID = src.REVENUE_SITE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.GLACCOUNT_ID = src.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.CHARGES ch1 ON (ch1.CHARGE_ID = src.CHARGE_ID)&#13;&#10;    LEFT JOIN hub.STANDARD_CHARGES sc1 ON (sc1.STANDARD_CHARGE_ID = src.STANDARD_CHARGE_ID)&#13;&#10;    LEFT JOIN hub.CHARGES ch2 ON (ch2.CHARGE_ID = sc1.CHARGE_ID)&#13;&#10;    LEFT JOIN hub.POS_PRODUCTS ppr ON (src.POSPRODUCT_ID = ppr.POSPRODUCT_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su2 ON (su2.SYSTEMUSER_ID = src.VOIDED_BY)&#13;&#10;WHERE&#13;&#10;    src.VOIDED = 1;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="RECEIPT_DETAIL_ID" nullable="true" remarks="Receipt detail ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="TRANSACTION_ID" nullable="true" remarks="ID of the transaction that the receipt detail item belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ORIGINAL_RECEIPT_DETAIL_ID" nullable="true" remarks="The original receipt detail ID for a series of transactions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ROOT_RECEIPT_DETAIL_ID" nullable="true" remarks="The root receipt detail ID for a chain of transactions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ORIGINAL_TRANSACTION_ID" nullable="true" remarks="The original transaction ID for a series of transactions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="TRANSACTION_SITE_ID" nullable="true" remarks="ID of the site where the transaction was created" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="TRANSACTION_SITE_NAME" nullable="true" remarks="Name of the site where the transaction was created" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="REVENUE_SITE_ID" nullable="true" remarks="ID of the site for the charged item that the transaction is for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="REVENUE_SITE_NAME" nullable="true" remarks="Name of the site for the charged item that the transaction is for" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="WORKSTATION_ID" nullable="true" remarks="ID of the workstation where the transaction was created" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="WORKSTATION_NAME" nullable="true" remarks="Name of the workstation where the transaction was created" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the user who created the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the user who created the transaction" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="GLACCOUNT_ID" nullable="true" remarks="ID of the GL account related to this charge item" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="GL_ACCOUNT_NAME" nullable="true" remarks="The GL account name related to this charge item" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="The GL account number related to this charge item" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="CHARGE_ID" nullable="true" remarks="The charge ID associated with this receipt detail item" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="CHARGE_NAME" nullable="true" remarks="The name of the charge associated with this receipt detail item" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="STANDARD_CHARGE_ID" nullable="true" remarks="The facility standard charge ID associated with this receipt detail item" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="STANDARD_CHARGE_NAME" nullable="true" remarks="The name of the facility standard charge associated with this receipt detail item" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="DESCRIPTION" nullable="true" remarks="The charge description of this receipt detail item" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="IS_PRIMARY_FEE" nullable="true" remarks="Whether this charge item is a primary fee (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="22" name="AMOUNT" nullable="true" remarks="The amount of this charge item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="23" name="APPLIED_AMOUNT" nullable="true" remarks="The amount of this charge item that has a payment, refund or other charge applied against it" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="IS_DEPOSIT" nullable="true" remarks="Whether this charge item is a deposit (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="IS_DISCOUNT" nullable="true" remarks="Whether this charge item is a discount (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="DISCOUNT_TYPE" nullable="true" remarks="The type of discount applied (Amount / Percent)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="27" name="DISCOUNT_PERCENT" nullable="true" remarks="The discount percentage applied" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="28" name="UNIT_FEE_AMOUNT" nullable="true" remarks="The per unit fee amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="UNIT_OF_MEASURE" nullable="true" remarks="The default unit of measure for the charge item amount" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="30" name="QUANTITY" nullable="true" remarks="The quantity of the item charged in this receipt item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="IS_DISCOUNTABLE" nullable="true" remarks="Whether this charge item can be discounted (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="32" name="APPLIED_DISCOUNT_AMOUNT" nullable="true" remarks="The total amount of discounts that have been applied to this receipt item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="33" name="DEPOSIT_PAYOFF_AMOUNT" nullable="true" remarks="The deposit payoff amount that is associated with this receipt item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="POSPRODUCT_ID" nullable="true" remarks="The POS product ID associated with this receipt item" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="PRODUCT_NAME" nullable="true" remarks="The POS product name associated with this receipt item" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="COUPON_ID" nullable="true" remarks="The coupon ID associated with this receipt item" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="IS_PAYMENT_PLAN_CHARGE" nullable="true" remarks="Whether this charge item is a payment plan charge (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="IS_EXTRA_BOOKING_FEE" nullable="true" remarks="Whether this charge item is an extra booking fee (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="OVERRIDE_INCLUDE_FLAG" nullable="true" remarks="Whether the include flag was overridden for this charge item (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="IS_CLAIM_CHARGE" nullable="true" remarks="Whether this charge item is a claim charge fee (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="EXCLUDE_FROM_PAYMENT_PLAN" nullable="true" remarks="Whether this receipt item should be excluded from any payment plan (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="APPLIES_TO_PRIMARY_FEE" nullable="true" remarks="Whether this fee or discount applied to the primary fee (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="FACILITY_SCHEDULE_ID" nullable="true" remarks="The facility schedule ID for the reservation associated with this receipt item" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="IS_NON_REFUNDABLE" nullable="true" remarks="Whether this charge item is non-refundable (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="45" name="PREFUND_AMOUNT_USED" nullable="true" remarks="The prefund amount used for this receipt item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="CUSTOMER_SCHOLARSHIP_ID" nullable="true" remarks="Customer scholarship ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="TAXABLE_BY_TAX_1" nullable="true" remarks="Whether tax 1 applies to this charge (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="TAXABLE_BY_TAX_2" nullable="true" remarks="Whether tax 2 applies to this charge (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="TAXABLE_BY_TAX_3" nullable="true" remarks="Whether tax 3 applies to this charge (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="TAXABLE_BY_TAX_4" nullable="true" remarks="Whether tax 4 applies to this charge (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="TAXABLE_BY_TAX_5" nullable="true" remarks="Whether tax 5 applies to this charge (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="TAXABLE_BY_TAX_6" nullable="true" remarks="Whether tax 6 applies to this charge (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="TAXABLE_BY_TAX_7" nullable="true" remarks="Whether tax 7 applies to this charge (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="TAXABLE_BY_TAX_8" nullable="true" remarks="Whether tax 8 applies to this charge (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="55" name="TAX_AMOUNT_1" nullable="true" remarks="The amount for tax 1 added to this charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="56" name="TAX_AMOUNT_2" nullable="true" remarks="The amount for tax 2 added to this charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="57" name="TAX_AMOUNT_3" nullable="true" remarks="The amount for tax 3 added to this charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="58" name="TAX_AMOUNT_4" nullable="true" remarks="The amount for tax 4 added to this charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="59" name="TAX_AMOUNT_5" nullable="true" remarks="The amount for tax 5 added to this charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="60" name="TAX_AMOUNT_6" nullable="true" remarks="The amount for tax 6 added to this charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="61" name="TAX_AMOUNT_7" nullable="true" remarks="The amount for tax 7 added to this charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="62" name="TAX_AMOUNT_8" nullable="true" remarks="The amount for tax 8 added to this charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="63" name="TAX_APPLIED_AMOUNT_1" nullable="true" remarks="The amount of tax 1 that has a payment, refund or other charge applied against it" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="64" name="TAX_APPLIED_AMOUNT_2" nullable="true" remarks="The amount of tax 2 that has a payment, refund or other charge applied against it" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="65" name="TAX_APPLIED_AMOUNT_3" nullable="true" remarks="The amount of tax 3 that has a payment, refund or other charge applied against it" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="66" name="TAX_APPLIED_AMOUNT_4" nullable="true" remarks="The amount of tax 4 that has a payment, refund or other charge applied against it" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="67" name="TAX_APPLIED_AMOUNT_5" nullable="true" remarks="The amount of tax 5 that has a payment, refund or other charge applied against it" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="68" name="TAX_APPLIED_AMOUNT_6" nullable="true" remarks="The amount of tax 6 that has a payment, refund or other charge applied against it" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="69" name="TAX_APPLIED_AMOUNT_7" nullable="true" remarks="The amount of tax 7 that has a payment, refund or other charge applied against it" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="70" name="TAX_APPLIED_AMOUNT_8" nullable="true" remarks="The amount of tax 8 that has a payment, refund or other charge applied against it" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="71" name="TAX_GLACCOUNT_ID_1" nullable="true" remarks="The GL account ID that was posted to for tax 1" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="72" name="TAX_GLACCOUNT_ID_2" nullable="true" remarks="The GL account ID that was posted to for tax 2" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="73" name="TAX_GLACCOUNT_ID_3" nullable="true" remarks="The GL account ID that was posted to for tax 3" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="74" name="TAX_GLACCOUNT_ID_4" nullable="true" remarks="The GL account ID that was posted to for tax 4" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="75" name="TAX_GLACCOUNT_ID_5" nullable="true" remarks="The GL account ID that was posted to for tax 5" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="76" name="TAX_GLACCOUNT_ID_6" nullable="true" remarks="The GL account ID that was posted to for tax 6" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="77" name="TAX_GLACCOUNT_ID_7" nullable="true" remarks="The GL account ID that was posted to for tax 7" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="78" name="TAX_GLACCOUNT_ID_8" nullable="true" remarks="The GL account ID that was posted to for tax 8" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="79" name="TAX_EXEMPTED_1" nullable="true" remarks="Whether the customer was tax exempt for tax 1 (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="80" name="TAX_EXEMPTED_2" nullable="true" remarks="Whether the customer was tax exempt for tax 2 (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="81" name="TAX_EXEMPTED_3" nullable="true" remarks="Whether the customer was tax exempt for tax 3 (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="82" name="TAX_EXEMPTED_4" nullable="true" remarks="Whether the customer was tax exempt for tax 4 (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="83" name="TAX_EXEMPTED_5" nullable="true" remarks="Whether the customer was tax exempt for tax 5 (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="84" name="TAX_EXEMPTED_6" nullable="true" remarks="Whether the customer was tax exempt for tax 6 (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="85" name="TAX_EXEMPTED_7" nullable="true" remarks="Whether the customer was tax exempt for tax 7 (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="86" name="TAX_EXEMPTED_8" nullable="true" remarks="Whether the customer was tax exempt for tax 8 (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="87" name="TAX_EXEMPTED_AMOUNT_1" nullable="true" remarks="The amount of tax that was exempted for tax 1" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="88" name="TAX_EXEMPTED_AMOUNT_2" nullable="true" remarks="The amount of tax that was exempted for tax 2" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="89" name="TAX_EXEMPTED_AMOUNT_3" nullable="true" remarks="The amount of tax that was exempted for tax 3" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="90" name="TAX_EXEMPTED_AMOUNT_4" nullable="true" remarks="The amount of tax that was exempted for tax 4" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="91" name="TAX_EXEMPTED_AMOUNT_5" nullable="true" remarks="The amount of tax that was exempted for tax 5" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="92" name="TAX_EXEMPTED_AMOUNT_6" nullable="true" remarks="The amount of tax that was exempted for tax 6" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="93" name="TAX_EXEMPTED_AMOUNT_7" nullable="true" remarks="The amount of tax that was exempted for tax 7" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="94" name="TAX_EXEMPTED_AMOUNT_8" nullable="true" remarks="The amount of tax that was exempted for tax 8" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="95" name="VOIDED" nullable="false" remarks="Whether the receipt detail has been voided (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="96" name="VOIDED_BY" nullable="true" remarks="The ID of the system user who voided the receipt detail" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="97" name="VOIDED_BY_USER_NAME" nullable="false" remarks="The name of the system user who voided the receipt detail" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="98" name="VOIDED_DATE_TIME" nullable="true" remarks="The date and time that the receipt detail was voided" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="99" name="VOIDED_DATE_ONLY" nullable="true" remarks="The date that the receipt detail was voided (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="100" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="101" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="102" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="103" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="VOIDED_RECEIPT_GL_POSTINGS" numRows="0" remarks="Voided transactions in the GL ledger, where positive amounts are debits and negative amounts are credits. Only includes voided records." schema="dbo" type="VIEW" viewSql="&#13;&#10;&#13;&#10;CREATE VIEW dbo.VOIDED_RECEIPT_GL_POSTINGS&#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.GL_LEDGER_ID,&#13;&#10;    src.RECEIPT_DETAIL_ID,&#13;&#10;    src.TRANSACTION_ID,&#13;&#10;    src.RECEIPT_PAYMENT_ID,&#13;&#10;    src.GLACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS GL_ACCOUNT_NUMBER,&#13;&#10;    src.AMOUNT,&#13;&#10;    rd1.CHARGE_ID,&#13;&#10;    (CASE&#13;&#10;        WHEN gl1.SYSTEM_ACCOUNT = 13 THEN 'Cash Payment Rounding'&#13;&#10;        ELSE rd1.DESCRIPTION&#13;&#10;        END) AS CHARGE_NAME,&#13;&#10;    src.TRANSACTION_SITE_ID,&#13;&#10;    si2.SITE_NAME AS TRANSACTION_SITE_NAME,&#13;&#10;    src.REVENUE_SITE_ID,&#13;&#10;    si1.SITE_NAME AS REVENUE_SITE_NAME,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.TRANSACTION_DATE_TIME,&#13;&#10;    CAST(src.TRANSACTION_DATE_TIME AS DATE) AS TRANSACTION_DATE_ONLY,&#13;&#10;    src.RECEIPT_HEADER_ID,&#13;&#10;    FORMAT(rh1.RECEIPT_NUMBER, '0.0000') AS RECEIPT_NUMBER,&#13;&#10;    tr1.ACTIVITY_ID,&#13;&#10;    ac1.ACTIVITYNAME AS ACTIVITY_NAME,&#13;&#10;    ac1.ACTIVITYNUMBER AS ACTIVITY_NUMBER,&#13;&#10;    ac1.SEASON_ID,&#13;&#10;    se2.SEASON_NAME,&#13;&#10;    ac1.CHILD_SEASON_ID,&#13;&#10;    cs1.CHILD_SEASON_NAME,&#13;&#10;    tr1.PROGRAM_ID,&#13;&#10;    pr1.PROGRAM_NAME,&#13;&#10;    tr1.SESSION_ID,&#13;&#10;    se1.SESSION_NAME,&#13;&#10;    tr1.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    tr1.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    tr1.PERMIT_ID,&#13;&#10;    pe1.PERMIT_NUMBER,&#13;&#10;    tr1.POSPRODUCT_ID,&#13;&#10;    ppr.PRODUCT_NAME,&#13;&#10;    tr1.CAMPAIGN_ID,&#13;&#10;    ca1.CAMPAIGN_NAME,&#13;&#10;    ISNULL(tr1.CUSTOMER_ID, rp1.CUSTOMER_ID) AS CUSTOMER_ID,&#13;&#10;    ISNULL(cu1.CUSTOMER_FIRST_NAME, cu2.CUSTOMER_FIRST_NAME) AS CUSTOMER_FIRST_NAME,&#13;&#10;    ISNULL(cu1.CUSTOMER_LAST_NAME, cu2.CUSTOMER_LAST_NAME) AS CUSTOMER_LAST_NAME,&#13;&#10;    ISNULL(tr1.COMPANY_ID, rp1.COMPANY_ID) AS COMPANY_ID,&#13;&#10;    ISNULL(co1.COMPANY_NAME, co2.COMPANY_NAME) AS COMPANY_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    tr1.STAFF_NOTES,&#13;&#10;    rd1.CUSTOMER_SCHOLARSHIP_ID,&#13;&#10;    src.EXPENSE_ID,&#13;&#10;    'Yes' AS VOIDED,&#13;&#10;    src.VOIDED_BY,&#13;&#10;    CONCAT(su2.USER_FIRST_NAME, IIF(su2.USER_FIRST_NAME IS NOT NULL AND su2.USER_LAST_NAME IS NOT NULL, ' ', ''), su2.USER_LAST_NAME) AS VOIDED_BY_USER_NAME,&#13;&#10;    src.VOIDED_DATE_TIME,&#13;&#10;    CAST(src.VOIDED_DATE_TIME AS DATE) VOIDED_DATE_ONLY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.RECEIPT_GL_POSTINGS src&#13;&#10;    LEFT JOIN hub.RECEIPT_DETAILS rd1 ON (rd1.ORG_ID = src.ORG_ID AND rd1.RECEIPT_DETAIL_ID = src.RECEIPT_DETAIL_ID)&#13;&#10;    LEFT JOIN hub.TRANSACTIONS tr1 ON (tr1.ORG_ID = src.ORG_ID AND tr1.TRANSACTION_ID = src.TRANSACTION_ID)&#13;&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON (rh1.ORG_ID = src.ORG_ID AND rh1.RECEIPT_HEADER_ID = src.RECEIPT_HEADER_ID)&#13;&#10;    LEFT JOIN hub.RECEIPT_PAYMENTS rp1 ON (rp1.ORG_ID = src.ORG_ID AND rp1.RECEIPT_PAYMENT_ID = src.RECEIPT_PAYMENT_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.ORG_ID = src.ORG_ID AND gl1.GLACCOUNT_ID = src.GLACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.REVENUE_SITE_ID)&#13;&#10;    LEFT JOIN hub.SITES si2 ON (si2.ORG_ID = src.ORG_ID AND si2.SITE_ID = src.TRANSACTION_SITE_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.PERMITS pe1 ON (pe1.ORG_ID = tr1.ORG_ID AND pe1.PERMIT_ID = tr1.PERMIT_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON (ac1.ORG_ID = tr1.ORG_ID AND ac1.ACTIVITY_ID = tr1.ACTIVITY_ID)&#13;&#10;    LEFT JOIN hub.PROGRAMS pr1 ON (pr1.ORG_ID = tr1.ORG_ID AND pr1.PROGRAM_ID = tr1.PROGRAM_ID)&#13;&#10;    LEFT JOIN hub.SESSIONS se1 ON (se1.ORG_ID = tr1.ORG_ID AND se1.SESSION_ID = tr1.SESSION_ID)&#13;&#10;    LEFT JOIN hub.PACKAGES pa1 ON (pa1.ORG_ID = tr1.ORG_ID AND pa1.PACKAGE_ID = tr1.PACKAGE_ID)&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON (fa1.ORG_ID = tr1.ORG_ID AND fa1.FACILITY_ID = tr1.FACILITY_ID)&#13;&#10;    LEFT JOIN hub.CAMPAIGNS ca1 ON (ca1.ORG_ID = tr1.ORG_ID AND ca1.CAMPAIGN_ID = tr1.CAMPAIGN_ID)&#13;&#10;    LEFT JOIN hub.POS_PRODUCTS ppr ON (ppr.ORG_ID = tr1.ORG_ID AND ppr.POSPRODUCT_ID = tr1.POSPRODUCT_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.ORG_ID = tr1.ORG_ID AND co1.COMPANY_ID = tr1.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = tr1.ORG_ID AND cu1.CUSTOMER_ID = tr1.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co2 ON (co2.ORG_ID = rp1.ORG_ID AND co2.COMPANY_ID = rp1.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu2 ON (cu2.ORG_ID = rp1.ORG_ID AND cu2.CUSTOMER_ID = rp1.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.SEASONS se2 ON (se2.ORG_ID = ac1.ORG_ID AND se2.SEASON_ID = ac1.SEASON_ID)&#13;&#10;    LEFT JOIN hub.CHILD_SEASONS cs1 ON (cs1.ORG_ID = ac1.ORG_ID AND cs1.CHILD_SEASON_ID = ac1.CHILD_SEASON_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su2 ON (su2.ORG_ID = src.ORG_ID AND su2.SYSTEMUSER_ID = src.VOIDED_BY)&#13;&#10;WHERE&#13;&#10;    src.VOIDED = 1;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="GL_LEDGER_ID" nullable="false" remarks="GL ledger ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="RECEIPT_DETAIL_ID" nullable="true" remarks="The receipt detail ID that the GL posting is related to. May be null for postings related to cash payment rounding" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="TRANSACTION_ID" nullable="true" remarks="The transaction ID that the GL posting is related to. May be null for postings related to cash payment rounding" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="RECEIPT_PAYMENT_ID" nullable="true" remarks="The receipt payment ID that the GL posting is related to, if the postings is for cash payment rounding" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GLACCOUNT_ID" nullable="true" remarks="GL account ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="GL_ACCOUNT_NAME" nullable="true" remarks="GL account name" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="7" name="AMOUNT" nullable="true" remarks="Total amount posted to the GL, where positive amounts are debits and negative amounts are credits" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CHARGE_ID" nullable="true" remarks="ID of the related charge record" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CHARGE_NAME" nullable="true" remarks="The receipt charge name" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="TRANSACTION_SITE_ID" nullable="true" remarks="ID of the transaction site" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="TRANSACTION_SITE_NAME" nullable="true" remarks="Name of the transaction site" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="REVENUE_SITE_ID" nullable="true" remarks="ID of the site where the revenue is recognized" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="REVENUE_SITE_NAME" nullable="true" remarks="Name of the site where the revenue is recognized" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="WORKSTATION_ID" nullable="true" remarks="ID of the workstation where the transaction occurred" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="WORKSTATION_NAME" nullable="true" remarks="Name of the workstation where the transaction occurred" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="TRANSACTION_DATE_TIME" nullable="true" remarks="Transaction date and time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="TRANSACTION_DATE_ONLY" nullable="true" remarks="Transaction date (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="RECEIPT_HEADER_ID" nullable="true" remarks="ID of the receipt header" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="RECEIPT_NUMBER" nullable="true" remarks="Number of the receipt" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ACTIVITY_ID" nullable="true" remarks="ID of the activity that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ACTIVITY_NAME" nullable="true" remarks="Name of the activity that this posting is related to" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="ACTIVITY_NUMBER" nullable="true" remarks="Number of the activity that this posting is related to" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="SEASON_ID" nullable="true" remarks="ID of the parent activity season that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="SEASON_NAME" nullable="true" remarks="Name of the parent activity season that this posting is related to" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="CHILD_SEASON_ID" nullable="true" remarks="ID of the child activity season that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="CHILD_SEASON_NAME" nullable="true" remarks="Name of the child activity season that this posting is related to" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="PROGRAM_ID" nullable="true" remarks="ID of the program that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="PROGRAM_NAME" nullable="true" remarks="Name of the program that this posting is related to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="SESSION_ID" nullable="true" remarks="ID of the program session that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="SESSION_NAME" nullable="true" remarks="Name of the program session that this posting is related to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="PACKAGE_ID" nullable="true" remarks="ID of the package that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="PACKAGE_NAME" nullable="true" remarks="Name of the package that this posting is related to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="FACILITY_ID" nullable="true" remarks="ID of the facility or resource that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="FACILITY_NAME" nullable="true" remarks="Name of the facility or resource that this posting is related to" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="PERMIT_ID" nullable="true" remarks="ID of the permit that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="PERMIT_NUMBER" nullable="true" remarks="Number of the permit that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="POSPRODUCT_ID" nullable="true" remarks="ID of the POS product that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="PRODUCT_NAME" nullable="true" remarks="Name of the POS product that this posting is related to" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="CAMPAIGN_ID" nullable="true" remarks="ID of the fundraising campaign that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="CAMPAIGN_NAME" nullable="true" remarks="Name of the fundraising campaign that this posting is related to" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="CUSTOMER_ID" nullable="true" remarks="Customer ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="CUSTOMER_FIRST_NAME" nullable="true" remarks="Customer's first name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="CUSTOMER_LAST_NAME" nullable="true" remarks="Customer's last name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="COMPANY_ID" nullable="true" remarks="Company ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="COMPANY_NAME" nullable="true" remarks="Company name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the system user who created the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the system user who created the transaction" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="STAFF_NOTES" nullable="true" remarks="Staff notes added at the time of transaction" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="CUSTOMER_SCHOLARSHIP_ID" nullable="true" remarks="Customer scholarship ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="EXPENSE_ID" nullable="true" remarks="The ID of the expense that this posting is related to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="VOIDED" nullable="false" remarks="Whether the GL posting has been voided (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="VOIDED_BY" nullable="true" remarks="The ID of the system user who voided the GL posting" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="VOIDED_BY_USER_NAME" nullable="false" remarks="The name of the system user who voided the GL posting" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="54" name="VOIDED_DATE_TIME" nullable="true" remarks="The date and time that the GL posting was voided" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="VOIDED_DATE_ONLY" nullable="true" remarks="The date that the GL posting was voided (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="56" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="VOIDED_RECEIPT_HEADERS" numRows="0" remarks="Voided receipt header records for transactions and payments. Only includes voided records." schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.VOIDED_RECEIPT_HEADERS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.RECEIPT_HEADER_ID,&#13;&#10;    src.RECEIPT_TYPE,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    FORMAT(src.RECEIPT_NUMBER, '0.0000') AS RECEIPT_NUMBER,&#13;&#10;    src.RECEIPT_DATE_TIME,&#13;&#10;    src.RECEIPT_NOTES,&#13;&#10;    src.PRINTED,&#13;&#10;    src.TOTAL_FEE_AMOUNT,&#13;&#10;    src.PREFUND_AMOUNT_USED,&#13;&#10;    src.CREDIT_CARD_AMOUNT,&#13;&#10;    src.IS_ONLINE_RECEIPT,&#13;&#10;    src.ONLINE_CUSTOMER_ID,&#13;&#10;    CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME) AS ONLINE_CUSTOMER_NAME,&#13;&#10;    src.ONLINE_WAIVER_INITIALS,&#13;&#10;    IIF(src.IS_ABANDONED = 0, 'No', 'Yes') AS IS_ABANDONED,&#13;&#10;    'Yes' AS VOIDED,&#13;&#10;    src.VOIDED_BY,&#13;&#10;    CONCAT(su2.USER_FIRST_NAME, IIF(su2.USER_FIRST_NAME IS NOT NULL AND su2.USER_LAST_NAME IS NOT NULL, ' ', ''), su2.USER_LAST_NAME) AS VOIDED_BY_USER_NAME,&#13;&#10;    src.VOIDED_DATE_TIME,&#13;&#10;    CAST(src.VOIDED_DATE_TIME AS DATE) VOIDED_DATE_ONLY,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.RECEIPT_HEADERS src&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = src.ONLINE_CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su2 ON (su2.ORG_ID = src.ORG_ID AND su2.SYSTEMUSER_ID = src.VOIDED_BY)&#13;&#10;WHERE&#13;&#10;    src.VOIDED = 1;&#13;&#10;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="RECEIPT_HEADER_ID" nullable="true" remarks="Receipt header ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="RECEIPT_TYPE" nullable="true" remarks="Type of receipt (Receipt / Refund Voucher / Non-Monetary Receipt / Permit Charges Summary / Contract Charges Summary)" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_ID" nullable="true" remarks="ID of the workstation where the receipt was created" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_NAME" nullable="true" remarks="Name of the workstation where the receipt was created" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="WORKSTATION_ID" nullable="true" remarks="ID of the workstation where the receipt was created" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="WORKSTATION_NAME" nullable="true" remarks="Name of the workstation where the receipt was created" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the system user who created the receipt" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the system user who created the receipt" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="RECEIPT_NUMBER" nullable="true" remarks="Receipt number" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="RECEIPT_DATE_TIME" nullable="true" remarks="Date and time that the receipt was created" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="RECEIPT_NOTES" nullable="true" remarks="Receipt notes entered by the user" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="PRINTED" nullable="true" remarks="Whether the receipt has been printed (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="12" name="TOTAL_FEE_AMOUNT" nullable="true" remarks="Total fee amount for this receipt" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="13" name="PREFUND_AMOUNT_USED" nullable="true" remarks="Total prefund amount used on this receipt" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="14" name="CREDIT_CARD_AMOUNT" nullable="true" remarks="Total credit card amount charged or refunded for this receipt" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="IS_ONLINE_RECEIPT" nullable="true" remarks="Whether the receipt was created online (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ONLINE_CUSTOMER_ID" nullable="true" remarks="The ID of the customer who created the online receipt" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ONLINE_CUSTOMER_NAME" nullable="false" remarks="The name of the customer who created the online receipt" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ONLINE_WAIVER_INITIALS" nullable="true" remarks="Waiver initials that were entered online for this receipt" size="4" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="IS_ABANDONED" nullable="false" remarks="Whether the receipt header has been abandoned (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="VOIDED" nullable="false" remarks="Whether the receipt header has been voided (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="VOIDED_BY" nullable="true" remarks="The ID of the system user who voided the receipt header" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="VOIDED_BY_USER_NAME" nullable="false" remarks="The name of the system user who voided the receipt header" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="23" name="VOIDED_DATE_TIME" nullable="true" remarks="The date and time that the receipt header was voided" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="VOIDED_DATE_ONLY" nullable="true" remarks="The date that the receipt header was voided (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="26" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="VOIDED_RECEIPT_PAYMENTS" numRows="0" remarks="Voided receipt payment data. Only includes voided records." schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.VOIDED_RECEIPT_PAYMENTS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.RECEIPT_PAYMENT_ID,&#13;&#10;    src.RECEIPT_HEADER_ID,&#13;&#10;    FORMAT(rh1.RECEIPT_NUMBER, '0.0000') AS RECEIPT_NUMBER,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    src.CASH_SUMMARY_SHEET_ID,&#13;&#10;    src.CREATION_DATE_TIME,&#13;&#10;    CAST(src.CREATION_DATE_TIME AS DATE) AS CREATION_DATE_ONLY,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME) AS CUSTOMER_NAME,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.COMPANY_AUTHORIZED_AGENT_ID,&#13;&#10;    NULLIF(CONCAT(cu2.CUSTOMER_FIRST_NAME, IIF(cu2.CUSTOMER_FIRST_NAME IS NOT NULL AND cu2.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu2.CUSTOMER_LAST_NAME), '') AS COMPANY_AUTHORIZED_AGENT_NAME,&#13;&#10;    src.PAYMENT_AMOUNT,&#13;&#10;    src.PAYMENT_TYPE,&#13;&#10;    src.CARD_TYPE_ID,&#13;&#10;    ct1.CARD_TYPE_NAME AS CARD_TYPE,&#13;&#10;    src.CARD_NUMBER,&#13;&#10;    src.CARD_EXPIRATION,&#13;&#10;    src.SAVED_CREDIT_CARD_ID,&#13;&#10;    src.DEVICE_INPUT_TYPE,&#13;&#10;    src.BANK_ROUTING_NUMBER,&#13;&#10;    src.BANK_ACCOUNT_TYPE,&#13;&#10;    src.BANK_ACCOUNT_NUMBER,&#13;&#10;    src.ECP_STATUS,&#13;&#10;    src.AUTHORIZATION_NUMBER,&#13;&#10;    src.CLIENT_TRANSACTION_ID,&#13;&#10;    IIF(src.MANUAL_AUTHORIZATION_USER_ID IS NULL, 'No', 'Yes') AS IS_MANUAL_AUTHORIZATION,&#13;&#10;    src.MANUAL_AUTHORIZATION_USER_ID,&#13;&#10;    CONCAT(su2.USER_FIRST_NAME, IIF(su2.USER_FIRST_NAME IS NOT NULL AND su2.USER_LAST_NAME IS NOT NULL, ' ', ''), su2.USER_LAST_NAME) AS MANUAL_AUTHORIZATION_USER_NAME,&#13;&#10;    src.CASH_CHANGE_AMOUNT,&#13;&#10;    src.CUSTOM_PAYMENT_TYPE_ID,&#13;&#10;    cpt.CUSTOM_PAYMENT_TYPE_NAME,&#13;&#10;    src.CHECK_NUMBER,&#13;&#10;    src.GIFT_CARD_ID,&#13;&#10;    src.PAYMENT_CANCELLED,&#13;&#10;    src.CANCELLATION_REASON,&#13;&#10;    src.REVERSED_RECEIPT_PAYMENT_ID,&#13;&#10;    src.REPLACED_RECEIPT_PAYMENT_ID,&#13;&#10;    src.RECEIPT_DETAIL_ID,&#13;&#10;    src.PAYMENT_GL_ACCOUNT_ID,&#13;&#10;    gl1.ACCOUNTNAME AS PAYMENT_GL_ACCOUNT_NAME,&#13;&#10;    gl1.ACCOUNTNUMBER AS PAYMENT_GL_ACCOUNT_NUMBER,&#13;&#10;    'Yes' AS VOIDED,&#13;&#10;    src.VOIDED_BY,&#13;&#10;    CONCAT(su3.USER_FIRST_NAME, IIF(su3.USER_FIRST_NAME IS NOT NULL AND su3.USER_LAST_NAME IS NOT NULL, ' ', ''), su3.USER_LAST_NAME) AS VOIDED_BY_USER_NAME,&#13;&#10;    src.VOIDED_DATE_TIME,&#13;&#10;    CAST(src.VOIDED_DATE_TIME AS DATE) VOIDED_DATE_ONLY,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.RECEIPT_PAYMENTS src&#13;&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON (rh1.ORG_ID = src.ORG_ID AND rh1.RECEIPT_HEADER_ID = src.RECEIPT_HEADER_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.SITE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.ORG_ID = src.ORG_ID AND co1.COMPANY_ID = src.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.GLACCOUNTS gl1 ON (gl1.ORG_ID = src.ORG_ID AND gl1.GLACCOUNT_ID = src.PAYMENT_GL_ACCOUNT_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su2 ON (su2.ORG_ID = src.ORG_ID AND su2.SYSTEMUSER_ID = src.MANUAL_AUTHORIZATION_USER_ID)&#13;&#10;    LEFT JOIN hub.COMPANY_AUTHORIZED_AGENTS caa ON (caa.ORG_ID = src.ORG_ID AND caa.COMPANY_AUTHORIZED_AGENT_ID = src.COMPANY_AUTHORIZED_AGENT_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu2 ON (cu2.ORG_ID = src.ORG_ID AND cu2.CUSTOMER_ID = caa.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.CARD_TYPES ct1 ON (ct1.ORG_ID = src.ORG_ID AND ct1.CARD_TYPE_ID = src.CARD_TYPE_ID)&#13;&#10;    LEFT JOIN hub.CUSTOM_PAYMENT_TYPES cpt ON (cpt.ORG_ID = src.ORG_ID AND cpt.CUSTOM_PAYMENT_TYPE_ID = src.CUSTOM_PAYMENT_TYPE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su3 ON (su3.ORG_ID = src.ORG_ID AND su3.SYSTEMUSER_ID = src.VOIDED_BY)&#13;&#10;WHERE&#13;&#10;    src.VOIDED = 1;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="RECEIPT_PAYMENT_ID" nullable="true" remarks="Receipt payment ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="RECEIPT_HEADER_ID" nullable="true" remarks="ID of the receipt header that the payment belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="RECEIPT_NUMBER" nullable="true" remarks="The receipt number that the payment belongs to" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_ID" nullable="true" remarks="ID of the site where the payment was created" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SITE_NAME" nullable="true" remarks="Name of the site where the payment was created" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="WORKSTATION_ID" nullable="true" remarks="ID of the workstation where the payment was created" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="WORKSTATION_NAME" nullable="true" remarks="Name of the workstation where the payment was created" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the user who created the payment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the user who created the payment" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CASH_SUMMARY_SHEET_ID" nullable="true" remarks="ID of the cash summary sheet that was active on the workstation when the payment was created" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="CREATION_DATE_TIME" nullable="true" remarks="Date and time that the payment was created" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="CREATION_DATE_ONLY" nullable="true" remarks="Date that the payment was created (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CUSTOMER_ID" nullable="true" remarks="ID of the customer who made the payment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="CUSTOMER_NAME" nullable="false" remarks="Name of the customer who made the payment" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="COMPANY_ID" nullable="true" remarks="ID of the company who made the payment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="COMPANY_NAME" nullable="true" remarks="Name of the company who made the payment" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="COMPANY_AUTHORIZED_AGENT_ID" nullable="true" remarks="The ID of the company authorized agent who made the payment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="COMPANY_AUTHORIZED_AGENT_NAME" nullable="true" remarks="The name of the company authorized agent who made the payment" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="18" name="PAYMENT_AMOUNT" nullable="true" remarks="The amount of the payment processed or of the payment plan created" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="PAYMENT_TYPE" nullable="true" remarks="The type of payment (Cash / Cash Refund / Check / Check Refund / Credit Card / Credit Card Refund / Credit Memo / Debit Card / Debit Card Refund / ECP / ECP Refund / Financial Aid / Financial Aid Payment Plan / Gift Certificate / Gift Certificate Refund / Journal Entry / Manual Deduction / No Payment / Non-Monetary / Payment From Account / Payment Plan / Refund To Account)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="CARD_TYPE_ID" nullable="true" remarks="ID of the credit card type" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="CARD_TYPE" nullable="true" remarks="Name of the credit card type" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="CARD_NUMBER" nullable="true" remarks="Masked card number" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="CARD_EXPIRATION" nullable="true" remarks="Credit card expiration date (mm/yyyy)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="SAVED_CREDIT_CARD_ID" nullable="true" remarks="ID of the saved credit card used for the payment or refund" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="DEVICE_INPUT_TYPE" nullable="true" remarks="Type of card swiped or tapped on a physical device (Credit Card / Debit Card)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="BANK_ROUTING_NUMBER" nullable="true" remarks="Bank routing number for electronic check processing" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="BANK_ACCOUNT_TYPE" nullable="true" remarks="Bank account type for electronic check processing" size="4" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="BANK_ACCOUNT_NUMBER" nullable="true" remarks="Bank account number for electronic check processing" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="ECP_STATUS" nullable="true" remarks="The current electronic check processing status of the payment" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="AUTHORIZATION_NUMBER" nullable="true" remarks="The authorization number received for the payment" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="CLIENT_TRANSACTION_ID" nullable="true" remarks="The client transaction ID generated by the payment authorization process" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="IS_MANUAL_AUTHORIZATION" nullable="false" remarks="Whether the payment was manually authorized (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="MANUAL_AUTHORIZATION_USER_ID" nullable="true" remarks="The ID of the user who manually authorized the payment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="MANUAL_AUTHORIZATION_USER_NAME" nullable="false" remarks="The name of the user who manually authorized the payment" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="35" name="CASH_CHANGE_AMOUNT" nullable="true" remarks="The amount of change given for the payment" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="CUSTOM_PAYMENT_TYPE_ID" nullable="true" remarks="The ID of the custom payment type selected for the payment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="CUSTOM_PAYMENT_TYPE_NAME" nullable="true" remarks="The name of the custom payment type selected for the payment" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="CHECK_NUMBER" nullable="true" remarks="Check number entered" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="GIFT_CARD_ID" nullable="true" remarks="ID of the gift card for the payment or refund" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="PAYMENT_CANCELLED" nullable="true" remarks="Whether the payment has been cancelled (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="CANCELLATION_REASON" nullable="true" remarks="The reason for the payment cancellation" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="REVERSED_RECEIPT_PAYMENT_ID" nullable="true" remarks="ID of the receipt payment that is a reversal of this payment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="REPLACED_RECEIPT_PAYMENT_ID" nullable="true" remarks="ID of the receipt payment that this payment replaces" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="RECEIPT_DETAIL_ID" nullable="true" remarks="ID of an associated receipt detail record if applicable" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="PAYMENT_GL_ACCOUNT_ID" nullable="true" remarks="ID of the GL account posted to, for specific payment types" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="PAYMENT_GL_ACCOUNT_NAME" nullable="true" remarks="Name of the GL account posted to, for specific payment types" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="PAYMENT_GL_ACCOUNT_NUMBER" nullable="true" remarks="GL account number posted to, for specific payment types" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="VOIDED" nullable="false" remarks="Whether the receipt header has been voided (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="VOIDED_BY" nullable="true" remarks="The ID of the system user who voided the receipt header" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="VOIDED_BY_USER_NAME" nullable="false" remarks="The name of the system user who voided the receipt header" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="51" name="VOIDED_DATE_TIME" nullable="true" remarks="The date and time that the receipt header was voided" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="VOIDED_DATE_ONLY" nullable="true" remarks="The date that the receipt header was voided (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="54" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="VOIDED_TRANSACTIONS" numRows="0" remarks="Voided transaction data.  Only includes voided records." schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW dbo.VOIDED_TRANSACTIONS&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    src.TRANSACTION_ID,&#13;&#10;    src.RECEIPT_HEADER_ID,&#13;&#10;    FORMAT(rh1.RECEIPT_NUMBER, '#.0000') AS RECEIPT_NUMBER,&#13;&#10;    src.CREATION_DATE_TIME,&#13;&#10;    CAST(src.CREATION_DATE_TIME AS DATE) AS CREATION_DATE_ONLY,&#13;&#10;    src.LAST_UPDATED_DATE_TIME,&#13;&#10;    CAST(src.LAST_UPDATED_DATE_TIME AS DATE) AS LAST_UPDATED_DATE_ONLY,&#13;&#10;    src.TRANSACTION_SITE_ID,&#13;&#10;    si1.SITE_NAME AS TRANSACTION_SITE_NAME,&#13;&#10;    src.REVENUE_SITE_ID,&#13;&#10;    si2.SITE_NAME AS REVENUE_SITE_NAME,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    ws1.WORKSTATION_NAME,&#13;&#10;    src.SYSTEMUSER_ID,&#13;&#10;    CONCAT(su1.USER_FIRST_NAME, IIF(su1.USER_FIRST_NAME IS NOT NULL AND su1.USER_LAST_NAME IS NOT NULL, ' ', ''), su1.USER_LAST_NAME) AS SYSTEM_USER_NAME,&#13;&#10;    src.CASH_SUMMARY_SHEET_ID,&#13;&#10;    src.MODULE_NAME,&#13;&#10;    src.TRANSACTION_TYPE_ID,&#13;&#10;    rv4.REFERENCE_VALUE AS TRANSACTION_TYPE,&#13;&#10;    src.ORIGINAL_TRANSACTION_TYPE_ID,&#13;&#10;    rv5.REFERENCE_VALUE AS ORIGINAL_TRANSACTION_TYPE,&#13;&#10;    src.ORIGINAL_TRANSACTION_ID,&#13;&#10;    src.ROOT_TRANSACTION_ID,&#13;&#10;    src.LINKED_TRANSACTION_ID,&#13;&#10;    src.ADDITIONAL_TRANSACTION_ID,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    CONCAT(cu1.CUSTOMER_FIRST_NAME, IIF(cu1.CUSTOMER_FIRST_NAME IS NOT NULL AND cu1.CUSTOMER_LAST_NAME IS NOT NULL, ' ', ''), cu1.CUSTOMER_LAST_NAME) AS CUSTOMER_NAME,&#13;&#10;    src.COMPANY_ID,&#13;&#10;    co1.COMPANY_NAME,&#13;&#10;    src.APPLIED_AMOUNT,&#13;&#10;    src.CREDIT_CARD_AMOUNT,&#13;&#10;    src.ECP_AMOUNT,&#13;&#10;    src.PREFUND_AMOUNT_USED,&#13;&#10;    src.QUANTITY,&#13;&#10;    src.EVENT_NAME,&#13;&#10;    src.STAFF_NOTES,&#13;&#10;    src.CUSTOMER_NOTES,&#13;&#10;    src.EFFECTIVE_DATE_TIME,&#13;&#10;    CAST(src.EFFECTIVE_DATE_TIME AS DATE) AS EFFECTIVE_DATE_ONLY,&#13;&#10;    src.PRORATE_EFFECTIVE_DATE,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    src.WAITLIST_RANK,&#13;&#10;    src.PRIVATE_LESSON_GROUP_ID,&#13;&#10;    src.MAX_PRIVATE_LESSON_BOOKINGS,&#13;&#10;    src.RESERVATION_PERIOD_UNIT,&#13;&#10;    src.PASS_OR_FAIL,&#13;&#10;    src.PASS_OR_FAIL_DATE,&#13;&#10;    src.PASS_OR_FAIL_PERCENTAGE,&#13;&#10;    src.PASS_OR_FAIL_GRADE_ID,&#13;&#10;    apfg.ACTIVITY_PASS_FAIL_GRADE_NAME AS PASS_OR_FAIL_GRADE_NAME,&#13;&#10;    src.DEPOSIT_PAYOFF_AMOUNT,&#13;&#10;    src.ROLLOVER_TRANSACTION_ID,&#13;&#10;    src.PROGRAM_ID,&#13;&#10;    pr1.PROGRAM_NAME,&#13;&#10;    src.SESSION_ID,&#13;&#10;    se1.SESSION_NAME,&#13;&#10;    src.PACKAGE_ID,&#13;&#10;    pa1.PACKAGE_NAME,&#13;&#10;    src.MEMBERSHIP_ID,&#13;&#10;    src.EXPIRATION_DATE,&#13;&#10;    src.MAX_USES,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.PERMIT_ID,&#13;&#10;    pe1.PERMIT_NUMBER,&#13;&#10;    src.RESERVATION_TYPE,&#13;&#10;    src.EVENT_TYPE_ID,&#13;&#10;    et1.EVENT_TYPE_NAME AS EVENT_TYPE,&#13;&#10;    src.SCHEDULE_TYPE_ID,&#13;&#10;    st1.SCHEDULE_TYPE_NAME AS SCHEDULE_TYPE,&#13;&#10;    src.PREP_CODE_ID,&#13;&#10;    pc1.PREP_CODE_NAME,&#13;&#10;    src.NON_EXCLUSIVE_EVENT,&#13;&#10;    src.LOCKER_ID,&#13;&#10;    src.COMBINATION_LOCK_ID,&#13;&#10;    src.LOCKER_COMBINATION,&#13;&#10;    src.POSPRODUCT_ID,&#13;&#10;    ppr.PRODUCT_NAME,&#13;&#10;    src.POS_FEATURE_1,&#13;&#10;    src.POS_FEATURE_2,&#13;&#10;    src.REFUND_TO_INVENTORY_QUANTITY,&#13;&#10;    src.LEAGUE_SCHEDULE_ID,&#13;&#10;    src.TEAM_ID,&#13;&#10;    src.CAMPAIGN_ID,&#13;&#10;    ca1.CAMPAIGN_NAME,&#13;&#10;    src.GIFT_CARD_ID,&#13;&#10;    src.CUSTOMQUESTIONANSWER_TRANSACTION_ID,&#13;&#10;    src.REFUND_TYPE,&#13;&#10;    src.REFUND_RETAIN_OWED_PERCENT,&#13;&#10;    src.REFUND_RETAIN_AMOUNT,&#13;&#10;    src.WITHDRAW_REASON,&#13;&#10;    src.CANCEL_REASON_ID,&#13;&#10;    re1.DESCRIPTION AS CANCEL_REASON,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    'Yes' AS VOIDED,&#13;&#10;    src.VOIDED_BY,&#13;&#10;    CONCAT(su2.USER_FIRST_NAME, IIF(su2.USER_FIRST_NAME IS NOT NULL AND su2.USER_LAST_NAME IS NOT NULL, ' ', ''), su2.USER_LAST_NAME) AS VOIDED_BY_USER_NAME,&#13;&#10;    src.VOIDED_DATE_TIME,&#13;&#10;    CAST(src.VOIDED_DATE_TIME AS DATE) VOIDED_DATE_ONLY,&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.TRANSACTIONS src&#13;&#10;    LEFT JOIN hub.RECEIPT_HEADERS rh1 ON (rh1.ORG_ID = src.ORG_ID AND rh1.RECEIPT_HEADER_ID = src.RECEIPT_HEADER_ID)&#13;&#10;    LEFT JOIN hub.SITES si1 ON (si1.ORG_ID = src.ORG_ID AND si1.SITE_ID = src.TRANSACTION_SITE_ID)&#13;&#10;    LEFT JOIN hub.SITES si2 ON (si2.ORG_ID = src.ORG_ID AND si2.SITE_ID = src.REVENUE_SITE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su1 ON (su1.ORG_ID = src.ORG_ID AND su1.SYSTEMUSER_ID = src.SYSTEMUSER_ID)&#13;&#10;    LEFT JOIN hub.CUSTOMERS cu1 ON (cu1.ORG_ID = src.ORG_ID AND cu1.CUSTOMER_ID = src.CUSTOMER_ID)&#13;&#10;    LEFT JOIN hub.COMPANIES co1 ON (co1.ORG_ID = src.ORG_ID AND co1.COMPANY_ID = src.COMPANY_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITIES ac1 ON (ac1.ORG_ID = src.ORG_ID AND ac1.ACTIVITY_ID = src.ACTIVITY_ID)&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON (fa1.ORG_ID = src.ORG_ID AND fa1.FACILITY_ID = src.FACILITY_ID)&#13;&#10;    LEFT JOIN hub.PROGRAMS pr1 ON (pr1.ORG_ID = src.ORG_ID AND pr1.PROGRAM_ID = src.PROGRAM_ID)&#13;&#10;    LEFT JOIN hub.SESSIONS se1 ON (se1.ORG_ID = src.ORG_ID AND se1.SESSION_ID = src.SESSION_ID)&#13;&#10;    LEFT JOIN hub.PACKAGES pa1 ON (pa1.ORG_ID = src.ORG_ID AND pa1.PACKAGE_ID = src.PACKAGE_ID)&#13;&#10;    LEFT JOIN hub.PERMITS pe1 ON (pe1.ORG_ID = src.ORG_ID AND pe1.PERMIT_ID = src.PERMIT_ID)&#13;&#10;    LEFT JOIN hub.POS_PRODUCTS ppr ON (ppr.ORG_ID = src.ORG_ID AND ppr.POSPRODUCT_ID = src.POSPRODUCT_ID)&#13;&#10;    LEFT JOIN hub.CAMPAIGNS ca1 ON (ca1.ORG_ID = src.ORG_ID AND ca1.CAMPAIGN_ID = src.CAMPAIGN_ID)&#13;&#10;    LEFT JOIN hub.REASONS re1 ON (re1.ORG_ID = src.ORG_ID AND re1.REASON_ID = src.CANCEL_REASON_ID)&#13;&#10;    LEFT JOIN hub.WORKSTATIONS ws1 ON (ws1.ORG_ID = src.ORG_ID AND ws1.WORKSTATION_ID = src.WORKSTATION_ID)&#13;&#10;    LEFT JOIN hub.PREP_CODES pc1 ON (pc1.ORG_ID = src.ORG_ID AND pc1.PREP_CODE_ID = src.PREP_CODE_ID)&#13;&#10;    LEFT JOIN hub.SYSTEM_USERS su2 ON (su2.ORG_ID = src.ORG_ID AND su2.SYSTEMUSER_ID = src.VOIDED_BY)&#13;&#10;    LEFT JOIN hub.SCHEDULE_TYPES st1 ON (st1.ORG_ID = src.ORG_ID AND st1.SCHEDULE_TYPE_ID = src.SCHEDULE_TYPE_ID)&#13;&#10;    LEFT JOIN hub.EVENT_TYPES et1 ON (et1.ORG_ID = src.ORG_ID AND et1.EVENT_TYPE_ID = src.EVENT_TYPE_ID)&#13;&#10;    LEFT JOIN hub.ACTIVITY_PASS_FAIL_GRADES apfg ON (apfg.ORG_ID = src.ORG_ID AND apfg.ACTIVITY_PASS_FAIL_GRADE_ID = src.PASS_OR_FAIL_GRADE_ID)&#13;&#10;    LEFT JOIN hub.REFERENCE_VALUES rv4 ON (rv4.ORG_ID = src.ORG_ID AND rv4.REFERENCE_ID = src.TRANSACTION_TYPE_ID AND rv4.REFERENCE_TABLE = 'TRANSACTION_TYPES' AND rv4.REFERENCE_COLUMN = 'TITLE')&#13;&#10;    LEFT JOIN hub.REFERENCE_VALUES rv5 ON (rv5.ORG_ID = src.ORG_ID AND rv5.REFERENCE_ID = src.ORIGINAL_TRANSACTION_TYPE_ID AND rv5.REFERENCE_TABLE = 'TRANSACTION_TYPES' AND rv5.REFERENCE_COLUMN = 'TITLE')&#13;&#10;WHERE&#13;&#10;    src.VOIDED = 1;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="TRANSACTION_ID" nullable="true" remarks="Transaction ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="RECEIPT_HEADER_ID" nullable="true" remarks="ID of the receipt header that the transaction belongs to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="RECEIPT_NUMBER" nullable="true" remarks="The receipt number that the transaction belongs to" size="8000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="3" name="CREATION_DATE_TIME" nullable="true" remarks="Date and time that the transaction was created" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CREATION_DATE_ONLY" nullable="true" remarks="Date that the transaction was created (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="LAST_UPDATED_DATE_TIME" nullable="true" remarks="Date and time that the transaction was last updated" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="LAST_UPDATED_DATE_ONLY" nullable="true" remarks="Date that the transaction was last updated (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="TRANSACTION_SITE_ID" nullable="true" remarks="ID of the site where the transaction was created" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="TRANSACTION_SITE_NAME" nullable="true" remarks="Name of the site where the transaction was created" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="REVENUE_SITE_ID" nullable="true" remarks="ID of the site for the item that the transaction is for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="REVENUE_SITE_NAME" nullable="true" remarks="Name of the site for the item that the transaction is for" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="WORKSTATION_ID" nullable="true" remarks="ID of the workstation where the transaction was created" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="WORKSTATION_NAME" nullable="true" remarks="Name of the workstation where the transaction was created" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="SYSTEMUSER_ID" nullable="true" remarks="ID of the user who created the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="SYSTEM_USER_NAME" nullable="false" remarks="Name of the user who created the transaction" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="CASH_SUMMARY_SHEET_ID" nullable="true" remarks="ID of the cash summary sheet that was active on the workstation when the transaction was created" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="MODULE_NAME" nullable="true" remarks="The system module that the transaction belongs to" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="TRANSACTION_TYPE_ID" nullable="true" remarks="The transaction type ID of the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="TRANSACTION_TYPE" nullable="true" remarks="The transaction type of the transaction" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ORIGINAL_TRANSACTION_TYPE_ID" nullable="true" remarks="The original transaction type ID of the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ORIGINAL_TRANSACTION_TYPE" nullable="true" remarks="The original transaction type of the transaction" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ORIGINAL_TRANSACTION_ID" nullable="true" remarks="The original transaction ID for a series of transactions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="ROOT_TRANSACTION_ID" nullable="true" remarks="The root transaction ID for a chain of transactions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="LINKED_TRANSACTION_ID" nullable="true" remarks="A linked transaction ID for a related transaction if applicable" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="ADDITIONAL_TRANSACTION_ID" nullable="true" remarks="An additional transaction ID for a related transaction if applicable" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="CUSTOMER_ID" nullable="true" remarks="ID of the customer who is the participant of the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="CUSTOMER_NAME" nullable="false" remarks="Name of the customer who is the participant of the transaction" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="COMPANY_ID" nullable="true" remarks="ID of the company who is the owner of the transaction if applicable" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="COMPANY_NAME" nullable="true" remarks="Name of the company who is the owner of the transaction if applicable" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="29" name="APPLIED_AMOUNT" nullable="true" remarks="The total payment amount applied to the transaction" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="30" name="CREDIT_CARD_AMOUNT" nullable="true" remarks="The credit card payment amount applied to the transaction" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="31" name="ECP_AMOUNT" nullable="true" remarks="The electronic check processing payment amount applied to the transaction" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="32" name="PREFUND_AMOUNT_USED" nullable="true" remarks="Total prefund amount used for this transaction" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="QUANTITY" nullable="true" remarks="The quantity applicable to this transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="EVENT_NAME" nullable="true" remarks="The event or item description for this transaction" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="STAFF_NOTES" nullable="true" remarks="Staff notes entered for this transaction" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="CUSTOMER_NOTES" nullable="true" remarks="Customer notes entered for this transaction" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="37" name="EFFECTIVE_DATE_TIME" nullable="true" remarks="The effective date and time related to this transaction" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="EFFECTIVE_DATE_ONLY" nullable="true" remarks="The effective date related to this transaction (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="PRORATE_EFFECTIVE_DATE" nullable="true" remarks="The proration date applied to this transaction" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="ACTIVITY_ID" nullable="true" remarks="The activity ID if this transaction is related to an activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="WAITLIST_RANK" nullable="true" remarks="The customer's waitlist rank for waitlist transactions" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="PRIVATE_LESSON_GROUP_ID" nullable="true" remarks="The private lesson group ID for the enrollment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="MAX_PRIVATE_LESSON_BOOKINGS" nullable="true" remarks="The number of private lessons included in the enrollment" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="RESERVATION_PERIOD_UNIT" nullable="true" remarks="Default reservation period (Use Default / Minute / Hour / Day / Week / Month / Defined Date Range / Rental Block / Overnight)" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="PASS_OR_FAIL" nullable="true" remarks="The pass or fail status if a grade has been entered that designates pass or fail (pass / fail)" size="4" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="PASS_OR_FAIL_DATE" nullable="true" remarks="The date that the pass or fail status was entered" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="47" name="PASS_OR_FAIL_PERCENTAGE" nullable="true" remarks="The pass or fail percentage if one has been entered" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="PASS_OR_FAIL_GRADE_ID" nullable="true" remarks="The pass or fail grade ID that has been entered" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="PASS_OR_FAIL_GRADE_NAME" nullable="true" remarks="The pass or fail grade name that has been entered" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="50" name="DEPOSIT_PAYOFF_AMOUNT" nullable="true" remarks="The amount required to pay off a specified deposit" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="ROLLOVER_TRANSACTION_ID" nullable="true" remarks="The transaction ID created when this enrollment was rolled over" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="PROGRAM_ID" nullable="true" remarks="The program ID if this transaction is related to a daycare program" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="PROGRAM_NAME" nullable="true" remarks="The program name if this transaction is related to a daycare program" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="SESSION_ID" nullable="true" remarks="The session ID if this transaction is related to a daycare program session" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="SESSION_NAME" nullable="true" remarks="The session name if this transaction is related to a daycare program session" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="PACKAGE_ID" nullable="true" remarks="The package ID if this transaction is related to a membership" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="PACKAGE_NAME" nullable="true" remarks="The package name if this transaction is related to a membership" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="MEMBERSHIP_ID" nullable="true" remarks="The membership ID if this transaction is related to a membership" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="EXPIRATION_DATE" nullable="true" remarks="The expiration date if this transaction is related to a membership sale or renewal" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="MAX_USES" nullable="true" remarks="The max uses purchased for a punch pass membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="61" name="FACILITY_ID" nullable="true" remarks="The facility ID if this transaction is related to a reservation or private lesson" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="FACILITY_NAME" nullable="true" remarks="The facility name if this transaction is related to a reservation or private lesson" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="PERMIT_ID" nullable="true" remarks="The permit ID if this transaction is related to a reservation" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="PERMIT_NUMBER" nullable="true" remarks="The permit number if this transaction is related to a reservation" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="65" name="RESERVATION_TYPE" nullable="true" remarks="The reservation type (Regular / Continuous)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="66" name="EVENT_TYPE_ID" nullable="true" remarks="The event type ID if this transaction is related to a reservation" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="67" name="EVENT_TYPE" nullable="true" remarks="The event type name if this transaction is related to a reservation" size="102" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="68" name="SCHEDULE_TYPE_ID" nullable="true" remarks="The schedule type ID if this transaction is related to a reservation" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="69" name="SCHEDULE_TYPE" nullable="true" remarks="The schedule type name if this transaction is related to a reservation" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="70" name="PREP_CODE_ID" nullable="true" remarks="The prep code ID if this transaction is related to a reservation" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="71" name="PREP_CODE_NAME" nullable="true" remarks="The prep code ID if this transaction is related to a reservation" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="72" name="NON_EXCLUSIVE_EVENT" nullable="true" remarks="Whether the reservation associated with this transaction is a non-exclusive event (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="73" name="LOCKER_ID" nullable="true" remarks="The locker ID if this transaction is related to a locker reservation" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="74" name="COMBINATION_LOCK_ID" nullable="true" remarks="The combination lock ID if this transaction is related to a locker reservation" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="75" name="LOCKER_COMBINATION" nullable="true" remarks="The locker combination if this transaction is related to a locker reservation" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="76" name="POSPRODUCT_ID" nullable="true" remarks="The POS product ID if this is a point of sale transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="77" name="PRODUCT_NAME" nullable="true" remarks="The POS product name if this is a point of sale transaction" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="78" name="POS_FEATURE_1" nullable="true" remarks="The feature 1 option selected during a point of sale transaction" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="79" name="POS_FEATURE_2" nullable="true" remarks="The feature 2 option selected during a point of sale transaction" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="80" name="REFUND_TO_INVENTORY_QUANTITY" nullable="true" remarks="The quantity to be returned to inventory during a point of sale refund" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="81" name="LEAGUE_SCHEDULE_ID" nullable="true" remarks="The league schedule ID if this transaction is related to a league" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="82" name="TEAM_ID" nullable="true" remarks="The team ID if this transaction is related to a league and a specific team" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="83" name="CAMPAIGN_ID" nullable="true" remarks="The campaign ID if this transaction is related to a donation" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="84" name="CAMPAIGN_NAME" nullable="true" remarks="The campaign name if this transaction is related to a donation" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="85" name="GIFT_CARD_ID" nullable="true" remarks="The gift card ID if this transaction is related to a gift card" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="86" name="CUSTOMQUESTIONANSWER_TRANSACTION_ID" nullable="true" remarks="The transaction ID for custom question answers that apply to this transaction as well" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="87" name="REFUND_TYPE" nullable="true" remarks="The type of refund processed" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="88" name="REFUND_RETAIN_OWED_PERCENT" nullable="true" remarks="The percentage of the fee retained during a refund" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="89" name="REFUND_RETAIN_AMOUNT" nullable="true" remarks="The amount of the fee retained during a refund" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="90" name="WITHDRAW_REASON" nullable="true" remarks="The reason for withdrawal" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="91" name="CANCEL_REASON_ID" nullable="true" remarks="The ID of the reason selected during a refund or cancellation transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="92" name="CANCEL_REASON" nullable="true" remarks="The reason selected during a refund or cancellation transaction" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="93" name="IS_RETIRED" nullable="true" remarks="Whether the transaction has been marked as retired to hide it from display (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="94" name="VOIDED" nullable="false" remarks="Whether the transaction has been voided (Yes/No)" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="95" name="VOIDED_BY" nullable="true" remarks="The ID of the system user who voided the transaction" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="96" name="VOIDED_BY_USER_NAME" nullable="false" remarks="The name of the system user who voided the transaction" size="511" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="97" name="VOIDED_DATE_TIME" nullable="true" remarks="The date and time that the transaction was voided" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="98" name="VOIDED_DATE_ONLY" nullable="true" remarks="The date that the transaction was voided (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="99" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="100" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="101" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="102" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="vw_membership_stats_eod_all_by_category" numRows="0" remarks="Membership end of day statistics for all packages, by category. Goes back to the 1st of the month 24 months ago." schema="dbo" type="VIEW" viewSql="CREATE   VIEW [dbo].[vw_membership_stats_eod_all_by_category]&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    mds.AUDIT_DATE,&#13;&#10;    mds.CATEGORY_ID PACKAGE_CATEGORY_ID,&#13;&#10;    pc.CATEGORY_NAME PACKAGE_CATEGORY_NAME,&#13;&#10;    mds.ACTIVE_COUNT ACTIVE,&#13;&#10;    mds.SUSPENDED_COUNT SUSPENDED&#13;&#10;    -- @StartDate, @EndDate, @RetentionEligibleOnly, @MonthEndsOnly, @IncludeSite, @IncludeCategory, @IncludePackage&#13;&#10;    -- @StartDate = 1st of month 24 months ago &#13;&#10;FROM hub.udf_MembershipEODStats(DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) - 24, 0), CAST(GETDATE() AS DATE), 0, 0, 0, 1, 0) mds&#13;&#10;LEFT JOIN hub.PACKAGE_CATEGORIES pc ON pc.PACKAGE_CATEGORY_ID = mds.CATEGORY_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AUDIT_DATE" nullable="true" remarks="The date that the statistics have been generated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package Category ID of the membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package Category of the membership package" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVE" nullable="true" remarks="The count of active memberships as of the end of the audit date (includes suspended memberships)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SUSPENDED" nullable="true" remarks="The count of suspended memberships as of the end of the audit date" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="vw_membership_stats_eod_all_by_package" numRows="0" remarks="Membership end of day statistics for all packages, by package (includes site and category). Goes back to the 1st of the month 24 months ago." schema="dbo" type="VIEW" viewSql="CREATE   VIEW [dbo].[vw_membership_stats_eod_all_by_package]&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    mds.AUDIT_DATE,&#13;&#10;    mds.SITE_ID,&#13;&#10;    s.SITE_NAME,&#13;&#10;    mds.CATEGORY_ID PACKAGE_CATEGORY_ID,&#13;&#10;    pc.CATEGORY_NAME PACKAGE_CATEGORY_NAME,&#13;&#10;    mds.PACKAGE_ID,&#13;&#10;    p.PACKAGE_NAME,&#13;&#10;    mds.ACTIVE_COUNT ACTIVE,&#13;&#10;    mds.SUSPENDED_COUNT SUSPENDED&#13;&#10;    -- @StartDate, @EndDate, @RetentionEligibleOnly, @MonthEndsOnly, @IncludeSite, @IncludeCategory, @IncludePackage&#13;&#10;    -- @StartDate = 1st of month 24 months ago &#13;&#10;FROM hub.udf_MembershipEODStats(DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) - 24, 0), CAST(GETDATE() AS DATE), 0, 0, 1, 1, 1) mds&#13;&#10;LEFT JOIN hub.PACKAGE_CATEGORIES pc ON pc.PACKAGE_CATEGORY_ID = mds.CATEGORY_ID&#13;&#10;LEFT JOIN hub.SITES s ON s.SITE_ID = mds.SITE_ID&#13;&#10;LEFT JOIN hub.PACKAGES p ON p.PACKAGE_ID = mds.PACKAGE_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AUDIT_DATE" nullable="true" remarks="The date that the statistics have been generated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SITE_ID" nullable="true" remarks="The ID of the site to which this package belongs" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_NAME" nullable="true" remarks="The name of the site to which this package belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package Category ID of the membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package Category of the membership package" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PACKAGE_ID" nullable="true" remarks="The ID of the membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PACKAGE_NAME" nullable="true" remarks="Name of the membership package" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE" nullable="true" remarks="The count of active memberships as of the end of the audit date (includes suspended memberships)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SUSPENDED" nullable="true" remarks="The count of suspended memberships as of the end of the audit date" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="vw_membership_stats_eod_all_by_site" numRows="0" remarks="Membership end of day statistics for all packages, by site. Goes back to the 1st of the month 24 months ago." schema="dbo" type="VIEW" viewSql="CREATE   VIEW [dbo].[vw_membership_stats_eod_all_by_site]&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    mds.AUDIT_DATE,&#13;&#10;    mds.SITE_ID,&#13;&#10;    s.SITE_NAME,&#13;&#10;    mds.ACTIVE_COUNT ACTIVE,&#13;&#10;    mds.SUSPENDED_COUNT SUSPENDED&#13;&#10;    -- @StartDate, @EndDate, @RetentionEligibleOnly, @MonthEndsOnly, @IncludeSite, @IncludeCategory, @IncludePackage&#13;&#10;    -- @StartDate = 1st of month 24 months ago &#13;&#10;FROM hub.udf_MembershipEODStats(DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) - 24, 0), CAST(GETDATE() AS DATE), 0, 0, 1, 0, 0) mds&#13;&#10;LEFT JOIN hub.SITES s ON s.SITE_ID = mds.SITE_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AUDIT_DATE" nullable="true" remarks="The date that the statistics have been generated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SITE_ID" nullable="true" remarks="The ID of the site to which this package belongs" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_NAME" nullable="true" remarks="The name of the site to which this package belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVE" nullable="true" remarks="The count of active memberships as of the end of the audit date (includes suspended memberships)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SUSPENDED" nullable="true" remarks="The count of suspended memberships as of the end of the audit date" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="vw_membership_stats_eod_all_by_site_category" numRows="0" remarks="Membership end of day statistics for all packages, by site and category. Goes back to the 1st of the month 24 months ago." schema="dbo" type="VIEW" viewSql="CREATE   VIEW [dbo].[vw_membership_stats_eod_all_by_site_category]&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    mds.AUDIT_DATE,&#13;&#10;    mds.SITE_ID,&#13;&#10;    s.SITE_NAME,&#13;&#10;    mds.CATEGORY_ID PACKAGE_CATEGORY_ID,&#13;&#10;    pc.CATEGORY_NAME PACKAGE_CATEGORY_NAME,&#13;&#10;    mds.ACTIVE_COUNT ACTIVE,&#13;&#10;    mds.SUSPENDED_COUNT SUSPENDED&#13;&#10;    -- @StartDate, @EndDate, @RetentionEligibleOnly, @MonthEndsOnly, @IncludeSite, @IncludeCategory, @IncludePackage&#13;&#10;    -- @StartDate = 1st of month 24 months ago &#13;&#10;FROM hub.udf_MembershipEODStats(DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) - 24, 0), CAST(GETDATE() AS DATE), 0, 0, 1, 1, 0) mds&#13;&#10;LEFT JOIN hub.PACKAGE_CATEGORIES pc ON pc.PACKAGE_CATEGORY_ID = mds.CATEGORY_ID&#13;&#10;LEFT JOIN hub.SITES s ON s.SITE_ID = mds.SITE_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AUDIT_DATE" nullable="true" remarks="The date that the statistics have been generated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SITE_ID" nullable="true" remarks="The ID of the site to which this package belongs" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_NAME" nullable="true" remarks="The name of the site to which this package belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package Category ID of the membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package Category of the membership package" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE" nullable="true" remarks="The count of active memberships as of the end of the audit date (includes suspended memberships)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SUSPENDED" nullable="true" remarks="The count of suspended memberships as of the end of the audit date" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="vw_membership_stats_eod_detail" numRows="0" remarks="Membership end of day statistics details for all packages." schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW [dbo].[vw_membership_stats_eod_detail]&#13;&#10;AS&#13;&#10;&#9;SELECT&#13;&#10;&#9;&#9;mds.AUDIT_DATE,&#13;&#10;&#9;&#9;mds.ORG_ID,&#13;&#10;&#9;&#9;mds.SITE_ID,&#13;&#10;&#9;&#9;s.SITE_NAME,&#13;&#10;&#9;&#9;mds.MEMBERSHIP_ID,&#13;&#10;&#9;&#9;me.PRIMARY_MEMBER_CUSTOMER_ID,&#9;&#9;&#13;&#10;&#9;&#9;mds.PACKAGE_ID,&#13;&#10;&#9;&#9;p.PACKAGE_NAME,&#13;&#10;&#9;&#9;mds.CATEGORY_ID,&#13;&#10;&#9;&#9;pc.CATEGORY_NAME,&#13;&#10;&#9;&#9;PASS_COUNT = (SELECT COUNT(DISTINCT CUSTOMER_ID) FROM hub.MEMBERSHIPS WHERE ORG_ID = me.ORG_ID AND MEMBERSHIP_ID = me.MEMBERSHIP_ID GROUP BY ORG_ID, MEMBERSHIP_ID),&#13;&#10;&#9;&#9;IS_RESIDENT = CASE cus.RESIDENT_STATUS WHEN 'Resident' THEN 'Yes' ELSE 'No' END,&#13;&#10;&#9;&#9;IS_RETENTION_ELIGIBLE = pc.RETENTION_ELIGIBLE,    &#13;&#10;&#9;&#9;IS_SUSPENDED&#13;&#10;&#9;FROM [hub].[udf_MembershipEODStats_Detail](DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) - 24, 0), CAST(GETDATE() AS DATE), 0, 0, 1, 1, 1) mds&#13;&#10;&#9;&#9;LEFT JOIN hub.MEMBERSHIPS me  ON (me.MEMBERSHIP_ID = mds.MEMBERSHIP_ID AND me.ORG_ID = mds.ORG_ID)&#13;&#10;&#9;&#9;LEFT JOIN hub.CUSTOMERS cus ON (cus.CUSTOMER_ID = me.PRIMARY_MEMBER_CUSTOMER_ID AND me.ORG_ID=cus.ORG_ID)&#13;&#10;&#9;&#9;LEFT JOIN hub.PACKAGE_CATEGORIES pc ON (pc.PACKAGE_CATEGORY_ID = mds.CATEGORY_ID AND pc.ORG_ID = mds.ORG_ID)&#13;&#10;&#9;&#9;LEFT JOIN hub.PACKAGES p ON (p.PACKAGE_ID = mds.PACKAGE_ID AND P.ORG_ID = MDS.ORG_ID)&#13;&#10;&#9;&#9;LEFT JOIN hub.SITES s ON (s.SITE_ID = mds.SITE_ID AND s.ORG_ID = mds.ORG_ID)&#13;&#10;&#9;WHERE me.IS_PRIMARY = 'Yes'&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AUDIT_DATE" nullable="true" remarks="The date that the statistics have been generated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_ID" nullable="true" remarks="The ID of the site to which this package belongs" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_NAME" nullable="true" remarks="The name of the site to which this package belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="MEMBERSHIP_ID" nullable="true" remarks="the membership_id" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PRIMARY_MEMBER_CUSTOMER_ID" nullable="true" remarks="The primary customer ID to which the membership package is assigned." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PACKAGE_ID" nullable="true" remarks="The package ID of the customers membership." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="PACKAGE_NAME" nullable="true" remarks="The package name of the customers membership." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CATEGORY_ID" nullable="true" remarks="Package Category ID of the membership package." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CATEGORY_NAME" nullable="true" remarks="Package Category of the membership package." size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="PASS_COUNT" nullable="true" remarks="The count of active membership passes" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="IS_RESIDENT" nullable="false" remarks="Customer's resident status." size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="IS_RETENTION_ELIGIBLE" nullable="true" remarks="Whether packages of this category should have retention eligibility." size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="IS_SUSPENDED" nullable="false" remarks="Whether membership is suspended as of the end of the audit date" size="3" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="vw_membership_stats_eod_retention_only_by_category" numRows="0" remarks="Membership end of day statistics for retention-only packages, by category. Goes back to the 1st of the month 24 months ago." schema="dbo" type="VIEW" viewSql="CREATE   VIEW [dbo].[vw_membership_stats_eod_retention_only_by_category]&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    mds.AUDIT_DATE,&#13;&#10;    mds.CATEGORY_ID PACKAGE_CATEGORY_ID,&#13;&#10;    pc.CATEGORY_NAME PACKAGE_CATEGORY_NAME,&#13;&#10;    mds.ACTIVE_COUNT ACTIVE,&#13;&#10;    mds.SUSPENDED_COUNT SUSPENDED&#13;&#10;    -- @StartDate, @EndDate, @RetentionEligibleOnly, @MonthEndsOnly, @IncludeSite, @IncludeCategory, @IncludePackage&#13;&#10;    -- @StartDate = 1st of month 24 months ago &#13;&#10;FROM hub.udf_MembershipEODStats(DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) - 24, 0), CAST(GETDATE() AS DATE), 1, 0, 0, 1, 0) mds&#13;&#10;LEFT JOIN hub.PACKAGE_CATEGORIES pc ON pc.PACKAGE_CATEGORY_ID = mds.CATEGORY_ID&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AUDIT_DATE" nullable="true" remarks="The date that the statistics have been generated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package Category ID of the membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package Category of the membership package" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVE" nullable="true" remarks="The count of active memberships as of the end of the audit date (includes suspended memberships)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SUSPENDED" nullable="true" remarks="The count of suspended memberships as of the end of the audit date" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="vw_membership_stats_eod_retention_only_by_package" numRows="0" remarks="Membership end of day statistics for retention-only packages, by package (includes site and category). Goes back to the 1st of the month 24 months ago." schema="dbo" type="VIEW" viewSql="CREATE   VIEW [dbo].[vw_membership_stats_eod_retention_only_by_package]&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    mds.AUDIT_DATE,&#13;&#10;    mds.SITE_ID,&#13;&#10;    s.SITE_NAME,&#13;&#10;    mds.CATEGORY_ID PACKAGE_CATEGORY_ID,&#13;&#10;    pc.CATEGORY_NAME PACKAGE_CATEGORY_NAME,&#13;&#10;    mds.PACKAGE_ID,&#13;&#10;    p.PACKAGE_NAME,&#13;&#10;    mds.ACTIVE_COUNT ACTIVE,&#13;&#10;    mds.SUSPENDED_COUNT SUSPENDED&#13;&#10;    -- @StartDate, @EndDate, @RetentionEligibleOnly, @MonthEndsOnly, @IncludeSite, @IncludeCategory, @IncludePackage&#13;&#10;    -- @StartDate = 1st of month 24 months ago &#13;&#10;FROM hub.udf_MembershipEODStats(DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) - 24, 0), CAST(GETDATE() AS DATE), 1, 0, 1, 1, 1) mds&#13;&#10;LEFT JOIN hub.PACKAGE_CATEGORIES pc ON pc.PACKAGE_CATEGORY_ID = mds.CATEGORY_ID&#13;&#10;LEFT JOIN hub.SITES s ON s.SITE_ID = mds.SITE_ID&#13;&#10;LEFT JOIN hub.PACKAGES p ON p.PACKAGE_ID = mds.PACKAGE_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AUDIT_DATE" nullable="true" remarks="The date that the statistics have been generated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SITE_ID" nullable="true" remarks="The ID of the site to which this package belongs" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_NAME" nullable="true" remarks="The name of the site to which this package belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package Category ID of the membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package Category of the membership package" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PACKAGE_ID" nullable="true" remarks="The ID of the membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PACKAGE_NAME" nullable="true" remarks="Name of the membership package" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE" nullable="true" remarks="The count of active memberships as of the end of the audit date (includes suspended memberships)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SUSPENDED" nullable="true" remarks="The count of suspended memberships as of the end of the audit date" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="vw_membership_stats_eod_retention_only_by_site" numRows="0" remarks="Membership end of day statistics for retention-only packages, by site. Goes back to the 1st of the month 24 months ago." schema="dbo" type="VIEW" viewSql="CREATE   VIEW [dbo].[vw_membership_stats_eod_retention_only_by_site]&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    mds.AUDIT_DATE,&#13;&#10;    mds.SITE_ID,&#13;&#10;    s.SITE_NAME,&#13;&#10;    mds.ACTIVE_COUNT ACTIVE,&#13;&#10;    mds.SUSPENDED_COUNT SUSPENDED&#13;&#10;    -- @StartDate, @EndDate, @RetentionEligibleOnly, @MonthEndsOnly, @IncludeSite, @IncludeCategory, @IncludePackage&#13;&#10;    -- @StartDate = 1st of month 24 months ago &#13;&#10;FROM hub.udf_MembershipEODStats(DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) - 24, 0), CAST(GETDATE() AS DATE), 1, 0, 1, 0, 0) mds&#13;&#10;LEFT JOIN hub.SITES s ON s.SITE_ID = mds.SITE_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AUDIT_DATE" nullable="true" remarks="The date that the statistics have been generated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SITE_ID" nullable="true" remarks="The ID of the site to which this package belongs" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_NAME" nullable="true" remarks="The name of the site to which this package belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVE" nullable="true" remarks="The count of active memberships as of the end of the audit date (includes suspended memberships)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SUSPENDED" nullable="true" remarks="The count of suspended memberships as of the end of the audit date" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="vw_membership_stats_eod_retention_only_by_site_category" numRows="0" remarks="Membership end of day statistics for retention-only packages, by site and category. Goes back to the 1st of the month 24 months ago." schema="dbo" type="VIEW" viewSql="CREATE   VIEW [dbo].[vw_membership_stats_eod_retention_only_by_site_category]&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    mds.AUDIT_DATE,&#13;&#10;    mds.SITE_ID,&#13;&#10;    s.SITE_NAME,&#13;&#10;    mds.CATEGORY_ID PACKAGE_CATEGORY_ID,&#13;&#10;    pc.CATEGORY_NAME PACKAGE_CATEGORY_NAME,&#13;&#10;    mds.ACTIVE_COUNT ACTIVE,&#13;&#10;    mds.SUSPENDED_COUNT SUSPENDED&#13;&#10;    -- @StartDate, @EndDate, @RetentionEligibleOnly, @MonthEndsOnly, @IncludeSite, @IncludeCategory, @IncludePackage&#13;&#10;    -- @StartDate = 1st of month 24 months ago &#13;&#10;FROM hub.udf_MembershipEODStats(DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) - 24, 0), CAST(GETDATE() AS DATE), 1, 0, 1, 1, 0) mds&#13;&#10;LEFT JOIN hub.PACKAGE_CATEGORIES pc ON pc.PACKAGE_CATEGORY_ID = mds.CATEGORY_ID&#13;&#10;LEFT JOIN hub.SITES s ON s.SITE_ID = mds.SITE_ID&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AUDIT_DATE" nullable="true" remarks="The date that the statistics have been generated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SITE_ID" nullable="true" remarks="The ID of the site to which this package belongs" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_NAME" nullable="true" remarks="The name of the site to which this package belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package Category ID of the membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package Category of the membership package" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE" nullable="true" remarks="The count of active memberships as of the end of the audit date (includes suspended memberships)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SUSPENDED" nullable="true" remarks="The count of suspended memberships as of the end of the audit date" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="vw_membership_stats_eom_all_by_category" numRows="0" remarks="Membership end of month statistics for all packages, by category. Goes back to the end of January 4 years ago." schema="dbo" type="VIEW" viewSql="CREATE   VIEW [dbo].[vw_membership_stats_eom_all_by_category]&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    mds.AUDIT_DATE,&#13;&#10;    mds.CATEGORY_ID PACKAGE_CATEGORY_ID,&#13;&#10;    pc.CATEGORY_NAME PACKAGE_CATEGORY_NAME,&#13;&#10;    mds.ACTIVE_COUNT ACTIVE,&#13;&#10;    mds.SUSPENDED_COUNT SUSPENDED&#13;&#10;    -- @StartDate, @EndDate, @RetentionEligibleOnly, @MonthEndsOnly, @IncludeSite, @IncludeCategory, @IncludePackage&#13;&#10;FROM hub.udf_MembershipEODStats(NULL, NULL, 0, 1, 0, 1, 0) mds&#13;&#10;LEFT JOIN hub.PACKAGE_CATEGORIES pc ON pc.PACKAGE_CATEGORY_ID = mds.CATEGORY_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AUDIT_DATE" nullable="true" remarks="The date that the statistics have been generated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package Category ID of the membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package Category of the membership package" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVE" nullable="true" remarks="The count of active memberships as of the end of the audit date (includes suspended memberships)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SUSPENDED" nullable="true" remarks="The count of suspended memberships as of the end of the audit date" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="vw_membership_stats_eom_all_by_package" numRows="0" remarks="Membership end of month statistics for all packages, by package (includes site and category). Goes back to the end of January 4 years ago." schema="dbo" type="VIEW" viewSql="CREATE   VIEW [dbo].[vw_membership_stats_eom_all_by_package]&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    mds.AUDIT_DATE,&#13;&#10;    mds.SITE_ID,&#13;&#10;    s.SITE_NAME,&#13;&#10;    mds.CATEGORY_ID PACKAGE_CATEGORY_ID,&#13;&#10;    pc.CATEGORY_NAME PACKAGE_CATEGORY_NAME,&#13;&#10;    mds.PACKAGE_ID,&#13;&#10;    p.PACKAGE_NAME,&#13;&#10;    mds.ACTIVE_COUNT ACTIVE,&#13;&#10;    mds.SUSPENDED_COUNT SUSPENDED&#13;&#10;    -- @StartDate, @EndDate, @RetentionEligibleOnly, @MonthEndsOnly, @IncludeSite, @IncludeCategory, @IncludePackage&#13;&#10;FROM hub.udf_MembershipEODStats(NULL, NULL, 0, 1, 1, 1, 1) mds&#13;&#10;LEFT JOIN hub.PACKAGE_CATEGORIES pc ON pc.PACKAGE_CATEGORY_ID = mds.CATEGORY_ID&#13;&#10;LEFT JOIN hub.SITES s ON s.SITE_ID = mds.SITE_ID&#13;&#10;LEFT JOIN hub.PACKAGES p ON p.PACKAGE_ID = mds.PACKAGE_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AUDIT_DATE" nullable="true" remarks="The date that the statistics have been generated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SITE_ID" nullable="true" remarks="The ID of the site to which this package belongs" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_NAME" nullable="true" remarks="The name of the site to which this package belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package Category ID of the membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package Category of the membership package" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PACKAGE_ID" nullable="true" remarks="The ID of the membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PACKAGE_NAME" nullable="true" remarks="Name of the membership package" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE" nullable="true" remarks="The count of active memberships as of the end of the audit date (includes suspended memberships)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SUSPENDED" nullable="true" remarks="The count of suspended memberships as of the end of the audit date" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="vw_membership_stats_eom_all_by_site" numRows="0" remarks="Membership end of month statistics for all packages, by site. Goes back to the end of January 4 years ago." schema="dbo" type="VIEW" viewSql="CREATE   VIEW [dbo].[vw_membership_stats_eom_all_by_site]&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    mds.AUDIT_DATE,&#13;&#10;    mds.SITE_ID,&#13;&#10;    s.SITE_NAME,&#13;&#10;    mds.ACTIVE_COUNT ACTIVE,&#13;&#10;    mds.SUSPENDED_COUNT SUSPENDED&#13;&#10;    -- @StartDate, @EndDate, @RetentionEligibleOnly, @MonthEndsOnly, @IncludeSite, @IncludeCategory, @IncludePackage&#13;&#10;FROM hub.udf_MembershipEODStats(NULL, NULL, 0, 1, 1, 0, 0) mds&#13;&#10;LEFT JOIN hub.SITES s ON s.SITE_ID = mds.SITE_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AUDIT_DATE" nullable="true" remarks="The date that the statistics have been generated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SITE_ID" nullable="true" remarks="The ID of the site to which this package belongs" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_NAME" nullable="true" remarks="The name of the site to which this package belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVE" nullable="true" remarks="The count of active memberships as of the end of the audit date (includes suspended memberships)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SUSPENDED" nullable="true" remarks="The count of suspended memberships as of the end of the audit date" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="vw_membership_stats_eom_all_by_site_category" numRows="0" remarks="Membership end of month statistics for all packages, by site and category. Goes back to the end of January 4 years ago." schema="dbo" type="VIEW" viewSql="CREATE   VIEW [dbo].[vw_membership_stats_eom_all_by_site_category]&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    mds.AUDIT_DATE,&#13;&#10;    mds.SITE_ID,&#13;&#10;    s.SITE_NAME,&#13;&#10;    mds.CATEGORY_ID PACKAGE_CATEGORY_ID,&#13;&#10;    pc.CATEGORY_NAME PACKAGE_CATEGORY_NAME,&#13;&#10;    mds.ACTIVE_COUNT ACTIVE,&#13;&#10;    mds.SUSPENDED_COUNT SUSPENDED&#13;&#10;    -- @StartDate, @EndDate, @RetentionEligibleOnly, @MonthEndsOnly, @IncludeSite, @IncludeCategory, @IncludePackage&#13;&#10;FROM hub.udf_MembershipEODStats(NULL, NULL, 0, 1, 1, 1, 0) mds&#13;&#10;LEFT JOIN hub.PACKAGE_CATEGORIES pc ON pc.PACKAGE_CATEGORY_ID = mds.CATEGORY_ID&#13;&#10;LEFT JOIN hub.SITES s ON s.SITE_ID = mds.SITE_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AUDIT_DATE" nullable="true" remarks="The date that the statistics have been generated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SITE_ID" nullable="true" remarks="The ID of the site to which this package belongs" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_NAME" nullable="true" remarks="The name of the site to which this package belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package Category ID of the membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package Category of the membership package" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE" nullable="true" remarks="The count of active memberships as of the end of the audit date (includes suspended memberships)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SUSPENDED" nullable="true" remarks="The count of suspended memberships as of the end of the audit date" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="vw_membership_stats_eom_detail" numRows="0" remarks="Membership end of day statistics details for all packages." schema="dbo" type="VIEW" viewSql="&#13;&#10;CREATE VIEW [dbo].[vw_membership_stats_eom_detail]&#13;&#10;AS&#13;&#10;&#9;SELECT&#13;&#10;&#9;&#9;mds.AUDIT_DATE,&#13;&#10;&#9;&#9;mds.ORG_ID,&#13;&#10;&#9;&#9;mds.SITE_ID,&#13;&#10;&#9;&#9;s.SITE_NAME,&#13;&#10;&#9;&#9;mds.MEMBERSHIP_ID,&#13;&#10;&#9;&#9;me.PRIMARY_MEMBER_CUSTOMER_ID,&#9;&#9;&#13;&#10;&#9;&#9;mds.PACKAGE_ID,&#13;&#10;&#9;&#9;p.PACKAGE_NAME,&#13;&#10;&#9;&#9;mds.CATEGORY_ID,&#13;&#10;&#9;&#9;pc.CATEGORY_NAME,&#13;&#10;&#9;&#9;PASS_COUNT = (SELECT COUNT(DISTINCT CUSTOMER_ID) FROM hub.MEMBERSHIPS WHERE ORG_ID = me.ORG_ID AND MEMBERSHIP_ID = me.MEMBERSHIP_ID GROUP BY ORG_ID, MEMBERSHIP_ID),&#13;&#10;&#9;&#9;IS_RESIDENT = CASE cus.RESIDENT_STATUS WHEN 'Resident' THEN 'Yes' ELSE 'No' END,&#13;&#10;&#9;&#9;IS_RETENTION_ELIGIBLE = pc.RETENTION_ELIGIBLE,    &#13;&#10;&#9;&#9;IS_SUSPENDED&#13;&#10;&#9;FROM [hub].[udf_MembershipEODStats_Detail](DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) - 24, 0), CAST(GETDATE() AS DATE), 0, 1, 1, 1, 1) mds&#13;&#10;&#9;&#9;LEFT JOIN hub.MEMBERSHIPS me  ON (me.MEMBERSHIP_ID = mds.MEMBERSHIP_ID AND me.ORG_ID = mds.ORG_ID)&#13;&#10;&#9;&#9;LEFT JOIN hub.CUSTOMERS cus ON (cus.CUSTOMER_ID = me.PRIMARY_MEMBER_CUSTOMER_ID AND me.ORG_ID=cus.ORG_ID)&#13;&#10;&#9;&#9;LEFT JOIN hub.PACKAGE_CATEGORIES pc ON (pc.PACKAGE_CATEGORY_ID = mds.CATEGORY_ID AND pc.ORG_ID = mds.ORG_ID)&#13;&#10;&#9;&#9;LEFT JOIN hub.PACKAGES p ON (p.PACKAGE_ID = mds.PACKAGE_ID AND P.ORG_ID = MDS.ORG_ID)&#13;&#10;&#9;&#9;LEFT JOIN hub.SITES s ON (s.SITE_ID = mds.SITE_ID AND s.ORG_ID = mds.ORG_ID)&#13;&#10;&#9;WHERE me.IS_PRIMARY = 'Yes'&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AUDIT_DATE" nullable="true" remarks="The date that the statistics have been generated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_ID" nullable="true" remarks="The ID of the site to which this package belongs" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_NAME" nullable="true" remarks="The name of the site to which this package belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="MEMBERSHIP_ID" nullable="true" remarks="the membership_id" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PRIMARY_MEMBER_CUSTOMER_ID" nullable="true" remarks="The primary customer ID to which the membership package is assigned." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PACKAGE_ID" nullable="true" remarks="The package ID of the customers membership." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="PACKAGE_NAME" nullable="true" remarks="The package name of the customers membership." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CATEGORY_ID" nullable="true" remarks="Package Category ID of the membership package." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="CATEGORY_NAME" nullable="true" remarks="Package Category of the membership package." size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="PASS_COUNT" nullable="true" remarks="The count of active membership passes" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="IS_RESIDENT" nullable="false" remarks="Customer's resident status." size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="IS_RETENTION_ELIGIBLE" nullable="true" remarks="Whether packages of this category should have retention eligibility." size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="IS_SUSPENDED" nullable="false" remarks="Whether membership is suspended as of the end of the audit date" size="3" type="varchar" typeCode="12"/>
      </table>
      <table catalog="ActiveHub" name="vw_membership_stats_eom_retention_only_by_category" numRows="0" remarks="Membership end of month statistics for retention-only packages, by category. Goes back to the end of January 4 years ago." schema="dbo" type="VIEW" viewSql="CREATE   VIEW [dbo].[vw_membership_stats_eom_retention_only_by_category]&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    mds.AUDIT_DATE,&#13;&#10;    mds.CATEGORY_ID PACKAGE_CATEGORY_ID,&#13;&#10;    pc.CATEGORY_NAME PACKAGE_CATEGORY_NAME,&#13;&#10;    mds.ACTIVE_COUNT ACTIVE,&#13;&#10;    mds.SUSPENDED_COUNT SUSPENDED&#13;&#10;    -- @StartDate, @EndDate, @RetentionEligibleOnly, @MonthEndsOnly, @IncludeSite, @IncludeCategory, @IncludePackage&#13;&#10;FROM hub.udf_MembershipEODStats(NULL, NULL, 1, 1, 0, 1, 0) mds&#13;&#10;LEFT JOIN hub.PACKAGE_CATEGORIES pc ON pc.PACKAGE_CATEGORY_ID = mds.CATEGORY_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AUDIT_DATE" nullable="true" remarks="The date that the statistics have been generated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package Category ID of the membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package Category of the membership package" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVE" nullable="true" remarks="The count of active memberships as of the end of the audit date (includes suspended memberships)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SUSPENDED" nullable="true" remarks="The count of suspended memberships as of the end of the audit date" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="vw_membership_stats_eom_retention_only_by_package" numRows="0" remarks="Membership end of month statistics for retention-only packages, by package (includes site and category). Goes back to the end of January 4 years ago." schema="dbo" type="VIEW" viewSql="CREATE   VIEW [dbo].[vw_membership_stats_eom_retention_only_by_package]&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    mds.AUDIT_DATE,&#13;&#10;    mds.SITE_ID,&#13;&#10;    s.SITE_NAME,&#13;&#10;    mds.CATEGORY_ID PACKAGE_CATEGORY_ID,&#13;&#10;    pc.CATEGORY_NAME PACKAGE_CATEGORY_NAME,&#13;&#10;    mds.PACKAGE_ID,&#13;&#10;    p.PACKAGE_NAME,&#13;&#10;    mds.ACTIVE_COUNT ACTIVE,&#13;&#10;    mds.SUSPENDED_COUNT SUSPENDED&#13;&#10;    -- @StartDate, @EndDate, @RetentionEligibleOnly, @MonthEndsOnly, @IncludeSite, @IncludeCategory, @IncludePackage&#13;&#10;FROM hub.udf_MembershipEODStats(NULL, NULL, 1, 1, 1, 1, 1) mds&#13;&#10;LEFT JOIN hub.PACKAGE_CATEGORIES pc ON pc.PACKAGE_CATEGORY_ID = mds.CATEGORY_ID&#13;&#10;LEFT JOIN hub.SITES s ON s.SITE_ID = mds.SITE_ID&#13;&#10;LEFT JOIN hub.PACKAGES p ON p.PACKAGE_ID = mds.PACKAGE_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AUDIT_DATE" nullable="true" remarks="The date that the statistics have been generated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SITE_ID" nullable="true" remarks="The ID of the site to which this package belongs" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_NAME" nullable="true" remarks="The name of the site to which this package belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package Category ID of the membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package Category of the membership package" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="PACKAGE_ID" nullable="true" remarks="The ID of the membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PACKAGE_NAME" nullable="true" remarks="Name of the membership package" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE" nullable="true" remarks="The count of active memberships as of the end of the audit date (includes suspended memberships)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="SUSPENDED" nullable="true" remarks="The count of suspended memberships as of the end of the audit date" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="vw_membership_stats_eom_retention_only_by_site" numRows="0" remarks="Membership end of month statistics for retention-only packages, by site. Goes back to the end of January 4 years ago." schema="dbo" type="VIEW" viewSql="CREATE   VIEW [dbo].[vw_membership_stats_eom_retention_only_by_site]&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    mds.AUDIT_DATE,&#13;&#10;    mds.SITE_ID,&#13;&#10;    s.SITE_NAME,&#13;&#10;    mds.ACTIVE_COUNT ACTIVE,&#13;&#10;    mds.SUSPENDED_COUNT SUSPENDED&#13;&#10;    -- @StartDate, @EndDate, @RetentionEligibleOnly, @MonthEndsOnly, @IncludeSite, @IncludeCategory, @IncludePackage&#13;&#10;FROM hub.udf_MembershipEODStats(NULL, NULL, 1, 1, 1, 0, 0) mds&#13;&#10;LEFT JOIN hub.SITES s ON s.SITE_ID = mds.SITE_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AUDIT_DATE" nullable="true" remarks="The date that the statistics have been generated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SITE_ID" nullable="true" remarks="The ID of the site to which this package belongs" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_NAME" nullable="true" remarks="The name of the site to which this package belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVE" nullable="true" remarks="The count of active memberships as of the end of the audit date (includes suspended memberships)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SUSPENDED" nullable="true" remarks="The count of suspended memberships as of the end of the audit date" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="vw_membership_stats_eom_retention_only_by_site_category" numRows="0" remarks="Membership end of month statistics for retention-only packages, by site and category. Goes back to the end of January 4 years ago." schema="dbo" type="VIEW" viewSql="CREATE   VIEW [dbo].[vw_membership_stats_eom_retention_only_by_site_category]&#13;&#10;AS&#13;&#10;SELECT&#13;&#10;    mds.AUDIT_DATE,&#13;&#10;    mds.SITE_ID,&#13;&#10;    s.SITE_NAME,&#13;&#10;    mds.CATEGORY_ID PACKAGE_CATEGORY_ID,&#13;&#10;    pc.CATEGORY_NAME PACKAGE_CATEGORY_NAME,&#13;&#10;    mds.ACTIVE_COUNT ACTIVE,&#13;&#10;    mds.SUSPENDED_COUNT SUSPENDED&#13;&#10;    -- @StartDate, @EndDate, @RetentionEligibleOnly, @MonthEndsOnly, @IncludeSite, @IncludeCategory, @IncludePackage&#13;&#10;FROM hub.udf_MembershipEODStats(NULL, NULL, 1, 1, 1, 1, 0) mds&#13;&#10;LEFT JOIN hub.PACKAGE_CATEGORIES pc ON pc.PACKAGE_CATEGORY_ID = mds.CATEGORY_ID&#13;&#10;LEFT JOIN hub.SITES s ON s.SITE_ID = mds.SITE_ID;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="AUDIT_DATE" nullable="true" remarks="The date that the statistics have been generated for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="SITE_ID" nullable="true" remarks="The ID of the site to which this package belongs" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SITE_NAME" nullable="true" remarks="The name of the site to which this package belongs" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="Package Category ID of the membership package" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PACKAGE_CATEGORY_NAME" nullable="true" remarks="Package Category of the membership package" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVE" nullable="true" remarks="The count of active memberships as of the end of the audit date (includes suspended memberships)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="SUSPENDED" nullable="true" remarks="The count of suspended memberships as of the end of the audit date" size="4" type="int" typeCode="4"/>
      </table>
      <table catalog="ActiveHub" name="WISHLISTS" numRows="0" remarks="The record of a customer's expressed interest in following the availability of an activity or program" schema="dbo" type="VIEW" viewSql="--KitManagerFileID=21490&#13;&#10;--FileName=dbo.WISHLISTS.sql&#13;&#10;--SubmittedBy=Rae Andrews (ACTIVE\randrews)&#13;&#10;&#13;&#10;CREATE   VIEW dbo.WISHLISTS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.WISHLIST_ID,&#13;&#10;    src.WISHLIST_PARTICIPANT_ID,&#13;&#10;    src.CUSTOMER_ID,&#13;&#10;    src.PARTICIPANT_CUSTOMER_ID,&#13;&#10;    src.ACTIVITY_ID,&#13;&#10;    src.PROGRAM_ID,&#13;&#10;    src.DATESTAMP,&#13;&#10;    src.DATESTAMP_DATE_ONLY,&#13;&#10;    src.ENROLLED,&#13;&#10;    src.ENROLLMENT_DATE,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.WISHLISTS src;&#13;&#10;(CONVERT([date],[DATESTAMP]))">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="WISHLIST_ID" nullable="true" remarks="Wish list ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="WISHLIST_PARTICIPANT_ID" nullable="true" remarks="Wish list participant ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMER_ID" nullable="true" remarks="Wish list customer ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PARTICIPANT_CUSTOMER_ID" nullable="true" remarks="Wish list participant customer ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ACTIVITY_ID" nullable="true" remarks="The activity ID that the customer is wish listed for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="PROGRAM_ID" nullable="true" remarks="The program ID that the customer is wish listed for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="DATESTAMP" nullable="true" remarks="The date and time that the wish list entry was created or updated" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="DATESTAMP_DATE_ONLY" nullable="true" remarks="The date that the wish list entry was created or updated" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ENROLLED" nullable="true" remarks="Whether the customer has been enrolled into the wish listed activity or program" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ENROLLMENT_DATE" nullable="true" remarks="The date that the customer was last enrolled into the wish listed activity or program" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="11" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="WISHLIST_ID" sequenceNumberInPK="1"/>
         <primaryKey column="WISHLIST_PARTICIPANT_ID" sequenceNumberInPK="2"/>
      </table>
      <table catalog="ActiveHub" name="WORKSTATION_GROUPS" numRows="0" remarks="Your organization's defined workstation groups" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.WORKSTATION_GROUPS &#13;&#10;AS &#13;&#10;SELECT &#13;&#10;    src.WORKSTATION_GROUP_ID,&#13;&#10;    src.WORKSTATION_GROUP_NAME,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.WORKSTATION_GROUPS src;&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="WORKSTATION_GROUP_ID" nullable="false" remarks="The workstation group ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="WORKSTATION_GROUP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="WORKSTATION_GROUP_NAME" nullable="true" remarks="The workstation group name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="2" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="WORKSTATION_GROUP_ID" sequenceNumberInPK="1"/>
      </table>
      <table catalog="ActiveHub" name="WORKSTATIONS" numRows="0" remarks="Master table showing defined workstations data" schema="dbo" type="VIEW" viewSql="CREATE   VIEW dbo.WORKSTATIONS &#13;&#10;AS &#13;&#10;SELECT&#13;&#10;    src.ACTIVE_HUB_KEY,&#13;&#10;    src.WORKSTATION_ID,&#13;&#10;    src.WORKSTATION_NAME,&#13;&#10;    src.SITE_ID,&#13;&#10;    si1.SITE_NAME,&#13;&#10;    src.CENTER_ID,&#13;&#10;    ce1.CENTER_NAME,&#13;&#10;    src.WORKSTATION_GROUP_ID,&#13;&#10;    wg1.WORKSTATION_GROUP_NAME,&#13;&#10;    src.FACILITY_ID,&#13;&#10;    fa1.FACILITY_NAME,&#13;&#10;    src.FACILITY_GROUP_ID,&#13;&#10;    rg1.RESERVATION_GROUP_NAME AS FACILITY_GROUP_NAME,&#13;&#10;    src.USE_SCANNING_AS_PRIMARY_SEARCH_METHOD,&#13;&#10;    src.IS_RETIRED,&#13;&#10;    src.ALLOW_CREDIT_MEMO_PAYMENTS,&#13;&#10;    src.ALLOW_PAYMENT_PLAN_PAYMENTS,&#13;&#10;    src.ALLOW_CASH_PAYMENTS,&#13;&#10;    src.ALLOW_CASH_PAYMENTS_WITH_CHANGE_CALCULATION,&#13;&#10;    src.ALLOW_CASH_REFUNDS,&#13;&#10;    src.ALLOW_EFT_PAYMENTS,&#13;&#10;    src.ALLOW_EFT_REFUNDS,&#13;&#10;    src.ACCEPT_ENCRYPTED_PAYMENTS_FROM,&#13;&#10;    src.PINPAD_DEVICE_INTERFACE_TYPE,&#13;&#10;    src.MAGENSA_SCAN_DEVICE_TYPE,&#13;&#10;    src.MAGENSA_ENABLE_SERVICE,&#13;&#10;    src.MAGENSA_SERVICE_PORT,&#13;&#10;    src.MAGENSA_SERVICE_TIMEOUT_SECONDS,&#13;&#10;    src.PINPAD_TERMINAL_NUMBER,&#13;&#10;    src.PINPAD_COM_PORT,&#13;&#10;    src.PINPAD_PIN_ENTRY_TIMEOUT_SECONDS,&#13;&#10;    src.PINPAD_DATA_ENTRY_TIMEOUT_SECONDS,&#13;&#10;    src.PINPAD_SWIPE_CARD_TIMEOUT_SECONDS,&#13;&#10;    src.PINPAD_ENABLE_LOG,&#13;&#10;    src.PINPAD_DATACAP_MERCHANT_ID,&#13;&#10;    src.PINPAD_DATACAP_NETEPAY_SERVER,&#13;&#10;    src.PINPAD_OPENEDGE_XWEBTERMINALID,&#13;&#10;    src.PINPAD_OPENEDGE_XWEBID,&#13;&#10;    src.PINPAD_OPENEDGE_XWEBAUTHKEY,&#13;&#10;    src.PINPAD_DEVICE_IP_ADDRESS,&#13;&#10;    src.PINPAD_DEVICE_IP_PORT,&#13;&#10;    src.ENABLE_DIGITAL_SIGNATURE,&#13;&#10;    src.DIGITAL_SIGNATURE_DEVICE,&#13;&#10;    src.ENTRYPOINT_ID,&#13;&#10;    ep1.ENTRY_POINT_NAME,&#13;&#10;    src.MAGSTRIPE_PREFIX,&#13;&#10;    src.MAGSTRIPE_SUFFIX,&#13;&#10;    src.DEFAULT_IMAGE_DIRECTORY,&#13;&#10;    src.ENABLE_ENTRY_SCREENING_DEVICE,&#13;&#10;    src.USE_LOCAL_SERIAL_PORT_FOR_GATE_KICKER,&#13;&#10;    src.ENABLE_MEMBERSHIP_SCANNING_SOUNDS,&#13;&#10;    uf1.DISPLAY_NAME AS BIRTHDAY_ALERT_SOUND_FILE,&#13;&#10;    uf2.DISPLAY_NAME AS STAFF_OR_CUSTOMER_NOTES_ALERT_SOUND_FILE,&#13;&#10;    uf3.DISPLAY_NAME AS PASS_AT_LAST_USE_SOUND_FILE,&#13;&#10;    src.PASS_DEBIT_BALANCE_GREATER_THAN_AMOUNT,&#13;&#10;    uf4.DISPLAY_NAME AS PASS_DEBIT_BALANCE_GREATER_THAN_SOUND_FILE,&#13;&#10;    src.PASS_EXPIRY_WITHIN_DAYS,&#13;&#10;    uf5.DISPLAY_NAME AS PASS_EXPIRY_WITHIN_DAYS_SOUND_FILE,&#13;&#10;    uf6.DISPLAY_NAME AS PASS_INVALID_SOUND_FILE,&#13;&#10;    uf7.DISPLAY_NAME AS PASS_MULTIPLE_SELECT_SOUND_FILE,&#13;&#10;    uf8.DISPLAY_NAME AS PASS_SCANNED_SAME_DAY_SOUND_FILE,&#13;&#10;    uf9.DISPLAY_NAME AS PASS_VALID_SOUND_FILE,&#13;&#10;    src.MULTI_VALIDATION_SCAN_OPTION,&#13;&#10;    src.MULTI_VALIDATION_CONFIRM_TIMEOUT_SECONDS,&#13;&#10;    src.POS_LAYOUT_ID,&#13;&#10;    pl1.POS_LAYOUT_NAME,&#13;&#10;    src.POS_PRINTER_CASH_DRAWER_COM_PORT,&#13;&#10;    src.OPEN_CASH_DRAWER_FOR_CASH,&#13;&#10;    src.OPEN_CASH_DRAWER_FOR_CREDIT_CARD,&#13;&#10;    src.OPEN_CASH_DRAWER_FOR_DEBIT_CARD,&#13;&#10;    src.OPEN_CASH_DRAWER_FOR_CREDIT_MEMO,&#13;&#10;    src.OPEN_CASH_DRAWER_FOR_CHECK,&#13;&#10;    src.OPEN_CASH_DRAWER_FOR_PAYMENT_FROM_ACCOUNT,&#13;&#10;    src.OPEN_CASH_DRAWER_FOR_OTHER_PAYMENT,&#13;&#10;    src.RECEIPT_PRINTER,&#13;&#10;    src.POS_RECEIPT_ID,&#13;&#10;    pr1.POS_RECEIPT_NAME,&#13;&#10;    src.CONFIRM_POS_RECEIPT_PRINT,&#13;&#10;    src.POS_CONTROL_CODE_ID,&#13;&#10;    pcc.POS_CONTROL_CODE_NAME,&#13;&#10;    src.ENABLE_POLE_DISPLAY,&#13;&#10;    src.POLE_DISPLAY_COM_PORT,&#13;&#10;    src.MESSAGE_FOR_POLE_DISPLAY,&#13;&#10;    src.CASH_SUMMARY_SHEET_LAYOUT_ID,&#13;&#10;    cssl.CASH_SUMMARY_SHEET_LAYOUT_NAME,&#13;&#10;    src.FLOAT_AMOUNT,&#13;&#10;    src.MULTI_USER_SINGLE_CASH_DRAWER,&#13;&#10;    src.CASH_SUMMARY_SHEET_PROMPT,&#13;&#10;    src.EQUIPMENT_LENDING_LAYOUT_ID,&#13;&#10;    pl2.POS_LAYOUT_NAME AS EQUIPMENT_LENDING_LAYOUT_NAME,&#13;&#10;    src.DEFAULT_CUSTOMER_SCAN_TYPE_ID,&#13;&#10;    (CASE&#13;&#10;        WHEN src.DEFAULT_CUSTOMER_SCAN_TYPE_ID = -2 THEN 'Membership Pass'&#13;&#10;        WHEN src.DEFAULT_CUSTOMER_SCAN_TYPE_ID = -1 THEN 'Customer ID'&#13;&#10;        ELSE akt.ALTERNATE_KEY_TYPE&#13;&#10;        END) AS DEFAULT_CUSTOMER_SCAN_TYPE_NAME,&#13;&#10;    src.ENABLE_EQUIPMENT_LENDING_SOUNDS,&#13;&#10;    uf10.DISPLAY_NAME AS EQUIPMENT_SIGN_OUT_SOUND_FILE,&#13;&#10;    uf11.DISPLAY_NAME AS EQUIPMENT_SIGN_IN_SOUND_FILE,&#13;&#10;    uf12.DISPLAY_NAME AS EQUIPMENT_PREREQUISITE_MISSING_SOUND_FILE,&#13;&#10;    uf13.DISPLAY_NAME AS EQUIPMENT_CUSTOMER_MAX_EXCEEDED_SOUND_FILE,&#13;&#10;    uf14.DISPLAY_NAME AS EQUIPMENT_INVENTORY_SHORT_SOUND_FILE,&#13;&#10;    src.ENABLE_FACILITY_WAITLIST_ALERT,&#13;&#10;    src.FACILITY_WAITLIST_ALERT_MAX_RESULTS,&#13;&#10;    src.FACILITY_WAITLIST_RESERVE_SHOW_WARNING,&#13;&#10;    src.WORKSTATION_SERVICE_PORT,&#13;&#10;    src.WORKSTATION_IP_ADDRESS,&#13;&#10;    src.LAST_SYNC_TIME,&#13;&#10;    src.ACTIVE_HUB_PROCESS_ID,&#13;&#10;    src.ORG_ID&#13;&#10;FROM &#13;&#10;    hub.WORKSTATIONS src&#13;&#10;    LEFT JOIN hub.CENTERS ce1 ON ce1.CENTER_ID = src.CENTER_ID&#13;&#10;    LEFT JOIN hub.SITES si1 ON si1.SITE_ID = src.SITE_ID&#13;&#10;    LEFT JOIN hub.FACILITIES fa1 ON fa1.FACILITY_ID = src.FACILITY_ID&#13;&#10;    LEFT JOIN hub.ENTRY_POINTS ep1 ON ep1.ENTRYPOINT_ID = src.ENTRYPOINT_ID&#13;&#10;    LEFT JOIN hub.RESERVATION_GROUPS rg1 ON rg1.RESERVATION_GROUP_ID = src.FACILITY_GROUP_ID&#13;&#10;    LEFT JOIN hub.ALTERNATE_KEY_TYPES akt ON akt.ALTERNATE_KEY_TYPE_ID = src.DEFAULT_CUSTOMER_SCAN_TYPE_ID&#13;&#10;    LEFT JOIN hub.WORKSTATION_GROUPS wg1 ON (wg1.WORKSTATION_GROUP_ID = src.WORKSTATION_GROUP_ID)&#13;&#10;    LEFT JOIN hub.POS_CONTROL_CODES pcc ON (pcc.POS_CONTROL_CODE_ID = src.POS_CONTROL_CODE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf1 ON (uf1.UPLOADED_FILE_ID = src.BIRTHDAY_ALERT_SOUND_FILE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf2 ON (uf2.UPLOADED_FILE_ID = src.STAFF_OR_CUSTOMER_NOTES_ALERT_SOUND_FILE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf3 ON (uf3.UPLOADED_FILE_ID = src.PASS_AT_LAST_USE_SOUND_FILE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf4 ON (uf4.UPLOADED_FILE_ID = src.PASS_DEBIT_BALANCE_GREATER_THAN_SOUND_FILE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf5 ON (uf5.UPLOADED_FILE_ID = src.PASS_EXPIRY_WITHIN_DAYS_SOUND_FILE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf6 ON (uf6.UPLOADED_FILE_ID = src.PASS_INVALID_SOUND_FILE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf7 ON (uf7.UPLOADED_FILE_ID = src.PASS_MULTIPLE_SELECT_SOUND_FILE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf8 ON (uf8.UPLOADED_FILE_ID = src.PASS_SCANNED_SAME_DAY_SOUND_FILE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf9 ON (uf9.UPLOADED_FILE_ID = src.PASS_VALID_SOUND_FILE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf10 ON (uf10.UPLOADED_FILE_ID = src.EQUIPMENT_SIGN_OUT_SOUND_FILE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf11 ON (uf11.UPLOADED_FILE_ID = src.EQUIPMENT_SIGN_IN_SOUND_FILE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf12 ON (uf12.UPLOADED_FILE_ID = src.EQUIPMENT_PREREQUISITE_MISSING_SOUND_FILE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf13 ON (uf13.UPLOADED_FILE_ID = src.EQUIPMENT_CUSTOMER_MAX_EXCEEDED_SOUND_FILE_ID)&#13;&#10;    LEFT JOIN hub.UPLOADED_FILES uf14 ON (uf14.UPLOADED_FILE_ID = src.EQUIPMENT_INVENTORY_SHORT_SOUND_FILE_ID)&#13;&#10;    LEFT JOIN hub.POS_RECEIPTS pr1 ON (pr1.POS_RECEIPT_ID = src.POS_RECEIPT_ID)&#13;&#10;    LEFT JOIN hub.CASH_SUMMARY_SHEET_LAYOUTS cssl ON (cssl.CASH_SUMMARY_SHEET_LAYOUT_ID = src.CASH_SUMMARY_SHEET_LAYOUT_ID)&#13;&#10;    LEFT JOIN hub.POS_LAYOUTS pl1 ON (pl1.POS_LAYOUT_ID = src.POS_LAYOUT_ID)&#13;&#10;    LEFT JOIN hub.POS_LAYOUTS pl2 ON (pl2.POS_LAYOUT_ID = src.EQUIPMENT_LENDING_LAYOUT_ID);&#13;&#10;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CENTER_ID" nullable="true" remarks="The ID of the center where the workstation is located" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CENTERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CENTER_NAME" nullable="true" remarks="The center where the workstation is located" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ALLOW_CREDIT_MEMO_PAYMENTS" nullable="true" remarks="Whether credit memo payments can be accepted at this workstation (Yes / No / Use Default)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ALLOW_PAYMENT_PLAN_PAYMENTS" nullable="true" remarks="Whether payment plan payments can be accepted at this workstation (Yes / No / Use Default)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ALLOW_CASH_PAYMENTS" nullable="true" remarks="Whether cash payments can be accepted at this workstation (Yes / No / Use Default)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ALLOW_CASH_PAYMENTS_WITH_CHANGE_CALCULATION" nullable="true" remarks="Whether cash payments with change calculated should be processed at this workstation (Yes / No / Use Default)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="ALLOW_CASH_REFUNDS" nullable="true" remarks="Whether cash refunds can be processed at this workstation (Yes / No / Use Default)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="ALLOW_EFT_PAYMENTS" nullable="true" remarks="Whether EFT payments can be accepted at this workstation (Yes / No / Use Default)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ALLOW_EFT_REFUNDS" nullable="true" remarks="Whether EFT refunds can be processed at this workstation (Yes / No / Use Default)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="ACCEPT_ENCRYPTED_PAYMENTS_FROM" nullable="true" remarks="The type of device that is used for processing encrypted payments from this workstation" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="ENABLE_ENTRY_SCREENING_DEVICE" nullable="true" remarks="Whether an entry screening device is enabled on this workstation (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="BIRTHDAY_ALERT_SOUND_FILE" nullable="true" remarks="The sound file to play if it is the scanning customer's birthday" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="BIRTHDAY_ALERT_SOUND_FILE_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="77" name="CONFIRM_POS_RECEIPT_PRINT" nullable="true" remarks="Whether the user should be prompted prior to printing POS receipts on this workstation (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="EQUIPMENT_CUSTOMER_MAX_EXCEEDED_SOUND_FILE_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="EQUIPMENT_INVENTORY_SHORT_SOUND_FILE_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="EQUIPMENT_PREREQUISITE_MISSING_SOUND_FILE_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="EQUIPMENT_SIGN_IN_SOUND_FILE_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="EQUIPMENT_SIGN_OUT_SOUND_FILE_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="FACILITY_ID" nullable="true" remarks="The ID of the facility where the workstation is located" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="FACILITY_NAME" nullable="true" remarks="The facility where the workstation is located" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="FACILITY_GROUP_ID" nullable="true" remarks="The ID of the facility reservation group that the workstation is associated with" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RESERVATION_GROUP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RESERVATION_GROUPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="FACILITY_GROUP_NAME" nullable="true" remarks="The facility reservation group that the workstation is associated with" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="IS_RETIRED" nullable="true" remarks="Whether this workstation has been retired (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="PASS_AT_LAST_USE_SOUND_FILE_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="PASS_DEBIT_BALANCE_GREATER_THAN_SOUND_FILE_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="PASS_INVALID_SOUND_FILE_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="PASS_MULTIPLE_SELECT_SOUND_FILE_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="PASS_SCANNED_SAME_DAY_SOUND_FILE_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="PASS_VALID_SOUND_FILE_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="WORKSTATION_ID" nullable="true" remarks="Workstation ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ACCOUNT_CREDIT_HISTORY"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="AR_SCHEDULED_HEADERS"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CREDIT_CARD_PROCESSING_LOG"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_NOTES"/>
            <child catalog="ActiveHub" column="CREATION_WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CUSTOMER_THIRD_PARTY_BILLING_LINKS"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="GIFT_CARDS"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="LOCKER_SCHEDULES"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_SALES_DETAILS"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_GL_POSTINGS"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_HEADERS"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="LAST_UPDATED_WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SAVED_CREDIT_CARD_HISTORY"/>
            <child catalog="ActiveHub" column="UPDATED_WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SAVED_CREDIT_CARD_HISTORY"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SAVED_CREDIT_CARDS"/>
            <child catalog="ActiveHub" column="SERVER_WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USAGE_LOG"/>
            <child catalog="ActiveHub" column="USER_WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SYSTEM_USAGE_LOG"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="WORKSTATION_NAME" nullable="true" remarks="Workstation name" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SITE_ID" nullable="true" remarks="The ID of the site where the workstation is located" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SITE_NAME" nullable="true" remarks="The site where the workstation is located" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="WORKSTATION_GROUP_ID" nullable="true" remarks="The ID of the workstation group that the workstation is associated with" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="WORKSTATION_GROUP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="WORKSTATION_GROUPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="WORKSTATION_GROUP_NAME" nullable="true" remarks="The workstation group that the workstation is associated with" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="USE_SCANNING_AS_PRIMARY_SEARCH_METHOD" nullable="true" remarks="Whether this workstation uses scanning as its primary customer search method (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="PINPAD_DEVICE_INTERFACE_TYPE" nullable="true" remarks="The PIN pad device type in use on this workstation" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="MAGENSA_SCAN_DEVICE_TYPE" nullable="true" remarks="The Magensa MagneSafe device type in use on this workstation" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="MAGENSA_ENABLE_SERVICE" nullable="true" remarks="Whether the MagneSafe service is enabled on this workstation (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="MAGENSA_SERVICE_PORT" nullable="true" remarks="The MageSafe service port number that is being used on this workstation" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="MAGENSA_SERVICE_TIMEOUT_SECONDS" nullable="true" remarks="The MageSafe service timeout interval in seconds" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="PINPAD_TERMINAL_NUMBER" nullable="true" remarks="The PIN pad terminal number or ID" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="PINPAD_COM_PORT" nullable="true" remarks="The PIN pad COM port number configured on this workstation" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="PINPAD_PIN_ENTRY_TIMEOUT_SECONDS" nullable="true" remarks="The PIN pad PIN entry timeout in seconds" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="PINPAD_DATA_ENTRY_TIMEOUT_SECONDS" nullable="true" remarks="The PIN pad timeout in seconds" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="PINPAD_SWIPE_CARD_TIMEOUT_SECONDS" nullable="true" remarks="The PIN pad swipe card timeout in seconds" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="PINPAD_ENABLE_LOG" nullable="true" remarks="Whether PIN pad client logging is enabled for troubleshooting (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="PINPAD_DATACAP_MERCHANT_ID" nullable="true" remarks="DataCap merchant ID" size="80" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="PINPAD_DATACAP_NETEPAY_SERVER" nullable="true" remarks="DataCap NETePay server IP address" size="120" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="PINPAD_OPENEDGE_XWEBTERMINALID" nullable="true" remarks="OpenEdge terminal XWebTerminalID" size="120" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="PINPAD_OPENEDGE_XWEBID" nullable="true" remarks="OpenEdge terminal XWebID" size="120" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="PINPAD_OPENEDGE_XWEBAUTHKEY" nullable="true" remarks="OpenEdge terminal XWebAuthKey" size="120" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="PINPAD_DEVICE_IP_ADDRESS" nullable="true" remarks="PIN pad device IP address" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="PINPAD_DEVICE_IP_PORT" nullable="true" remarks="PIN pad device IP port number" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="ENABLE_DIGITAL_SIGNATURE" nullable="true" remarks="Whether a digital signature device is enabled on this workstation (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="DIGITAL_SIGNATURE_DEVICE" nullable="true" remarks="The digital signature device type connected this this workstation" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="ENTRYPOINT_ID" nullable="true" remarks="The entry point ID that this workstation is a scanning station for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ENTRYPOINT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ENTRY_POINTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="ENTRY_POINT_NAME" nullable="true" remarks="The entry point that this workstation is a scanning station for" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="MAGSTRIPE_PREFIX" nullable="true" remarks="The magstripe prefix for cards swiped at this workstation" size="4" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="MAGSTRIPE_SUFFIX" nullable="true" remarks="The magstripe suffix for cards swiped at this workstation" size="4" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="DEFAULT_IMAGE_DIRECTORY" nullable="true" remarks="The default image directory for images on this workstation" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="USE_LOCAL_SERIAL_PORT_FOR_GATE_KICKER" nullable="true" remarks="Whether a local serial COM port is used for a gate kicker on this workstation (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="ENABLE_MEMBERSHIP_SCANNING_SOUNDS" nullable="true" remarks="Whether membership scanning sounds are enabled on this workstation (Yes / No / Use Default)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="STAFF_OR_CUSTOMER_NOTES_ALERT_SOUND_FILE" nullable="true" remarks="The sound file to play if there are notes or alerts to display for the scanning customer" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="PASS_AT_LAST_USE_SOUND_FILE" nullable="true" remarks="The sound file to play if the scanning customer's last available use for their membership" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="54" name="PASS_DEBIT_BALANCE_GREATER_THAN_AMOUNT" nullable="true" remarks="The maximum debit balance for the customer's membership pass above which a sound should play" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="PASS_DEBIT_BALANCE_GREATER_THAN_SOUND_FILE" nullable="true" remarks="The sound file to play if the customer's membership pass has a debit balance above the configured amount" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="PASS_EXPIRY_WITHIN_DAYS" nullable="true" remarks="The number of days prior to a customer's membership pass expiration date after which a sound should play" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="PASS_EXPIRY_WITHIN_DAYS_SOUND_FILE" nullable="true" remarks="The sound file to play if the customer's membership pass will expire within the configured number of days" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="PASS_EXPIRY_WITHIN_DAYS_SOUND_FILE_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="PASS_INVALID_SOUND_FILE" nullable="true" remarks="The sound file to play if the scanned membership pass is not valid" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="PASS_MULTIPLE_SELECT_SOUND_FILE" nullable="true" remarks="The sound file to play if the customer has multiple membership passes valid at this entry point" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="PASS_SCANNED_SAME_DAY_SOUND_FILE" nullable="true" remarks="The sound file to play if the customer's membership pass is scanned again within the same day" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="61" name="PASS_VALID_SOUND_FILE" nullable="true" remarks="The sound file to play if the scanned membership pass is valid" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="MULTI_VALIDATION_SCAN_OPTION" nullable="true" remarks="The multiple valid pass option for this workstation (Use Default / Auto Validation / Prompt for Package Selection)" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="MULTI_VALIDATION_CONFIRM_TIMEOUT_SECONDS" nullable="true" remarks="The number of seconds to wait for package selection before one will be auto selected" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="POS_LAYOUT_ID" nullable="true" remarks="The POS layout ID assigned to this workstation" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="POS_LAYOUT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_LAYOUTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="65" name="POS_LAYOUT_NAME" nullable="true" remarks="The POS layout assigned to this workstation" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="66" name="POS_PRINTER_CASH_DRAWER_COM_PORT" nullable="true" remarks="The COM port number on this workstation that is used for the POS printer and/or cash drawer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="67" name="OPEN_CASH_DRAWER_FOR_CASH" nullable="true" remarks="Whether the POS cash drawer should be opened for a cash payment (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="68" name="OPEN_CASH_DRAWER_FOR_CREDIT_CARD" nullable="true" remarks="Whether the POS cash drawer should be opened for a credit card payment (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="69" name="OPEN_CASH_DRAWER_FOR_DEBIT_CARD" nullable="true" remarks="Whether the POS cash drawer should be opened for a debit card payment (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="70" name="OPEN_CASH_DRAWER_FOR_CREDIT_MEMO" nullable="true" remarks="Whether the POS cash drawer should be opened for a credit memo payment (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="71" name="OPEN_CASH_DRAWER_FOR_CHECK" nullable="true" remarks="Whether the POS cash drawer should be opened for a check payment (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="72" name="OPEN_CASH_DRAWER_FOR_PAYMENT_FROM_ACCOUNT" nullable="true" remarks="Whether the POS cash drawer should be opened for a payment from account (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="73" name="OPEN_CASH_DRAWER_FOR_OTHER_PAYMENT" nullable="true" remarks="Whether the POS cash drawer should be opened for other payment types (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="74" name="RECEIPT_PRINTER" nullable="true" remarks="The type of receipt printer assigned to this workstation (Windows Only / POS Only / Either / Both)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="75" name="POS_RECEIPT_ID" nullable="true" remarks="The POS receipt ID assigned to this workstation" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="POS_RECEIPT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_RECEIPTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="76" name="POS_RECEIPT_NAME" nullable="true" remarks="The POS receipt name assigned to this workstation" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="78" name="POS_CONTROL_CODE_ID" nullable="true" remarks="The POS control code set ID to be used on this workstation" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="POS_CONTROL_CODE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_CONTROL_CODES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="79" name="POS_CONTROL_CODE_NAME" nullable="true" remarks="The POS control code set to be used on this workstation" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="80" name="ENABLE_POLE_DISPLAY" nullable="true" remarks="Whether a POS pole display is enabled on this workstation (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="81" name="POLE_DISPLAY_COM_PORT" nullable="true" remarks="The COM port number on this workstation that is used for the POS pole display" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="82" name="MESSAGE_FOR_POLE_DISPLAY" nullable="true" remarks="The message to be displayed on the POS pole display" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="83" name="CASH_SUMMARY_SHEET_LAYOUT_ID" nullable="true" remarks="The cash summary sheet layout ID that is assigned to this workstation" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CASH_SUMMARY_SHEET_LAYOUT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="CASH_SUMMARY_SHEET_LAYOUTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="84" name="CASH_SUMMARY_SHEET_LAYOUT_NAME" nullable="true" remarks="The cash summary sheet layout that is assigned to this workstation" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="85" name="FLOAT_AMOUNT" nullable="true" remarks="The default float amount for this workstation" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="86" name="MULTI_USER_SINGLE_CASH_DRAWER" nullable="true" remarks="Whether a single cash drawer is used for multiple users on this workstation (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="87" name="CASH_SUMMARY_SHEET_PROMPT" nullable="true" remarks="When the user should be prompted to start a cash summary sheet (When user logged on / When payment is taken)" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="88" name="EQUIPMENT_LENDING_LAYOUT_ID" nullable="true" remarks="The POS layout ID assigned to this workstation for equipment lending" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="POS_LAYOUT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="POS_LAYOUTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="89" name="EQUIPMENT_LENDING_LAYOUT_NAME" nullable="true" remarks="The POS layout assigned to this workstation for equipment lending" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="90" name="DEFAULT_CUSTOMER_SCAN_TYPE_ID" nullable="true" remarks="The ID of the default method of scanning for a customer during equipment lending" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="ALTERNATE_KEY_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="91" name="DEFAULT_CUSTOMER_SCAN_TYPE_NAME" nullable="true" remarks="The default method of scanning for a customer during equipment lending" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="92" name="ENABLE_EQUIPMENT_LENDING_SOUNDS" nullable="true" remarks="Whether equipment lending sounds are enabled on this workstation (Yes/No)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="93" name="EQUIPMENT_SIGN_OUT_SOUND_FILE" nullable="true" remarks="The sound file to play for successful equipment lending sign-out" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="94" name="EQUIPMENT_SIGN_IN_SOUND_FILE" nullable="true" remarks="The sound file to play for successful equipment lending sign-in" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="95" name="EQUIPMENT_PREREQUISITE_MISSING_SOUND_FILE" nullable="true" remarks="The sound file to play as a warning for a missing sign-out prerequisite" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="96" name="EQUIPMENT_CUSTOMER_MAX_EXCEEDED_SOUND_FILE" nullable="true" remarks="The sound file to play as a warning if the customer has exceeded their equipment sign-out quantity limit" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="97" name="EQUIPMENT_INVENTORY_SHORT_SOUND_FILE" nullable="true" remarks="The sound file to play as a warning if the attempting to sign-out a quantity of equipment in excess of available inventory" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="98" name="ENABLE_FACILITY_WAITLIST_ALERT" nullable="true" remarks="Whether facility waitlisting is enabled at this workstation (Yes / No / Use Default)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="99" name="FACILITY_WAITLIST_ALERT_MAX_RESULTS" nullable="true" remarks="The maximum facility waitlist alert results that should be displayed" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="100" name="FACILITY_WAITLIST_RESERVE_SHOW_WARNING" nullable="true" remarks="Whether the user should be warned it attempting to reserve a waitlisted facility timeslot (Yes / No / Use Default)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="101" name="WORKSTATION_SERVICE_PORT" nullable="true" remarks="The port number assigned to be used by the workstation service" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="102" name="WORKSTATION_IP_ADDRESS" nullable="true" remarks="The IP address of the server that is assigned this internet workstation for CUI" size="35" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="103" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time Hub record was last modified" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="104" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="105" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="STAFF_OR_CUSTOMER_NOTES_ALERT_SOUND_FILE_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="dbo" table="UPLOADED_FILES"/>
         </column>
         <primaryKey column="WORKSTATION_ID" sequenceNumberInPK="1"/>
      </table>
   </tables>
</database>
