<?xml version="1.0" encoding="UTF-8"?><database name="ActiveHub" schema="hub" 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="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="CUSTOMERS"/>
         </column>
         <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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="7" 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="8" 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="9" 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="10" 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="hub" table="RECEIPT_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="hub" table="RECEIPT_PAYMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="hub" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="hub" table="ACCOUNT_CREDIT_HISTORY"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="15" 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="hub" table="ACCOUNT_CREDIT_HISTORY"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="ACCOUNT_CREDIT_ID" sequenceNumberInPK="2"/>
         <primaryKey column="LINKED_CREDIT_ID" sequenceNumberInPK="3"/>
         <index name="ACCOUNT_CREDIT_HISTORY_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="ACCOUNT_CREDIT_HISTORY_ACCOUNT_CREDIT_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="ACCOUNT_CREDIT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACCOUNT_CREDIT_HISTORY_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="COMPANY_ID"/>
         </index>
         <index name="ACCOUNT_CREDIT_HISTORY_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="ACCOUNT_CREDIT_HISTORY_LINKED_ACCOUNT_CREDIT_ID_IX" unique="false">
            <column ascending="true" name="LINKED_ACCOUNT_CREDIT_ID"/>
         </index>
         <index name="ACCOUNT_CREDIT_HISTORY_LINKED_CREDIT_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="LINKED_CREDIT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACCOUNT_CREDIT_HISTORY_RECEIPT_DETAIL_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_DETAIL_ID"/>
         </index>
         <index name="ACCOUNT_CREDIT_HISTORY_RECEIPT_HEADER_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_HEADER_ID"/>
         </index>
         <index name="ACCOUNT_CREDIT_HISTORY_RECEIPT_PAYMENT_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_PAYMENT_ID"/>
         </index>
         <index name="ACCOUNT_CREDIT_HISTORY_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="ACCOUNT_CREDIT_HISTORY_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="ACCOUNT_CREDIT_HISTORY_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
         <index name="ACCOUNT_CREDIT_HISTORY_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="WORKSTATION_ID"/>
         </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="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="ACTIVITY_DATES"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_DIVISIONS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_ENROLLMENTS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_FEES"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_PRIVATE_LESSONS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_RESERVATION_PATTERNS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_TEAM_CATEGORIES"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_RENTAL_BLOCKS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="INTEREST_LISTS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUES"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PREREQUISITES"/>
            <child catalog="ActiveHub" column="PREREQUISITE_ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PREREQUISITES"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TEAMS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WISHLISTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" name="ACTIVITYNAME" nullable="true" remarks="The name of this activity" size="240" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" 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="7" 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="8" 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="hub" table="ACTIVITY_TYPES"/>
         </column>
         <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="hub" table="ACTIVITY_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="hub" table="ACTIVITY_SUB_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="hub" table="ACTIVITY_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="hub" table="INSTRUCTORS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="hub" table="SUPERVISORS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="27" 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="28" 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="29" name="REVENUE" nullable="true" remarks="The revenue amount for the activity excluding tax" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="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="33" 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="34" 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="35" 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="hub" table="SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" 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="hub" table="CHILD_SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" 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="38" 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="39" name="GENDER_INDEX" nullable="true" remarks="The gender ID of the activity" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="GENDERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" 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="41" 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="42" 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="43" 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="44" 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="45" 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="46" 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="47" 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="48" 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="49" 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="50" 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="51" 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="52" 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="53" 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="54" 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="55" 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="56" 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="57" 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="58" 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="59" 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="60" 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="61" 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="62" 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="63" 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="64" 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="65" 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="66" 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="67" 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="68" 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="69" 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="70" 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="71" 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="72" 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="73" 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="74" 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="75" 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="76" 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="77" 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="78" 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="79" 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="80" 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="81" 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="82" 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="83" 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="84" 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="85" 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="86" 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="87" 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="88" 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="89" 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="90" 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="91" 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="92" 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="93" 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="94" 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="95" 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="96" 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="97" 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="98" 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="99" 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="100" 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="101" 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="102" 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="103" 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="hub" table="GRADES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="104" 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="hub" table="GRADES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="105" 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="106" 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="107" 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="108" 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="109" 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="110" 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="111" 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="112" 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="113" 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="114" 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="115" 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="116" 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="117" 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="3" id="118" 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="119" 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="120" 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="121" 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="122" 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="123" 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="124" 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="3" id="125" 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="126" 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="127" 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="128" 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="129" 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="130" 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="131" 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="132" 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="133" 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="134" 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="135" 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="136" 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="137" name="PRIVATE_LESSON_WEEKDAYS" nullable="true" remarks="Whether private lessons are configured for specific days of the week (when overriding activity dates)" size="7" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="138" name="PRIVATE_LESSON_WEEKS_OF_MONTH" nullable="true" remarks="Whether private lessons are configured for specific weeks of the month (when overriding activity dates)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="139" 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="140" 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="141" 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="142" 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="143" 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="144" 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="145" 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="146" 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="147" 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="148" 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="149" 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="150" 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="151" 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="152" 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="153" 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="154" 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="155" 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="156" name="WEEKDAYS" 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="157" 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="158" 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="159" 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="160" 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="161" 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="162" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="163" name="ACTIVITY_GROUP_ID" nullable="true" remarks="The activity group ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_GROUP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_GROUPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="164" 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="4" id="165" 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="0" id="166" name="IGNOREMAXIMUM" nullable="true" remarks="Ignore maximum enrollment setting" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="167" name="IGNORE_PARENTS_MAXIMUM" nullable="true" remarks="Ignore parent activity maximum setting" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="168" name="IGNORE_AGE_RESTRICTION_FOR_CONTACT" nullable="true" remarks="Ignore age restriction for contact" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="169" name="IGNORE_AGE_RESTRICTION_FOR_GROUP_CONTACT" nullable="true" remarks="Ignore age restriction for group contact" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="170" name="IGNOREMAXENROLLEDONLINE" nullable="true" remarks="Ignore max enrolled online setting" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="171" 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="172" name="DISPLAY_DATE" nullable="true" remarks="DISPLAY DATE for activity" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="173" 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="174" name="LOCAL_PRIORITY_REGISTRATION" nullable="true" remarks="Whether the activity allows for priority registration" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="175" 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="176" 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="177" name="CANCELLATION_REASON_DATE" nullable="true" remarks="Activty cancellation date." size="16" type="datetime" typeCode="93"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="ACTIVITY_ID" sequenceNumberInPK="2"/>
         <index name="ACTIVITIES_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="ACTIVITIES_ACTIVITY_CATEGORY_ID_ACTIVITY_OTHER_CATEGORY_ID_BEGINNINGDATE_IX" unique="false">
            <column ascending="true" name="ACTIVITY_CATEGORY_ID"/>
            <column ascending="true" name="ACTIVITY_OTHER_CATEGORY_ID"/>
            <column ascending="true" name="BEGINNINGDATE"/>
         </index>
         <index name="ACTIVITIES_ACTIVITY_DEPARTMENT_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_DEPARTMENT_ID"/>
         </index>
         <index name="ACTIVITIES_Activity_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="ACTIVITY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACTIVITIES_ACTIVITY_OTHER_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_OTHER_CATEGORY_ID"/>
         </index>
         <index name="ACTIVITIES_ACTIVITY_TYPE_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_TYPE_ID"/>
         </index>
         <index name="ACTIVITIES_ACTIVITYNUMBER_IX" unique="false">
            <column ascending="true" name="ACTIVITYNUMBER"/>
         </index>
         <index name="ACTIVITIES_BEGINNINGDATE_ENDINGDATE_IX" unique="false">
            <column ascending="true" name="BEGINNINGDATE"/>
            <column ascending="true" name="ENDINGDATE"/>
         </index>
         <index name="ACTIVITIES_CHILD_SEASON_ID_IX" unique="false">
            <column ascending="true" name="CHILD_SEASON_ID"/>
         </index>
         <index name="ACTIVITIES_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="ACTIVITIES_INSTRUCTOR_ID_IX" unique="false">
            <column ascending="true" name="INSTRUCTOR_ID"/>
         </index>
         <index name="ACTIVITIES_ORG_ID_IX" unique="false">
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACTIVITIES_PARENT_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="PARENT_ACTIVITY_ID"/>
         </index>
         <index name="ACTIVITIES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="ACTIVITIES_SEASON_ID_IX" unique="false">
            <column ascending="true" name="SEASON_ID"/>
         </index>
         <index name="ACTIVITIES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="ACTIVITIES_SUPERVISOR_ID_IX" unique="false">
            <column ascending="true" name="SUPERVISOR_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_ATTENDANCE_COUNTS" numRows="0" remarks="Attendance counts of an Activity" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="2" name="ACTIVITY_DATE_ID" nullable="true" remarks="Activity date ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ACTIVITY_ATTENDANCE_COUNT_ID" sequenceNumberInPK="2"/>
         <index name="PK_ACTIVITY_ATTENDANCE_COUNTS" unique="true">
            <column ascending="true" name="ACTIVITY_ATTENDANCE_COUNT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_CATEGORIES" numRows="0" remarks="Your organization's defined activity categories" schema="hub" type="TABLE">
         <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="hub" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="ACTIVITY_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="ACTIVITY_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="INTEREST_LISTS"/>
            <child catalog="ActiveHub" column="ACTIVITY_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PREREQUISITES"/>
            <child catalog="ActiveHub" column="ACTIVITY_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="12" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVITY_CATEGORY_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="ACTIVITY_CATEGORIES_ACTIVITY_CATEGORY_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="ACTIVITY_CATEGORY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACTIVITY_CATEGORIES_DEFAULT_EXPENSE_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="DEFAULT_EXPENSE_GLACCOUNT_ID"/>
         </index>
         <index name="ACTIVITY_CATEGORIES_DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID"/>
         </index>
         <index name="ACTIVITY_CATEGORIES_DEFAULT_REVENUE_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="DEFAULT_REVENUE_GLACCOUNT_ID"/>
         </index>
         <index name="ACTIVITY_CATEGORIES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_DATES" numRows="0" remarks="Detailed class times and locations per activity" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="hub" 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="hub" 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="hub" 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="(getdate())" 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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="ACTIVITY_DATE_ID" sequenceNumberInPK="2"/>
         <index name="ACTIVITY_DATES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="ACTIVITY_DATES_ACTIVITY_DATE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="ACTIVITY_DATE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACTIVITY_DATES_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="ACTIVITY_DATES_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="ACTIVITY_DATES_FACILITY_SCHEDULE_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_SCHEDULE_ID"/>
         </index>
         <index name="ACTIVITY_DATES_nc_cs_ix" unique="false">
            <column ascending="true" name="ACTIVITY_DATE_ID"/>
            <column ascending="true" name="ACTIVITY_ID"/>
            <column ascending="true" name="FACILITY_ID"/>
            <column ascending="true" name="FACILITY_SCHEDULE_ID"/>
         </index>
         <index name="ACTIVITY_DATES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_DEPARTMENTS" numRows="0" remarks="Your organization's defined activity departments" schema="hub" type="TABLE">
         <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="hub" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="ACTIVITY_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="ACTIVITY_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="ACTIVITY_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAMS"/>
            <child catalog="ActiveHub" column="DEFAULT_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SCHEDULE_TYPES"/>
            <child catalog="ActiveHub" column="ACTIVITY_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="0" id="6" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVITY_DEPARTMENT_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="ACTIVITY_DEPARTMENTS_ACTIVITY_DEPARTMENT_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="ACTIVITY_DEPARTMENT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACTIVITY_DEPARTMENTS_DEFAULT_EXPENSE_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="DEFAULT_EXPENSE_GLACCOUNT_ID"/>
         </index>
         <index name="ACTIVITY_DEPARTMENTS_DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID"/>
         </index>
         <index name="ACTIVITY_DEPARTMENTS_DEFAULT_REVENUE_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="DEFAULT_REVENUE_GLACCOUNT_ID"/>
         </index>
         <index name="ACTIVITY_DEPARTMENTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_DIVISIONS" numRows="0" remarks="Your organization's defined activity divisions" schema="hub" type="TABLE">
         <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="hub" 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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" 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="5" name="GENDER_INDEX" nullable="true" remarks="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="hub" table="GENDERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="0" id="7" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVITY_DIVISION_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="ACTIVITY_DIVISIONS_ACTIVITY_DIVISION_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="ACTIVITY_DIVISION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACTIVITY_DIVISIONS_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="ACTIVITY_DIVISIONS_GENDER_INDEX_IX" unique="false">
            <column ascending="true" name="GENDER_INDEX"/>
         </index>
         <index name="ACTIVITY_DIVISIONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_ENROLLMENTS" numRows="0" remarks="Showing the activity enrollments by customer" schema="hub" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="System Generated key value.  No significance to Enrollment data" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" 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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="RECEIPT_NUMBER" nullable="true" remarks="Receipt number of the last transaction" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="((0))" digits="0" id="5" 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="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="12" 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="(getdate())" 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="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="16" 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="17" 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="18" 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="19" 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="20" 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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" 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="hub" table="TRANSACTIONS"/>
         </column>
         <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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" 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="24" 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="25" 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="3" id="26" 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="27" 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="3" id="28" 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="29" 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="30" 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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" 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="32" 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="33" 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="hub" table="RECEIPT_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" 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="35" name="WAITLIST_POSITION" nullable="true" remarks="The current waitlist position" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="36" 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="37" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" 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="39" 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="hub" table="TEAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" 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="41" 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="0" id="42" 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"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="TRANSACTION_ID" sequenceNumberInPK="2"/>
         <index name="ACTIVITY_ENROLLMENTS_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="ACTIVITY_ENROLLMENTS_Activity_ID_ix" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="RECEIPT_NUMBER"/>
         </index>
         <index name="ACTIVITY_ENROLLMENTS_Customer_ID_ix" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="ACTIVITY_ENROLLMENTS_ENROLLMENT_STATUS_REGISTERED_DATE_ONLY_IX" unique="false">
            <column ascending="true" name="ENROLLMENT_STATUS"/>
            <column ascending="true" name="REGISTERED_DATE_ONLY"/>
         </index>
         <index name="ACTIVITY_ENROLLMENTS_ORG_ID_IX" unique="false">
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACTIVITY_ENROLLMENTS_ORIGINAL_RECEIPT_HEADER_ID_IX" unique="false">
            <column ascending="true" name="ORIGINAL_RECEIPT_HEADER_ID"/>
         </index>
         <index name="ACTIVITY_ENROLLMENTS_RECEIPT_HEADER_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_HEADER_ID"/>
         </index>
         <index name="ACTIVITY_ENROLLMENTS_REGISTRATION_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="REGISTRATION_TRANSACTION_ID"/>
         </index>
         <index name="ACTIVITY_ENROLLMENTS_ROOT_TRANSACTION_ID_ACTIVITY_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="ROOT_TRANSACTION_ID"/>
            <column ascending="true" name="ACTIVITY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACTIVITY_ENROLLMENTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="ACTIVITY_ENROLLMENTS_TEAM_ID_IX" unique="false">
            <column ascending="true" name="TEAM_ID"/>
         </index>
         <index name="ACTIVITY_ENROLLMENTS_TRANSACTION_ID_ix" unique="false">
            <column ascending="true" name="TRANSACTION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_FEES" numRows="0" remarks="Master table showing defined activity fees data" schema="hub" type="TABLE">
         <column autoUpdated="true" 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_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="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="ACTIVITY_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CHARGE_NAME" nullable="true" remarks="Charge name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="8" 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="9" name="DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="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="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="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="29" 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="30" 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="31" 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="32" 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="33" 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="34" 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="35" 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="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="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="hub" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" 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="40" 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="hub" table="ACTIVITY_TEAM_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" 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="42" 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="43" 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="44" 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="45" 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="46" 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="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="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="49" 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="50" 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="51" 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="52" 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="53" 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="54" 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="55" 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="56" 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="57" 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="58" 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="59" 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="60" 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="61" 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="62" 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="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" 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="64" name="DISCOUNT_GROUP_NUMBER" nullable="true" remarks="Discount group number" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="65" 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="66" 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="67" 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="68" 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="69" 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="70" 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="71" name="FEE_DESCRIPTION" nullable="true" remarks="The description of this fee" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="(getdate())" digits="3" id="72" 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="73" 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="74" 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="75" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="ACTIVITY_FEE_ID" sequenceNumberInPK="2"/>
         <index name="ACTIVITY_FEES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="ACTIVITY_FEES_ACTIVITY_FEE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="ACTIVITY_FEE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACTIVITY_FEES_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="ACTIVITY_FEES_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_ID"/>
         </index>
         <index name="ACTIVITY_FEES_CUSTOMER_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_TYPE_ID"/>
         </index>
         <index name="ACTIVITY_FEES_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="ACTIVITY_FEES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="ACTIVITY_FEES_SYSTEM_GL_ACCOUNT_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_GROUPS" numRows="0" remarks="Contains information on defined activity groups for shared registration capacity" schema="hub" type="TABLE">
         <column autoUpdated="true" 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_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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="ACTIVITY_GROUP_ID" sequenceNumberInPK="2"/>
         <index name="ACTIVITY_GROUPS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="ACTIVITY_GROUPS_ACTIVITY_GROUP_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="ACTIVITY_GROUP_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACTIVITY_GROUPS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_INSTRUCTORS" numRows="0" remarks="Provides the link between INSTRUCTORS and the ACTIVITIES they are assigned to" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="ACTIVITY_INSTRUCTOR_ID" nullable="false" remarks="The unique ID of this record in this object" 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="ACTIVITY_ID" nullable="true" remarks="The unique ID of the activity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" name="SHOW_INSTRUCTOR_ONLINE" nullable="true" remarks="Indicates whether the Instructor is displayed for online enrollment" 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="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ACTIVITY_INSTRUCTOR_ID" sequenceNumberInPK="2"/>
         <index name="PK_ACTIVITY_INSTRUCTORS" unique="true">
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="ACTIVITY_INSTRUCTOR_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_PARTICIPANT_ZONES" numRows="0" remarks="Participant Zones that are eligible for priority registration for an activity" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="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="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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ACTIVITY_PARTICIPANT_ZONE_ID" sequenceNumberInPK="2"/>
         <index name="PK_ACTIVITY_PARTICIPANT_ZONES" unique="true">
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="ACTIVITY_PARTICIPANT_ZONE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_PASS_FAIL_GRADES" numRows="0" remarks="Your organization's defined activity pass fail grades" schema="hub" type="TABLE">
         <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="hub" 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="0" id="7" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="ACTIVITY_PASS_FAIL_GRADES_ACTIVITY_PASS_FAIL_GRADE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="ACTIVITY_PASS_FAIL_GRADE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACTIVITY_PASS_FAIL_GRADES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_PRIVATE_LESSONS" numRows="0" remarks="Instructor time slot reservation data for private lesson enrollments" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" 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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="LESSON_START_DATE" nullable="true" remarks="Lesson start date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="LESSON_START_TIME" nullable="true" remarks="Lesson start time" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="LESSON_END_DATE" nullable="true" remarks="Lesson end date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="LESSON_END_TIME" nullable="true" remarks="Lesson end time" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="9" 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="10" 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="11" 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="12" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="hub" table="TRANSACTIONS"/>
         </column>
         <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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" 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="hub" table="ACTIVITY_PRIVATE_LESSONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" 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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="FACILITY_SCHEDULE_ID" sequenceNumberInPK="2"/>
         <index name="ACTIVITY_PRIVATE_LESSONS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="ACTIVITY_PRIVATE_LESSONS_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="ACTIVITY_PRIVATE_LESSONS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="ACTIVITY_PRIVATE_LESSONS_FACILITY_SCHEDULE_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_SCHEDULE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACTIVITY_PRIVATE_LESSONS_INSTRUCTOR_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="INSTRUCTOR_FACILITY_ID"/>
         </index>
         <index name="ACTIVITY_PRIVATE_LESSONS_LOCATION_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="LOCATION_FACILITY_ID"/>
         </index>
         <index name="ACTIVITY_PRIVATE_LESSONS_PARENT_FACILITY_SCHEDULE_ID_IX" unique="false">
            <column ascending="true" name="PARENT_FACILITY_SCHEDULE_ID"/>
         </index>
         <index name="ACTIVITY_PRIVATE_LESSONS_ROOT_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="ROOT_TRANSACTION_ID"/>
         </index>
         <index name="ACTIVITY_PRIVATE_LESSONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="ACTIVITY_PRIVATE_LESSONS_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
         <index name="ACTIVITY_PRIVATE_LESSONS_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_ID"/>
         </index>
         <index name="ACTIVITY_PRIVATE_LESSONS_TRANSACTION_SITE_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_RESERVATION_PATTERNS" numRows="0" remarks="Reservation patterns for generating activity class dates" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="hub" 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="hub" 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="(getdate())" 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"/>
         <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"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="ACTIVITY_RESERVATION_PATTERN_ID" sequenceNumberInPK="2"/>
         <primaryKey column="ACTIVITY_RESERVATION_PATTERN_FACILITY_ID" sequenceNumberInPK="3"/>
         <primaryKey column="ACTIVITY_RESERVATION_PATTERN_DATE_ID" sequenceNumberInPK="4"/>
         <index name="ACTIVITY_RESERVATION_PATTERNS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="ACTIVITY_RESERVATION_PATTERNS_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="ACTIVITY_RESERVATION_PATTERNS_ACTIVITY_RESERVATION_PATTERN_DATE_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_RESERVATION_PATTERN_DATE_ID"/>
         </index>
         <index name="ACTIVITY_RESERVATION_PATTERNS_ACTIVITY_RESERVATION_PATTERN_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_RESERVATION_PATTERN_FACILITY_ID"/>
         </index>
         <index name="ACTIVITY_RESERVATION_PATTERNS_ACTIVITY_RESERVATION_PATTERN_ID_FACILITY_ID_DATE_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_RESERVATION_PATTERN_ID"/>
            <column ascending="true" name="ACTIVITY_RESERVATION_PATTERN_DATE_ID"/>
            <column ascending="true" name="ACTIVITY_RESERVATION_PATTERN_FACILITY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACTIVITY_RESERVATION_PATTERNS_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="ACTIVITY_RESERVATION_PATTERNS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_SCHEDULED_FEE_RATES" numRows="0" remarks="Table containing Activity Fee Changes based on Activity Start Date" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="ACTIVITY_SCHEDULED_FEE_RATE_ID" nullable="false" remarks="Unique ID for this change record" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SCHEDULEDFEES_ID" nullable="true" remarks="Links to ACTIVITY_FEES.ACTIVITY_FEES_ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="4" name="SCHEDULED_FEE" nullable="true" remarks="Amount of fee" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" 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="6" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ACTIVITY_SCHEDULED_FEE_RATE_ID" sequenceNumberInPK="2"/>
         <index name="PK_ACTIVITY_SCHEDULED_FEE_RATES" unique="true">
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="ACTIVITY_SCHEDULED_FEE_RATE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_SUB_CATEGORIES" numRows="0" remarks="Your organization's defined activity sub-categories" schema="hub" type="TABLE">
         <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="hub" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="ACTIVITY_SUB_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="SUB_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="INTEREST_LISTS"/>
            <child catalog="ActiveHub" column="ACTIVITY_SUB_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PREREQUISITES"/>
            <child catalog="ActiveHub" column="SUB_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="0" id="4" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="ACTIVITY_SUB_CATEGORIES_ACTIVITY_SUB_CATEGORY_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="ACTIVITY_SUB_CATEGORY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACTIVITY_SUB_CATEGORIES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_TEAM_CATEGORIES" numRows="0" remarks="Your organization's defined activity team categories" schema="hub" type="TABLE">
         <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="hub" table="ACTIVITY_FEES"/>
            <child catalog="ActiveHub" column="ACTIVITY_TEAM_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="TEAM_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" 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="0" id="5" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="ACTIVITY_TEAM_CATEGORIES_ACTIVITY_TEAM_CATEGORY_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="ACTIVITY_TEAM_CATEGORY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACTIVITY_TEAM_CATEGORIES_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="ACTIVITY_TEAM_CATEGORIES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="ACTIVITY_TEAM_CATEGORIES_TEAM_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="TEAM_CATEGORY_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITY_TYPES" numRows="0" remarks="Your organization's defined activity types" schema="hub" type="TABLE">
         <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="hub" 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="0" id="5" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVITY_TYPE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="ACTIVITY_TYPES_ACTIVITY_TYPE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="ACTIVITY_TYPE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACTIVITY_TYPES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ACTIVITYATTENDANCE" numRows="0" remarks="Attendance details of an Activity" schema="hub" type="TABLE">
         <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="TRANSACTION_ID" nullable="true" remarks="Transaction ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ACTIVITY_INSTRUCTOR_ID" nullable="true" remarks="Activity Instructor ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" 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="6" 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="7" 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="8" name="SITE_ID" nullable="true" remarks="Site ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ATTENDANCE_CODE_ID" nullable="true" remarks="Attendance code ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ABSENT" nullable="true" remarks="Absent status" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="CHECKINSYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who checked in customer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="CHECKINDATETIME" nullable="true" remarks="Check in datetime" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="CHECK_IN_SOURCE_TYPE" nullable="true" remarks="Check in source type(MOBILE-0, AUI-1)" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="CHECKOUTSYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who checked out customer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" name="CHECKOUTDATETIME" nullable="true" remarks="Check out datetime" size="16" type="datetime" typeCode="93"/>
         <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"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVITYATTENDANCE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="ACTIVITYATTENDANCE_ACTIVITYATTENDANCE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="ACTIVITYATTENDANCE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ACTIVITYATTENDANCE_ORG_ID_IX" unique="false">
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="AGE_CATEGORIES" numRows="0" remarks="Your organization's defined age categories" schema="hub" type="TABLE">
         <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="hub" 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="0" id="4" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="AGE_CATEGORY_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="AGE_CATEGORIES_AGE_CATEGORY_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="AGE_CATEGORY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="AGE_CATEGORIES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="AGENCY_RECEIPTDETAILS" numRows="0" remarks="Additional tax &amp; fee details" schema="hub" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="true" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="AGENCY_RECEIPTDETAIL_ID" nullable="false" remarks="Agency Receipt detail ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="RECEIPTDETAIL_ID" nullable="true" remarks="The ID of the receipt detail that contains the additional fee details" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" id="4" name="ELECTRONIC_PAYMENT_AMOUNT" nullable="true" remarks="The amount of this charge item" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="5" name="ELECTRONIC_PAYMENT_FEE" nullable="true" remarks="The default fee or discount amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="6" name="ABSORBED_CONVENIENCE_FEE" nullable="true" remarks="Amount of convenience fee" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="7" name="CONVENIENCE_FEE" nullable="true" remarks="Amount of convenience fee that was absorbed" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="8" name="TRANSACTION_FEE" nullable="true" remarks="Transaction fee amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="WHICH_TAX" nullable="true" remarks="The tax code ID that this is charged against" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="10" name="CONVENIENCE_FEE_INDIRECT_TAX_SURCHARGE" nullable="true" remarks="Convenience fee indirect tax surcharge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="11" name="TRANSACTION_FEE_INDIRECT_TAX" nullable="true" remarks="Transaction fee indirect tax for this transaction" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="12" name="CONVENIENCE_FEE_INDIRECT_TAX_ABSORBED" nullable="true" remarks="Convenience fee indirect tax absorbed" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="3" id="15" 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="16" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <primaryKey column="AGENCY_RECEIPTDETAIL_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="AGENCY_RECEIPTDETAILS_AGENCY_RECEIPTDETAIL_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="AGENCY_RECEIPTDETAIL_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ALTERNATE_KEY_STATUSES" numRows="0" remarks="Your organization's defined customer alternate key statuses" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="ALTERNATE_KEY_STATUS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_ALTERNATE_KEYS"/>
            <child catalog="ActiveHub" column="ALTERNATE_KEY_STATUS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_PREREQUISITE_ALTERNATE_KEY_STATUSES"/>
            <child catalog="ActiveHub" column="ALTERNATE_KEY_STATUS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="ALTERNATE_KEY_STATUS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="(getdate())" 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="9" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="ALTERNATE_KEY_STATUS_ID" sequenceNumberInPK="2"/>
         <index name="ALTERNATE_KEY_STATUSES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="ALTERNATE_KEY_STATUSES_ALTERNATE_KEY_STATUS_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="ALTERNATE_KEY_STATUS_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ALTERNATE_KEY_STATUSES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ALTERNATE_KEY_TYPES" numRows="0" remarks="Your organization's defined alternate key types" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_ALTERNATE_KEYS"/>
            <child catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_PREREQUISITES"/>
            <child catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGE_LINKS"/>
            <child catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PREREQUISITES"/>
            <child catalog="ActiveHub" column="DEFAULT_CUSTOMER_SCAN_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="ALTERNATE_KEY_TYPE_ID" sequenceNumberInPK="2"/>
         <index name="ALTERNATE_KEY_TYPES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="ALTERNATE_KEY_TYPES_ALTERNATE_KEY_TYPE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="ALTERNATE_KEY_TYPE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ALTERNATE_KEY_TYPES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ANET_DELETE_TRACKING_LOG" numRows="0" remarks="Internal processing table" schema="hub" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="ACTIVE HUB ID identity value auto generated by system" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ORG_ID" nullable="true" remarks="Unique ID assigned to the ORG" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="DELETE_TRACKING_LOG_ID" nullable="true" remarks="ID OF THE ANET_DELETE_TRACKING_LOG table. This is unique to individual org." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SOURCE_TABLENAME" nullable="true" remarks="ORG Table name from which records were deleted" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="SOURCE_ID_VALUE" nullable="true" remarks="ID of the record deleted" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="MIN_SOURCE_ID_VALUE" nullable="true" remarks="If the table is bulk deleted, min ID value for that batch delete" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="MAX_SOURCE_ID_VALUE" nullable="true" remarks="If the table is bulk deleted, min ID value for that batch delete" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="NUM_DELETED_RECORDS" nullable="true" remarks="If the table is bulk deleted, number of records in that batch delete" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="SYSTEMUTCTIMESTAMP" nullable="true" remarks="Date and time of the delete" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="9" name="meta_created" nullable="true" remarks="Date and time when the record was pulled from source system" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="meta_updated" nullable="true" remarks="Date and time when the updated record was pulled from source system" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="(getdate())" digits="3" id="11" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time when the record was pulled into AHUB" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="Clover RUN ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <index name="ANET_DELETE_TRACKING_LOG_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="ANET_DELETE_TRACKING_LOG_Org_ID_DELETE_TRACKING_LOG_ID" unique="false">
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="DELETE_TRACKING_LOG_ID"/>
         </index>
         <index name="ANET_DELETE_TRACKING_LOG_Org_ID_SOURCE_TABLENAME_SOURCE_ID_VALUE_SYSTEMUTCTIMESTAMP" unique="false">
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="SOURCE_TABLENAME"/>
            <column ascending="true" name="SOURCE_ID_VALUE"/>
            <column ascending="true" name="SYSTEMUTCTIMESTAMP"/>
         </index>
         <index name="ANET_DELETE_TRACKING_LOG_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="ANET_DELETE_TRACKING_LOG_SOURCE_TABLENAME_IX" unique="false">
            <column ascending="true" name="SOURCE_TABLENAME"/>
         </index>
      </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="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="CUSTOMER_THIRD_PARTY_BILLING_LINKS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="AR_SCHEDULED_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" 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="7" 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="8" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="hub" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" 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="hub" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" 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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" 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="hub" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" 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="19" name="DESCRIPTION" nullable="true" remarks="The description of the payment plan charge" size="1600" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" 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="21" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" 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="27" 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="28" name="PERMIT_ID" nullable="true" remarks="The ID of the permit that generated the payment plan charge" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="MEMBERSHIP_ID" nullable="true" remarks="The ID of the membership that generated the payment plan charge" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="AR_SCHEDULED_HEADER_ID" sequenceNumberInPK="2"/>
         <primaryKey column="AR_SCHEDULED_DETAIL_ID" sequenceNumberInPK="3"/>
         <primaryKey column="DATE_DUE" sequenceNumberInPK="4"/>
         <index name="AR_SCHEDULED_DETAILS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_AR_SCHEDULED_DETAIL_ID_IX" unique="false">
            <column ascending="true" name="AR_SCHEDULED_DETAIL_ID"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_AR_SCHEDULED_HEADER_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="AR_SCHEDULED_HEADER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_MEMBERSHIP_ID_IX" unique="false">
            <column ascending="true" name="MEMBERSHIP_ID"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_PAYER_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="PAYER_COMPANY_ID"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_PAYER_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="PAYER_CUSTOMER_ID"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_PERMIT_ID_IX" unique="false">
            <column ascending="true" name="PERMIT_ID"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_POSPRODUCT_ID_IX" unique="false">
            <column ascending="true" name="POSPRODUCT_ID"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_PROGRAM_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_ID"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_RECEIPT_DETAIL_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_DETAIL_ID"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_RECEIPT_HEADER_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_HEADER_ID"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_REVENUE_SITE_ID_IX" unique="false">
            <column ascending="true" name="REVENUE_SITE_ID"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_TRANSACTION_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_COMPANY_ID"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_TRANSACTION_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_CUSTOMER_ID"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_ID"/>
         </index>
         <index name="AR_SCHEDULED_DETAILS_TRANSACTION_SITE_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="AR_SCHEDULED_HEADERS" numRows="0" remarks="Contains summary information of payment plans which have an outstanding balance" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="AR_SCHEDULED_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CREDIT_CARD_PROCESSING_LOG"/>
            <child catalog="ActiveHub" column="AR_SCHEDULED_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="CARD_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="hub" table="RECEIPT_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" 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="6" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="11" 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="4" id="12" 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="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="hub" table="PERMITS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" 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="hub" table="MEMBERSHIPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="21" 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="22" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" 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"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="AR_SCHEDULED_HEADER_ID" sequenceNumberInPK="2"/>
         <index name="AR_SCHEDULED_HEADERS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="AR_SCHEDULED_HEADERS_AR_SCHEDULED_HEADER_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="AR_SCHEDULED_HEADER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="AR_SCHEDULED_HEADERS_MEMBERSHIP_ID_IX" unique="false">
            <column ascending="true" name="MEMBERSHIP_ID"/>
         </index>
         <index name="AR_SCHEDULED_HEADERS_PAYER_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="PAYER_COMPANY_ID"/>
         </index>
         <index name="AR_SCHEDULED_HEADERS_PAYER_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="PAYER_CUSTOMER_ID"/>
         </index>
         <index name="AR_SCHEDULED_HEADERS_PERMIT_ID_IX" unique="false">
            <column ascending="true" name="PERMIT_ID"/>
         </index>
         <index name="AR_SCHEDULED_HEADERS_RECEIPT_HEADER_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_HEADER_ID"/>
         </index>
         <index name="AR_SCHEDULED_HEADERS_RECEIPT_PAYMENT_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_PAYMENT_ID"/>
         </index>
         <index name="AR_SCHEDULED_HEADERS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="AR_SCHEDULED_HEADERS_SAVED_CREDIT_CARD_ID_IX" unique="false">
            <column ascending="true" name="SAVED_CREDIT_CARD_ID"/>
         </index>
         <index name="AR_SCHEDULED_HEADERS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="AR_SCHEDULED_HEADERS_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
         <index name="AR_SCHEDULED_HEADERS_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ARTRANSACTIONS" numRows="0" remarks="AR Transaction details" schema="hub" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ARTRANSACTION_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="ORIGINALARTRANSACTION_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="RECEIPTHEADER_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="ARSCHEDULEHEADER_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="RECEIPTDETAIL_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="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="7" name="TRANSACTIONCUSTOMER_ID" nullable="true" remarks="The ID of the customer that the payment plan charge is for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="TRANSACTIONCOMPANY_ID" nullable="true" remarks="The ID of the company that the payment plan charge is for" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="10" 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="11" name="TRANSACTIONTYPE" nullable="true" remarks="The transaction type of the transaction" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="12" 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="13" 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="14" 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="15" 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="0" id="16" name="VOIDED" nullable="true" remarks="Whether the transaction has been voided (1 = voided / 0 = not voided)" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="VOIDEDBY" 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="3" id="18" name="VOIDEDON" 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="19" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" 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="(getdate())" 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"/>
         <primaryKey column="ARTRANSACTION_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="ARTRANSACTIONS_ARTRANSACTION_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="ARTRANSACTION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CAMPAIGNS" numRows="0" remarks="Your organization's defined campaigns" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="4" 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="5" 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="6" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="8" 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="9" 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="10" 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="11" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="hub" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="14" 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="15" 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="16" 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="17" 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="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" 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="19" 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="20" 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="21" 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="22" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID" nullable="true" remarks="System account package ID of 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="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="23" name="TOTAL_AMOUNT_RAISED" nullable="true" remarks="The total amount contributed to the campaign" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="CAMPAIGN_ID" sequenceNumberInPK="2"/>
         <index name="CAMPAIGNS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="CAMPAIGNS_CAMPAIGN_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="CAMPAIGN_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CAMPAIGNS_FUND_SCHOLARSHIP_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="FUND_SCHOLARSHIP_CHARGE_ID"/>
         </index>
         <index name="CAMPAIGNS_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="CAMPAIGNS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="CAMPAIGNS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="CAMPAIGNS_SYSTEM_GL_ACCOUNT_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CARD_TYPES" numRows="0" remarks="Your organization's defined card types" schema="hub" type="TABLE">
         <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="hub" table="AR_SCHEDULED_HEADERS"/>
            <child catalog="ActiveHub" column="CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PRELIMINARY_DRAFTS"/>
            <child catalog="ActiveHub" column="CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SAVED_CREDIT_CARD_HISTORY"/>
            <child catalog="ActiveHub" column="CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="0" id="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CARD_TYPE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="CARD_TYPES_CARD_TYPE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="CARD_TYPE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CARD_TYPES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CASH_SUMMARY_SHEET_LAYOUTS" numRows="0" remarks="Your organization's defined cash summary sheet layouts" schema="hub" type="TABLE">
         <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="hub" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="0" id="9" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="CASH_SUMMARY_SHEET_LAYOUTS_CASH_SUMMARY_SHEET_LAYOUT_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="CASH_SUMMARY_SHEET_LAYOUT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CASH_SUMMARY_SHEET_LAYOUTS_OVER_CREDIT_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="OVER_CREDIT_GLACCOUNT_ID"/>
         </index>
         <index name="CASH_SUMMARY_SHEET_LAYOUTS_OVER_DEBIT_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="OVER_DEBIT_GLACCOUNT_ID"/>
         </index>
         <index name="CASH_SUMMARY_SHEET_LAYOUTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="CASH_SUMMARY_SHEET_LAYOUTS_SHORT_CREDIT_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="SHORT_CREDIT_GLACCOUNT_ID"/>
         </index>
         <index name="CASH_SUMMARY_SHEET_LAYOUTS_SHORT_DEBIT_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="SHORT_DEBIT_GLACCOUNT_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CENTERS" numRows="0" remarks="Your organization's defined centers" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="CHILD_WATCH_ROOMS"/>
            <child catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITIES"/>
            <child catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LOCKER_ROOMS"/>
            <child catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="POS_PRODUCTS_CENTER_QUANTITY"/>
            <child catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RESERVATION_GROUPS"/>
            <child catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="STANDARD_CHARGES"/>
            <child catalog="ActiveHub" column="CENTER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" 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="7" name="CITY" nullable="true" remarks="The city of the center." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="STATE" nullable="true" remarks="The state of the center." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="10" name="COUNTRY" nullable="true" remarks="The country of the center." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="12" 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="13" 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="14" 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="hub" table="GEOGRAPHIC_AREAS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="15" 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="16" 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="17" 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="hub" table="SUPERVISORS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="27" 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="28" 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="29" 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="30" 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="31" 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="32" 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="33" 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="34" 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="35" 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="36" 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="37" 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="38" 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="39" 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="40" 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="41" 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="42" 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="43" 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="44" 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="45" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="WEB_PAGE_URL" nullable="true" remarks="The web site URL to be displayed for this center" size="3000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" 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="52" 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="53" 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="54" 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="55" 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="56" 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="57" 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="58" 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="59" 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="60" 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="61" 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="62" 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="63" 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="64" 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="65" 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="66" name="CENTER_NOTES" nullable="true" remarks="User entered notes related to the center" size="8000" type="varchar" typeCode="12"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="CENTER_ID" sequenceNumberInPK="2"/>
         <index name="CENTERS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="CENTERS_CENTER_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="CENTER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CENTERS_GEOGRAPHIC_AREA_ID_IX" unique="false">
            <column ascending="true" name="GEOGRAPHIC_AREA_ID"/>
         </index>
         <index name="CENTERS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="CENTERS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="CENTERS_SUPERVISOR_ID_IX" unique="false">
            <column ascending="true" name="SUPERVISOR_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CHARGE_QUALIFICATION_LINKS" numRows="0" remarks="Master table containing defined charge and fee qualification links" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" table="PRODUCT_SUBCLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" 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="35" name="PACKAGE_FEE_PACKAGE_ID" nullable="true" remarks="Package fee package ID" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="ACTIVITY_FEE_PACKAGE_ID" sequenceNumberInPK="2"/>
         <primaryKey column="CHARGE_QUALIFICATION_LINK_ID" sequenceNumberInPK="3"/>
         <primaryKey column="PACKAGE_FEE_PACKAGE_ID" sequenceNumberInPK="4"/>
         <index name="CHARGE_QUALIFICATION_LINKS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_ACTIVITY_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_CATEGORY_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_ACTIVITY_DEPARTMENT_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_DEPARTMENT_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_ACTIVITY_FEE_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_FEE_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_ACTIVITY_FEE_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_FEE_PACKAGE_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_ACTIVITY_SITE_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_SITE_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_ACTIVITY_SUB_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_SUB_CATEGORY_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_ALTERNATE_KEY_STATUS_ID_IX" unique="false">
            <column ascending="true" name="ALTERNATE_KEY_STATUS_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_ALTERNATE_KEY_TYPE_ID_IX" unique="false">
            <column ascending="true" name="ALTERNATE_KEY_TYPE_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_CHARGE_QUALIFICATION_LINK_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_QUALIFICATION_LINK_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_CHILD_SEASON_ID_IX" unique="false">
            <column ascending="true" name="CHILD_SEASON_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_CUSTOMER_SCHOLARSHIP_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_SCHOLARSHIP_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_GLOBAL_DISCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLOBAL_DISCOUNT_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_MEMBER_PREFILL_PACKAGE_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="MEMBER_PREFILL_PACKAGE_CATEGORY_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_MEMBER_PREFILL_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="MEMBER_PREFILL_PACKAGE_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_nc_cs_ix" unique="false">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
            <column ascending="true" name="ACTIVE_HUB_PROCESS_ID"/>
            <column ascending="true" name="ACTIVITY_CATEGORY_ID"/>
            <column ascending="true" name="ACTIVITY_DEPARTMENT_ID"/>
            <column ascending="true" name="ACTIVITY_FEE_ID"/>
            <column ascending="true" name="ACTIVITY_FEE_PACKAGE_ID"/>
            <column ascending="true" name="ACTIVITY_ID"/>
            <column ascending="true" name="ACTIVITY_SITE_ID"/>
            <column ascending="true" name="ACTIVITY_SUB_CATEGORY_ID"/>
            <column ascending="true" name="ALTERNATE_KEY_STATUS_ID"/>
            <column ascending="true" name="ALTERNATE_KEY_TYPE_ID"/>
            <column ascending="true" name="CHARGE_ID"/>
            <column ascending="true" name="CHARGE_QUALIFICATION_LINK_ID"/>
            <column ascending="true" name="CHILD_SEASON_ID"/>
            <column ascending="true" name="CUSTOMER_SCHOLARSHIP_ID"/>
            <column ascending="true" name="GLOBAL_DISCOUNT_ID"/>
            <column ascending="true" name="LAST_SYNC_TIME"/>
            <column ascending="true" name="MEMBER_PREFILL_PACKAGE_CATEGORY_ID"/>
            <column ascending="true" name="MEMBER_PREFILL_PACKAGE_ID"/>
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="PACKAGE_CATEGORY_ID"/>
            <column ascending="true" name="PACKAGE_FEE_ID"/>
            <column ascending="true" name="PACKAGE_FEE_PACKAGE_ID"/>
            <column ascending="true" name="PACKAGE_ID"/>
            <column ascending="true" name="PRODUCT_CLASS_ID"/>
            <column ascending="true" name="PRODUCT_DEPARTMENT_ID"/>
            <column ascending="true" name="PRODUCT_ID"/>
            <column ascending="true" name="PRODUCT_SUB_CLASS_ID"/>
            <column ascending="true" name="PROGRAM_FEE_ID"/>
            <column ascending="true" name="PROGRAM_ID"/>
            <column ascending="true" name="PROGRAM_TYPE_ID"/>
            <column ascending="true" name="QUALIFICATION_TYPE"/>
            <column ascending="true" name="QUALIFICATION_TYPE_ID"/>
            <column ascending="true" name="ROW_VERSION"/>
            <column ascending="true" name="SEASON_ID"/>
            <column ascending="true" name="STANDARD_CHARGE_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_PACKAGE_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_CATEGORY_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_PACKAGE_FEE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_FEE_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_PACKAGE_FEE_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_FEE_PACKAGE_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_PRODUCT_CLASS_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_CLASS_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_PRODUCT_DEPARTMENT_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_DEPARTMENT_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_PRODUCT_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_PRODUCT_SUB_CLASS_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_SUB_CLASS_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_PROGRAM_FEE_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_FEE_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_PROGRAM_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_PROGRAM_TYPE_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_TYPE_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_QUALIFICATION_TYPE_ID_IX" unique="false">
            <column ascending="true" name="QUALIFICATION_TYPE_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_SEASON_ID_IX" unique="false">
            <column ascending="true" name="SEASON_ID"/>
         </index>
         <index name="CHARGE_QUALIFICATION_LINKS_STANDARD_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="STANDARD_CHARGE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CHARGES" numRows="0" remarks="Master table showing defined charges data" schema="hub" type="TABLE">
         <column autoUpdated="true" 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_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="hub" table="ACTIVITY_FEES"/>
            <child catalog="ActiveHub" column="FUND_SCHOLARSHIP_CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CAMPAIGNS"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_BATCHES"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPONS"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_SCHOLARSHIPS"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LOCKER_FEES"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGE_FEES"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_FEES"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="STANDARD_CHARGES"/>
            <child catalog="ActiveHub" column="EARLY_REGISTRATION_DISCOUNT_CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="USAGE_FEES"/>
            <child catalog="ActiveHub" column="FEE_CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="5" 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="6" name="DEFAULT_QUANTITY" nullable="true" remarks="The default quantity" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="8" 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="9" 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="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="0" id="12" 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="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="27" 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="28" 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="29" 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="30" 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="31" 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="32" 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="33" 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="34" 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="35" 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="36" 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="37" 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="38" 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="39" 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="40" 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="41" 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="42" 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="43" 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="44" 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="45" 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="46" 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="47" 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="48" 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="49" 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="50" 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="51" 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="52" 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="53" 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="54" 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="55" 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="56" 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="57" 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="58" 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="59" 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="60" 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="61" 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="62" 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="63" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" 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="65" 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="66" 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="67" 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="68" 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="69" 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="70" 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="71" 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="72" 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="73" 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="74" 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="75" 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="76" 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="77" 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="hub" table="SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="78" 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="hub" table="CHILD_SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="79" 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="80" 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="81" 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="82" 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="83" 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="84" 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="85" 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="86" 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="87" 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="88" 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="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="89" 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="90" 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="91" 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="92" 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="93" 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="94" 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="hub" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="95" 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="96" 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="97" 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="98" 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="99" 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="100" 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="101" 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="102" 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="103" 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="104" 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="105" 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="106" 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="107" 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="108" 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="109" 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="110" 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="111" 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="112" 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="113" 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="(getdate())" digits="3" id="114" 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="115" 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="116" 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="117" 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="118" 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="119" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="120" name="CHARGEDESCRIPTION" nullable="true" remarks="The description of the charge" size="8000" type="varchar" typeCode="12"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="CHARGE_ID" sequenceNumberInPK="2"/>
         <index name="CHARGES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="CHARGES_CHARGE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="CHARGE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CHARGES_CHILD_SEASON_ID_IX" unique="false">
            <column ascending="true" name="CHILD_SEASON_ID"/>
         </index>
         <index name="CHARGES_CUSTOMER_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_TYPE_ID"/>
         </index>
         <index name="CHARGES_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="CHARGES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="CHARGES_SEASON_ID_IX" unique="false">
            <column ascending="true" name="SEASON_ID"/>
         </index>
         <index name="CHARGES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="CHARGES_SYSTEM_GL_ACCOUNT_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CHILD_SEASONS" numRows="0" remarks="Your organization's defined child seasons" schema="hub" type="TABLE">
         <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="hub" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="CHILD_SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHARGES"/>
            <child catalog="ActiveHub" column="CHILD_SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAMS"/>
            <child catalog="ActiveHub" column="EARLY_REGISTRATION_UNTIL_CHILD_SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="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="5" 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="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="0" id="16" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="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="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="hub" table="SEASONS"/>
         </column>
         <primaryKey column="CHILD_SEASON_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="CHILD_SEASONS_CHILD_SEASON_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="CHILD_SEASON_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CHILD_SEASONS_PARENT_SEASON_ID_IX" unique="false">
            <column ascending="true" name="PARENT_SEASON_ID"/>
         </index>
         <index name="CHILD_SEASONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CHILD_WATCH_REGISTRATIONS" numRows="0" remarks="Child-watch registration data by room and customer" schema="hub" type="TABLE">
         <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="hub" table="CHILD_WATCH_ROOMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" 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="5" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="PARENT_LOCATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="9" 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="10" 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="11" 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="hub" table="MEMBERSHIP_USAGE"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="12" 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="13" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="15" 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="16" 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="17" 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="18" 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="hub" table="MEMBERSHIP_USAGE"/>
         </column>
         <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="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="CHILD_WATCH_REGISTRATIONS_CHILD_WATCH_REGISTRATION_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="CHILD_WATCH_REGISTRATION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CHILD_WATCH_REGISTRATIONS_CHECK_IN_MEMBERSHIP_USAGE_ID_IX" unique="false">
            <column ascending="true" name="CHECK_IN_MEMBERSHIP_USAGE_ID"/>
         </index>
         <index name="CHILD_WATCH_REGISTRATIONS_CHECK_IN_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="CHECK_IN_SYSTEMUSER_ID"/>
         </index>
         <index name="CHILD_WATCH_REGISTRATIONS_CHECK_OUT_MEMBERSHIP_USAGE_ID_IX" unique="false">
            <column ascending="true" name="CHECK_OUT_MEMBERSHIP_USAGE_ID"/>
         </index>
         <index name="CHILD_WATCH_REGISTRATIONS_CHECK_OUT_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="CHECK_OUT_SYSTEMUSER_ID"/>
         </index>
         <index name="CHILD_WATCH_REGISTRATIONS_CHILD_WATCH_ROOM_ID_IX" unique="false">
            <column ascending="true" name="CHILD_WATCH_ROOM_ID"/>
         </index>
         <index name="CHILD_WATCH_REGISTRATIONS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="CHILD_WATCH_REGISTRATIONS_DROP_OFF_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="DROP_OFF_CUSTOMER_ID"/>
         </index>
         <index name="CHILD_WATCH_REGISTRATIONS_PARENT_LOCATION_ID_IX" unique="false">
            <column ascending="true" name="PARENT_LOCATION_ID"/>
         </index>
         <index name="CHILD_WATCH_REGISTRATIONS_PICK_UP_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="PICK_UP_CUSTOMER_ID"/>
         </index>
         <index name="CHILD_WATCH_REGISTRATIONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="CHILD_WATCH_REGISTRATIONS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CHILD_WATCH_ROOMS" numRows="0" remarks="Your organization's defined child-watch rooms" schema="hub" type="TABLE">
         <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="hub" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="CENTERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" 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="6" 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="0" id="7" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="CHILD_WATCH_ROOMS_CHILD_WATCH_ROOM_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="CHILD_WATCH_ROOM_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CHILD_WATCH_ROOMS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="COMPANIES" numRows="0" remarks="Company details" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="ACCOUNT_CREDIT_HISTORY"/>
            <child catalog="ActiveHub" column="PAYER_COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="TRANSACTION_COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="PAYER_COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="AR_SCHEDULED_HEADERS"/>
            <child catalog="ActiveHub" column="PARENT_COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COMPANIES"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COMPANY_AUTHORIZED_AGENTS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_USAGE"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CREDIT_CARD_PROCESSING_LOG"/>
            <child catalog="ActiveHub" column="PAYER_COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_THIRD_PARTY_BILLINGS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="GIFT_CARDS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="INSTRUCTORS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_CONTACTS"/>
            <child catalog="ActiveHub" column="TPB_COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PERMITS"/>
            <child catalog="ActiveHub" column="LAST_VENDOR_COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="POS_PRODUCTS"/>
            <child catalog="ActiveHub" column="PAYER_COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PRELIMINARY_DRAFTS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SAVED_CREDIT_CARD_HISTORY"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SAVED_CREDIT_CARDS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TEAM_CONTACTS"/>
            <child catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ADDRESS1" nullable="true" remarks="Company's address 1" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ADDRESS2" nullable="true" remarks="Company's address 2" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CITY" nullable="true" remarks="Company's address city" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="8" 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="9" name="COUNTY" nullable="true" remarks="Company's county" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="COUNTRY" nullable="true" remarks="Company's country" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="PHONE1" nullable="true" remarks="Company's first phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="PHONE2" nullable="true" remarks="Company's second phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="PHONE3" nullable="true" remarks="Company's third phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="EMAIL" nullable="true" remarks="Company's email address" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="WEBSITE" nullable="true" remarks="Company's web site address" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" 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="17" 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="18" 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="19" name="PAYMENT_TERMS" nullable="true" remarks="Company's payment terms" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" 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="21" 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="22" 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="23" name="RETIRED_STATUS" nullable="true" remarks="Company's retired status (Retired / Active)" size="7" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="4" id="27" 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="0" id="28" 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="hub" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" 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="hub" table="GEOGRAPHIC_AREAS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="COMPANY_ID" sequenceNumberInPK="2"/>
         <index name="COMPANIES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="COMPANIES_COMPANY_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="COMPANY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="COMPANIES_CUSTOMER_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_TYPE_ID"/>
         </index>
         <index name="COMPANIES_GEOGRAPHIC_AREA_ID_IX" unique="false">
            <column ascending="true" name="GEOGRAPHIC_AREA_ID"/>
         </index>
         <index name="COMPANIES_PARENT_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="PARENT_COMPANY_ID"/>
         </index>
         <index name="COMPANIES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="COMPANIES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="COMPANY_AUTHORIZED_AGENTS" numRows="0" remarks="Company authorized agent details" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="CONTACT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="0" id="6" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="COMPANY_AUTHORIZED_AGENT_ID" sequenceNumberInPK="2"/>
         <index name="COMPANY_AUTHORIZED_AGENTS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="COMPANY_AUTHORIZED_AGENTS_COMPANY_AUTHORIZED_AGENT_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="COMPANY_AUTHORIZED_AGENT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="COMPANY_AUTHORIZED_AGENTS_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="COMPANY_ID"/>
         </index>
         <index name="COMPANY_AUTHORIZED_AGENTS_CONTACT_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CONTACT_TYPE_ID"/>
         </index>
         <index name="COMPANY_AUTHORIZED_AGENTS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="COMPANY_AUTHORIZED_AGENTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CONTACT_TYPES" numRows="0" remarks="Your organization's defined contact types" schema="hub" type="TABLE">
         <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="hub" table="COMPANY_AUTHORIZED_AGENTS"/>
            <child catalog="ActiveHub" column="CONTACT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_CONTACTS"/>
            <child catalog="ActiveHub" column="CONTACT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="0" id="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CONTACT_TYPE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="CONTACT_TYPES_CONTACT_TYPE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="CONTACT_TYPE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CONTACT_TYPES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="COUPON_BATCH_QUALIFICATIONS" numRows="0" remarks="Coupon batch qualification information" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="COUPON_BATCHES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="PRODUCT_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="PRODUCT_CLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="PRODUCT_SUBCLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CATEGORY_ID" nullable="true" remarks="Category ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ACTIVITY_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="SEASON_ID" nullable="true" remarks="Season ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="hub" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="hub" table="PROGRAM_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="hub" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="hub" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="hub" table="USAGE_FEES"/>
         </column>
         <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="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="COUPON_BATCH_QUALIFICATION_ID" sequenceNumberInPK="2"/>
         <index name="COUPON_BATCH_QUALIFICATIONS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="COUPON_BATCH_QUALIFICATIONS_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="COUPON_BATCH_QUALIFICATIONS_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="CATEGORY_ID"/>
         </index>
         <index name="COUPON_BATCH_QUALIFICATIONS_COUPON_BATCH_ID_IX" unique="false">
            <column ascending="true" name="COUPON_BATCH_ID"/>
         </index>
         <index name="COUPON_BATCH_QUALIFICATIONS_COUPON_BATCH_QUALIFICATION_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="COUPON_BATCH_QUALIFICATION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="COUPON_BATCH_QUALIFICATIONS_PACKAGE_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_CATEGORY_ID"/>
         </index>
         <index name="COUPON_BATCH_QUALIFICATIONS_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="COUPON_BATCH_QUALIFICATIONS_POSPRODUCT_ID_IX" unique="false">
            <column ascending="true" name="POSPRODUCT_ID"/>
         </index>
         <index name="COUPON_BATCH_QUALIFICATIONS_PRODUCT_CLASS_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_CLASS_ID"/>
         </index>
         <index name="COUPON_BATCH_QUALIFICATIONS_PRODUCT_DEPARTMENT_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_DEPARTMENT_ID"/>
         </index>
         <index name="COUPON_BATCH_QUALIFICATIONS_PRODUCT_SUBCLASS_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_SUBCLASS_ID"/>
         </index>
         <index name="COUPON_BATCH_QUALIFICATIONS_PROGRAM_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_ID"/>
         </index>
         <index name="COUPON_BATCH_QUALIFICATIONS_PROGRAM_TYPE_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_TYPE_ID"/>
         </index>
         <index name="COUPON_BATCH_QUALIFICATIONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="COUPON_BATCH_QUALIFICATIONS_SEASON_ID_IX" unique="false">
            <column ascending="true" name="SEASON_ID"/>
         </index>
         <index name="COUPON_BATCH_QUALIFICATIONS_USAGE_FEE_ID_IX" unique="false">
            <column ascending="true" name="USAGE_FEE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="COUPON_BATCHES" numRows="0" remarks="Coupon batch information" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="COUPON_BATCH_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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_TYPE" nullable="true" remarks="Coupon type for generated coupons" size="30" 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="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="hub" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="hub" table="REPORT_DEFINITIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="12" name="DISCOUNT_AMOUNT" nullable="true" remarks="Coupon discount amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="13" name="DISCOUNT_PERCENT" nullable="true" remarks="Coupon discount percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="DATE_FROM" nullable="true" remarks="Coupon effective date from" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="DATE_TO" nullable="true" remarks="Coupon effective date to" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="hub" table="COUPON_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" 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="25" 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="26" 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="27" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="COUPON_DESCRIPTION" nullable="true" remarks="Coupon description of generated coupons" size="8000" type="varchar" typeCode="12"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="COUPON_BATCH_ID" sequenceNumberInPK="2"/>
         <index name="COUPON_BATCHES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="COUPON_BATCHES_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_ID"/>
         </index>
         <index name="COUPON_BATCHES_COUPON_BATCH_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="COUPON_BATCH_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="COUPON_BATCHES_COUPON_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="COUPON_CATEGORY_ID"/>
         </index>
         <index name="COUPON_BATCHES_CUSTOMER_LIST_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_LIST_ID"/>
         </index>
         <index name="COUPON_BATCHES_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="COUPON_BATCHES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="COUPON_CATEGORIES" numRows="0" remarks="Your organization's defined coupon categories" schema="hub" type="TABLE">
         <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="hub" table="COUPON_BATCHES"/>
            <child catalog="ActiveHub" column="COUPON_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="0" id="2" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="COUPON_CATEGORY_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="COUPON_CATEGORIES_COUPON_CATEGORY_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="COUPON_CATEGORY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="COUPON_CATEGORIES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="COUPON_QUALIFICATIONS" numRows="0" remarks="Coupon qualification information" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="COUPONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="ACTIVITY_CATEGORIES"/>
         </column>
         <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="hub" table="SEASONS"/>
         </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="hub" 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="hub" table="PROGRAM_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="hub" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="hub" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="hub" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="hub" table="PRODUCT_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" 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="hub" table="PRODUCT_CLASSES"/>
         </column>
         <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="hub" table="PRODUCT_SUBCLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" 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="hub" table="USAGE_FEES"/>
         </column>
         <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="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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="DISCOUNT_TYPE" nullable="true" remarks="Discount type (amount / discount)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="22" name="DISCOUNT_AMOUNT" nullable="true" remarks="Coupon discount amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="23" name="DISCOUNT_PERCENT" nullable="true" remarks="Coupon discount percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" 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="25" 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="26" 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="27" 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="28" 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="29" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="COUPON_QUALIFICATION_ID" sequenceNumberInPK="2"/>
         <index name="COUPON_QUALIFICATIONS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="CATEGORY_ID"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="COMPANY_ID"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_COUPON_ID_IX" unique="false">
            <column ascending="true" name="COUPON_ID"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_COUPON_QUALIFICATION_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="COUPON_QUALIFICATION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_CUSTOMER_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_TYPE_ID"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_PACKAGE_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_CATEGORY_ID"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_POSPRODUCT_ID_IX" unique="false">
            <column ascending="true" name="POSPRODUCT_ID"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_PRODUCT_CLASS_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_CLASS_ID"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_PRODUCT_DEPARTMENT_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_DEPARTMENT_ID"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_PRODUCT_SUBCLASS_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_SUBCLASS_ID"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_PROGRAM_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_ID"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_PROGRAM_TYPE_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_TYPE_ID"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_SEASON_ID_IX" unique="false">
            <column ascending="true" name="SEASON_ID"/>
         </index>
         <index name="COUPON_QUALIFICATIONS_USAGE_FEE_ID_IX" unique="false">
            <column ascending="true" name="USAGE_FEE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="COUPON_USAGE" numRows="0" remarks="Coupon usage information" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="null" name="COMPANY_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COMPANIES"/>
         </column>
         <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="hub" table="COUPONS"/>
         </column>
         <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="hub" table="CUSTOMERS"/>
         </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="hub" 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="hub" 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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="COUPON_USAGE_ID" sequenceNumberInPK="2"/>
         <index name="COUPON_USAGE_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="COUPON_USAGE_COUPON_ID_IX" unique="false">
            <column ascending="true" name="COUPON_ID"/>
         </index>
         <index name="COUPON_USAGE_COUPON_USAGE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="COUPON_USAGE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="COUPON_USAGE_RECEIPT_DETAIL_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_DETAIL_ID"/>
         </index>
         <index name="COUPON_USAGE_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="COUPON_USAGE_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="COUPONS" numRows="0" remarks="Coupon information" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="COUPON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_USAGE"/>
            <child catalog="ActiveHub" column="COUPON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="COUPON_BATCHES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="COUPON_CODE" nullable="true" remarks="Coupon code" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="COUPON_TYPE" nullable="true" remarks="Coupon type" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="COUPON_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="DISCOUNT_TYPE" nullable="true" remarks="Discount type (amount / discount)" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="DISCOUNT_AMOUNT" nullable="true" remarks="Coupon discount amount" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="DISCOUNT_PERCENT" nullable="true" remarks="Coupon discount percentage" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="COUPON_CONTRACT_ID" nullable="true" remarks="Coupon contract ID" size="4" type="int" typeCode="4"/>
         <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="hub" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DATE_FROM" nullable="true" remarks="Coupon effective date from" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="DATE_TO" nullable="true" remarks="Coupon effective date to" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="COUPON_ID" sequenceNumberInPK="2"/>
         <index name="COUPONS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="COUPONS_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_ID"/>
         </index>
         <index name="COUPONS_COUPON_BATCH_ID_IX" unique="false">
            <column ascending="true" name="COUPON_BATCH_ID"/>
         </index>
         <index name="COUPONS_COUPON_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="COUPON_CATEGORY_ID"/>
         </index>
         <index name="COUPONS_COUPON_CONTRACT_ID_IX" unique="false">
            <column ascending="true" name="COUPON_CONTRACT_ID"/>
         </index>
         <index name="COUPONS_COUPON_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="COUPON_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="COUPONS_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="COUPONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CREDIT_CARD_PROCESSING_LOG" numRows="0" remarks="The log of all payment and refund authorization requests" schema="hub" type="TABLE">
         <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="hub" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="3" id="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="hub" table="RECEIPT_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" 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="hub" table="MEMBERSHIPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="28" 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="29" 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="30" 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="31" 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="0" id="32" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="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="36" name="AUTO_RETRY_COUNT" nullable="true" remarks="Number of additional attempts made to draft the credit card after the initial decline" size="4" type="int" typeCode="4"/>
         <primaryKey column="CREDIT_CARD_PROCESSING_LOG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="CREDIT_CARD_PROCESSING_LOG_CREDIT_CARD_PROCESSING_LOG_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="CREDIT_CARD_PROCESSING_LOG_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CREDIT_CARD_PROCESSING_LOG_AR_SCHEDULE_HEADER_ID_IX" unique="false">
            <column ascending="true" name="AR_SCHEDULE_HEADER_ID"/>
         </index>
         <index name="CREDIT_CARD_PROCESSING_LOG_CAMPAIGN_DONATION_ID_IX" unique="false">
            <column ascending="true" name="CAMPAIGN_DONATION_ID"/>
         </index>
         <index name="CREDIT_CARD_PROCESSING_LOG_CLIENT_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="CLIENT_TRANSACTION_ID"/>
         </index>
         <index name="CREDIT_CARD_PROCESSING_LOG_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="COMPANY_ID"/>
         </index>
         <index name="CREDIT_CARD_PROCESSING_LOG_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="CREDIT_CARD_PROCESSING_LOG_MEMBERSHIP_ID_IX" unique="false">
            <column ascending="true" name="MEMBERSHIP_ID"/>
         </index>
         <index name="CREDIT_CARD_PROCESSING_LOG_MEMBERSHIP_RUN_DATE_TIME_IX" unique="false">
            <column ascending="true" name="MEMBERSHIP_RUN_DATE_TIME"/>
         </index>
         <index name="CREDIT_CARD_PROCESSING_LOG_RECEIPT_HEADER_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_HEADER_ID"/>
         </index>
         <index name="CREDIT_CARD_PROCESSING_LOG_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="CREDIT_CARD_PROCESSING_LOG_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="CREDIT_CARD_PROCESSING_LOG_START_DATE_TIME_IX" unique="false">
            <column ascending="true" name="START_DATE_TIME"/>
         </index>
         <index name="CREDIT_CARD_PROCESSING_LOG_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
         <index name="CREDIT_CARD_PROCESSING_LOG_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CREDITCARD_UPDATES" numRows="0" remarks="Updated credit card information" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="CREDITCARD_UPDATE_ID" nullable="false" remarks="Credit Card update ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" name="AMS_ACCOUNT_ID" nullable="true" remarks="Internal ID locator for the credit card" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="7" 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="8" name="CC_TYPE" nullable="true" remarks="Credit Card type" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="AMS_SENT" nullable="true" remarks="Was the updated credit card information sent to AMS" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="AMS_SENT_ON" nullable="true" remarks="Date on which updated credit card information was sent to AMS" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="12" 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="13" 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="14" name="UPDATED_STATUS" nullable="true" remarks="Status of the update" size="2000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="15" name="UPDATED_ON" nullable="true" remarks="Date and time credit card was updated" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="UPDATED_ACTION_TYPE" nullable="true" remarks="Updated credit card action type" size="2" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" 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="18" 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="3" id="19" name="INSERTED_ON" nullable="true" remarks="Date and time when the record was inserted into the table" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="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="23" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="CREDITCARD_UPDATE_ID" sequenceNumberInPK="2"/>
         <index name="PK_CREDITCARD_UPDATES" unique="true">
            <column ascending="true" name="CREDITCARD_UPDATE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CREDITCARD_UPDATES_CREDITCARD_UPDATE_ID_IX" unique="false">
            <column ascending="true" name="CREDITCARD_UPDATE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_PAYMENT_TYPES" numRows="0" remarks="Your organization's defined custom payment types" schema="hub" type="TABLE">
         <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="hub" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="0" id="5" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="CUSTOM_PAYMENT_TYPES_CUSTOM_PAYMENT_TYPE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="CUSTOM_PAYMENT_TYPE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_PAYMENT_TYPES_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="CUSTOM_PAYMENT_TYPES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_ANSWERS" numRows="0" remarks="Custom Question Answers" schema="hub" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="" size="8" type="bigint identity" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="QUESTION_TYPE" nullable="false" remarks="Type of question" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SUBSYSTEM" nullable="false" remarks="Subsystem that generated the question" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" 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="hub" table="CUSTOM_QUESTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMQUESTIONANSWER_I_ID" nullable="true" remarks="Identifier for the custom question answer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="hub" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="hub" table="PERMITS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="hub" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="hub" table="MEMBERSHIPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="14" name="TITLE" nullable="true" remarks="Title of question" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="QUESTION" nullable="true" remarks="Question text" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" 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="17" 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="18" 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="19" 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="3" id="20" name="LAST_SYNC_TIME" nullable="false" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" 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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" 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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" 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="27" name="POSPRODUCT_ID" nullable="true" remarks="Reference to POS_PRODUCTS" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="CHARGE_ID" nullable="true" remarks="charge fee id" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOMQUESTIONANSWER_ID" sequenceNumberInPK="2"/>
         <primaryKey column="CUSTOMQUESTIONANSWER_I_ID" sequenceNumberInPK="3"/>
         <index name="CUSTOM_QUESTION_ANSWERS_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="CUSTOM_QUESTION_ANSWERS_ACTIVITY_ID_CUSTOMER_ID_QUESTION_TYPE_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="QUESTION_TYPE"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_ANSWERS_CUSTOMER_ID_TITLE_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="TITLE"/>
         </index>
         <index name="CUSTOM_QUESTION_ANSWERS_CUSTOMQUESTION_ID_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMQUESTION_ID"/>
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_ANSWERS_CUSTOMQUESTION_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMQUESTION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_ANSWERS_CUSTOMQUESTIONANSWER_I_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMQUESTIONANSWER_I_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_ANSWERS_CUSTOMQUESTIONANSWER_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMQUESTIONANSWER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_ANSWERS_DATESTAMP_QUESTION_TYPE_IX" unique="false">
            <column ascending="true" name="DATESTAMP"/>
            <column ascending="true" name="QUESTION_TYPE"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_ANSWERS_FACILITY_ID_PERMIT_ID_QUESTION_TYPE_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
            <column ascending="true" name="PERMIT_ID"/>
            <column ascending="true" name="QUESTION_TYPE"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_ANSWERS_MEMBERSHIP_ID_QUESTION_TYPE_IX" unique="false">
            <column ascending="true" name="MEMBERSHIP_ID"/>
            <column ascending="true" name="QUESTION_TYPE"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_ANSWERS_nc_cs_ix" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
            <column ascending="true" name="ANSWER"/>
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="CUSTOMQUESTION_ID"/>
            <column ascending="true" name="CUSTOMQUESTIONANSWER_I_ID"/>
            <column ascending="true" name="CUSTOMQUESTIONANSWER_ID"/>
            <column ascending="true" name="DATESTAMP"/>
            <column ascending="true" name="FACILITY_ID"/>
            <column ascending="true" name="MEMBERSHIP_ID"/>
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="PACKAGE_ID"/>
            <column ascending="true" name="PERMIT_ID"/>
            <column ascending="true" name="POSPRODUCT_ID"/>
            <column ascending="true" name="PROGRAM_ID"/>
            <column ascending="true" name="QUESTION_TYPE"/>
            <column ascending="true" name="ROOT_TRANSACTION_ID"/>
            <column ascending="true" name="TITLE"/>
            <column ascending="true" name="TRANSACTION_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_ANSWERS_ORG_ID_IX" unique="false">
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_ANSWERS_POSPRODUCT_ID_QUESTION_TYPE_IX" unique="false">
            <column ascending="true" name="POSPRODUCT_ID"/>
            <column ascending="true" name="QUESTION_TYPE"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_ANSWERS_PROGRAM_ID_CUSTOMER_ID_QUESTION_TYPE_IX" unique="false">
            <column ascending="true" name="PROGRAM_ID"/>
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="QUESTION_TYPE"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_ANSWERS_PROGRAM_ID_QUESTION_TYPE_IX" unique="false">
            <column ascending="true" name="PROGRAM_ID"/>
            <column ascending="true" name="QUESTION_TYPE"/>
         </index>
         <index name="CUSTOM_QUESTION_ANSWERS_QUESTION_TYPE_IX" unique="false">
            <column ascending="true" name="QUESTION_TYPE"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_ANSWERS_ROOT_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="ROOT_TRANSACTION_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_ANSWERS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="CUSTOM_QUESTION_ANSWERS_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_ANSWERS_SCHOLARSHIP_APPLICATION" numRows="0" remarks="Custom question for scholarship application and answer details, for customers and transactions" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="QUESTION_TYPE" nullable="false" remarks="Type of question" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SUBSYSTEM" nullable="true" remarks="Subsystem that generated the question" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="TRANSACTION_TYPE" nullable="true" remarks="Type of transaction that generated the question" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="CUSTOMQUESTION_ID" nullable="false" remarks="Identifier for the source custom question" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOMQUESTIONANSWER_ID" nullable="false" remarks="Identifier for the custom question answer" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="SCHOLARSHIP_APPLICATION_ID" nullable="false" remarks="The unique ID for the scholarship application" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="9" name="TITLE" nullable="true" remarks="Title of question" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="QUESTION" nullable="true" remarks="Question text" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="12" 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="13" 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="14" 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="15" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The dbo sync process ID" size="8" type="bigint" typeCode="-5"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOMQUESTIONANSWER_ID" sequenceNumberInPK="2"/>
         <index name="PK_CUSTOM_QUESTION_ANSWERS_SCHOLARSHIP_APPLICATION" unique="true">
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="CUSTOMQUESTIONANSWER_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_GROUP_LINKS" numRows="0" remarks="Custom question groups linked to individual subject areas (for internal use)." schema="hub" type="TABLE">
         <column autoUpdated="true" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <index name="CUSTOM_QUESTION_GROUP_LINKS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="CUSTOM_QUESTION_GROUP_LINKS_CHARGE_ELG_QG_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_ELG_QG_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_GROUP_LINKS_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_GROUP_LINKS_CHARGE_QG_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_QG_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_GROUP_LINKS_CUSTOM_QUESTION_GROUP_ID_IX" unique="false">
            <column ascending="true" name="CUSTOM_QUESTION_GROUP_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_GROUP_LINKS_CUSTOMERCUSTOM_QUESTION_GROUP_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMERCUSTOM_QUESTION_GROUP_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_GROUP_LINKS_DCPROGRAM_ID_IX" unique="false">
            <column ascending="true" name="DCPROGRAM_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_GROUP_LINKS_DCPROGRAMCUSTOM_QUESTION_GROUP_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="DCPROGRAMCUSTOM_QUESTION_GROUP_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_GROUP_LINKS_EVENTTYPE_ID_IX" unique="false">
            <column ascending="true" name="EVENTTYPE_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_GROUP_LINKS_EVENTTYPECUSTOM_QUESTION_GROUP_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="EVENTTYPECUSTOM_QUESTION_GROUP_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_GROUP_LINKS_PACKAGE_CUSTOM_QUESTION_GROUPS_RENEWAL_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_CUSTOM_QUESTION_GROUPS_RENEWAL_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_GROUP_LINKS_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_GROUP_LINKS_PACKAGECUSTOM_QUESTION_GROUP_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="PACKAGECUSTOM_QUESTION_GROUP_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_GROUP_LINKS_POS_PRODUCT_CUSTOM_QUESTION_GROUP_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="POS_PRODUCT_CUSTOM_QUESTION_GROUP_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_GROUP_LINKS_POSPRODUCT_ID_IX" unique="false">
            <column ascending="true" name="POSPRODUCT_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_GROUP_LINKS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_LINKED_ANSWERS" numRows="0" remarks="Predefined answers for custom questions (for internal use)." schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="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_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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="12" 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="13" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <index name="CUSTOM_QUESTION_LINKED_ANSWERS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKED_ANSWERS_ACTIVITY_CUSTOM_QUESTION_ANSWER_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_CUSTOM_QUESTION_ANSWER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKED_ANSWERS_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKED_ANSWERS_ANSWER_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="ANSWER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKED_ANSWERS_CUSTOM_QUESTION_ID_IX" unique="false">
            <column ascending="true" name="CUSTOM_QUESTION_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKED_ANSWERS_DEMOGRAPHIC_ID_IX" unique="false">
            <column ascending="true" name="DEMOGRAPHIC_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKED_ANSWERS_GENDER_INDEX_IX" unique="false">
            <column ascending="true" name="GENDER_INDEX"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKED_ANSWERS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_LINKS" numRows="0" remarks="Custom questions linked to individual subject areas (for internal use)." schema="hub" type="TABLE">
         <column autoUpdated="true" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <index name="CUSTOM_QUESTION_LINKS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_ACTIVITYCUSTOMQUESTION_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITYCUSTOMQUESTION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_CHARGE_CQ_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_CQ_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_CHARGE_CUSTOMEQUESTION_ANSWERS_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_CUSTOMEQUESTION_ANSWERS_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_CHARGE_ELG_CQ_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_ELG_CQ_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_CUSTOM_QUESTION_GROUP_ID_IX" unique="false">
            <column ascending="true" name="CUSTOM_QUESTION_GROUP_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_CUSTOM_QUESTION_ID_IX" unique="false">
            <column ascending="true" name="CUSTOM_QUESTION_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_CUSTOMERCUSTOMQUESTION_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMERCUSTOMQUESTION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_DCPROGRAM_ID_IX" unique="false">
            <column ascending="true" name="DCPROGRAM_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_DCPROGRAMCUSTOMQUESTION_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="DCPROGRAMCUSTOMQUESTION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_EVENTTYPE_ID_IX" unique="false">
            <column ascending="true" name="EVENTTYPE_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_EVENTTYPECUSTOMQUESTION_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="EVENTTYPECUSTOMQUESTION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_GROUPCUSTOMQUESTION_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="GROUPCUSTOMQUESTION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_PACKAGE_CUSTOMQUESTIONS_RENEWAL_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_CUSTOMQUESTIONS_RENEWAL_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_PACKAGECUSTOMQUESTION_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="PACKAGECUSTOMQUESTION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_PASSLAYOUT_CUSTOMQUESTION_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="PASSLAYOUT_CUSTOMQUESTION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_PASSLAYOUT_ID_IX" unique="false">
            <column ascending="true" name="PASSLAYOUT_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_POS_PRODUCT_CUSTOM_QUESTION_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="POS_PRODUCT_CUSTOM_QUESTION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="CUSTOM_QUESTION_LINKS_STANDARDCHARGES_ID_IX" unique="false">
            <column ascending="true" name="STANDARDCHARGES_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTION_TYPES" numRows="0" remarks="Your organization's defined custom question types" schema="hub" type="TABLE">
         <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="hub" 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="0" id="2" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="CUSTOM_QUESTION_TYPES_CUSTOM_QUESTION_TYPE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="CUSTOM_QUESTION_TYPE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTION_TYPES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOM_QUESTIONS" numRows="0" remarks="Custom questions, for customers and transactions" schema="hub" type="TABLE">
         <column autoUpdated="true" 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">
            <child catalog="ActiveHub" column="CUSTOMQUESTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="CUSTOM_QUESTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" 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="5" 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="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="hub" table="CUSTOM_QUESTION_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" 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="24" 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="(getdate())" 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="28" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" 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="30" 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"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOM_QUESTION_ID" sequenceNumberInPK="2"/>
         <index name="CUSTOM_QUESTIONS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="CUSTOM_QUESTIONS_CUSTOM_QUESTION_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="CUSTOM_QUESTION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOM_QUESTIONS_CUSTOM_QUESTION_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CUSTOM_QUESTION_TYPE_ID"/>
         </index>
         <index name="CUSTOM_QUESTIONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="CUSTOM_QUESTIONS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_ALTERNATE_KEYS" numRows="0" remarks="All defined customer alternate keys" schema="hub" type="TABLE">
         <column autoUpdated="true" 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_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="hub" 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="hub" table="ALTERNATE_KEY_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="ALTERNATE_KEY_STATUSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ALTERNATE_KEY_VALUE" nullable="true" remarks="Alternate key ID." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="9" 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="hub" table="MEMBERSHIP_USAGE"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOMER_ALTERNATE_KEY_ID" sequenceNumberInPK="2"/>
         <index name="CUSTOMER_ALTERNATE_KEYS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="CUSTOMER_ALTERNATE_KEYS_ALTERNATE_KEY_STATUS_ID_IX" unique="false">
            <column ascending="true" name="ALTERNATE_KEY_STATUS_ID"/>
         </index>
         <index name="CUSTOMER_ALTERNATE_KEYS_ALTERNATE_KEY_TYPE_ID_IX" unique="false">
            <column ascending="true" name="ALTERNATE_KEY_TYPE_ID"/>
         </index>
         <index name="CUSTOMER_ALTERNATE_KEYS_CUSTOMER_ALTERNATE_KEY_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="CUSTOMER_ALTERNATE_KEY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOMER_ALTERNATE_KEYS_CUSTOMER_ID_ALTERNATE_KEY_TYPE_ID_ALTERNATE_KEY_STATUS_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="ALTERNATE_KEY_TYPE_ID"/>
            <column ascending="true" name="ALTERNATE_KEY_STATUS_ID"/>
         </index>
         <index name="CUSTOMER_ALTERNATE_KEYS_ORG_ID_IX" unique="false">
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOMER_ALTERNATE_KEYS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_MERGE_LOG" numRows="0" remarks="Information on previously merged customers" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" 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="2" 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="3" 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="4" 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="5" 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="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOMER_MERGE_LOG_ID" sequenceNumberInPK="2"/>
         <index name="CUSTOMER_MERGE_LOG_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="CUSTOMER_MERGE_LOG_CUSTOMER_MERGE_LOG_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="CUSTOMER_MERGE_LOG_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOMER_MERGE_LOG_MERGED_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="MERGED_CUSTOMER_ID"/>
         </index>
         <index name="CUSTOMER_MERGE_LOG_MERGED_DATE_TIME_IX" unique="false">
            <column ascending="true" name="MERGED_DATE_TIME"/>
         </index>
         <index name="CUSTOMER_MERGE_LOG_NEW_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="NEW_CUSTOMER_ID"/>
         </index>
         <index name="CUSTOMER_MERGE_LOG_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="CUSTOMER_MERGE_LOG_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_NOTES" numRows="0" remarks="Customer notes and alerts" schema="hub" type="TABLE">
         <column autoUpdated="true" 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_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="hub" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="hub" table="NOTE_ALERT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="12" 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="13" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOMER_NOTE_ID" sequenceNumberInPK="2"/>
         <index name="CUSTOMER_NOTES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="CUSTOMER_NOTES_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="CUSTOMER_NOTES_CUSTOMER_NOTE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="CUSTOMER_NOTE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOMER_NOTES_NOTE_ALERT_TYPE_ID_IX" unique="false">
            <column ascending="true" name="NOTE_ALERT_TYPE_ID"/>
         </index>
         <index name="CUSTOMER_NOTES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="CUSTOMER_NOTES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="CUSTOMER_NOTES_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
         <index name="CUSTOMER_NOTES_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_PHOTOS" numRows="0" remarks="Customer photos for passes" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="hub" 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="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOMER_ID" sequenceNumberInPK="2"/>
         <index name="CUSTOMER_PHOTOS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="CUSTOMER_PHOTOS_CUSTOMER_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS" numRows="0" remarks="Customers' data for granted scholarship qualifications" schema="hub" type="TABLE">
         <column autoUpdated="true" 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_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="hub" 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="hub" 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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="hub" table="ACTIVITY_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="hub" table="ACTIVITY_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="13" 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="14" 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="hub" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" 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="hub" table="PROGRAM_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" 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="17" 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="hub" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" 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="hub" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" 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="20" 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="21" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="SCHOLARSHIP_QUALIFICATION_ID" sequenceNumberInPK="2"/>
         <primaryKey column="QUALIFY_TYPE_ID" sequenceNumberInPK="3"/>
         <index name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS_ACTIVITY_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_CATEGORY_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS_ACTIVITY_DEPARTMENT_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_DEPARTMENT_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS_ACTIVITY_SUB_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_SUB_CATEGORY_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS_CUSTOMER_SCHOLARSHIP_DISCOUNT_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_SCHOLARSHIP_DISCOUNT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS_CUSTOMER_SCHOLARSHIP_RESTRICTION_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_SCHOLARSHIP_RESTRICTION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS_FAMILY_ID_IX" unique="false">
            <column ascending="true" name="FAMILY_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS_PACKAGE_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_CATEGORY_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS_PROGRAM_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS_PROGRAM_TYPE_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_TYPE_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS_QUALIFY_TYPE_ID_IX" unique="false">
            <column ascending="true" name="QUALIFY_TYPE_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS_SCHOLARSHIP_QUALIFICATION_ID_IX" unique="false">
            <column ascending="true" name="SCHOLARSHIP_QUALIFICATION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_SCHOLARSHIPS" numRows="0" remarks="Customers' data for granted scholarships" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="CUSTOMER_SCHOLARSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" name="FAMILY_ID" nullable="true" remarks="Scholarship family ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" name="SCHOLARSHIP_QUALIFICATION_ID" nullable="true" remarks="Qualification ID for linking to the customer scholarship qualifications" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOMER_SCHOLARSHIP_ID" sequenceNumberInPK="2"/>
         <primaryKey column="CUSTOMER_ID" sequenceNumberInPK="3"/>
         <index name="CUSTOMER_SCHOLARSHIPS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIPS_ACTIVITY_QUALIFY_TYPE_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_QUALIFY_TYPE_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIPS_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIPS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIPS_CUSTOMER_SCHOLARSHIP_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_SCHOLARSHIP_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIPS_FAMILYSCHOLARSHIPMEMBERS_ID_IX" unique="false">
            <column ascending="true" name="FAMILYSCHOLARSHIPMEMBERS_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIPS_ORG_ID_2_IX" unique="false">
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIPS_ORG_ID_IX" unique="false">
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIPS_PACKAGE_QUALIFY_TYPE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_QUALIFY_TYPE_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIPS_PROGRAM_QUALIFY_TYPE_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_QUALIFY_TYPE_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIPS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIPS_SCHOLARSHIP_QUALIFICATION_ID_IX" unique="false">
            <column ascending="true" name="SCHOLARSHIP_QUALIFICATION_ID"/>
         </index>
         <index name="CUSTOMER_SCHOLARSHIPS_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_SIGNED_WAIVERS" numRows="0" remarks="Your organization's defined customer waivers" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="hub" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOMER_SIGNED_WAIVER_ID" sequenceNumberInPK="2"/>
         <index name="CUSTOMER_SIGNED_WAIVERS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="CUSTOMER_SIGNED_WAIVERS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="CUSTOMER_SIGNED_WAIVERS_CUSTOMER_SIGNED_WAIVER_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="CUSTOMER_SIGNED_WAIVER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOMER_SIGNED_WAIVERS_CUSTOMER_WAIVER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_WAIVER_ID"/>
         </index>
         <index name="CUSTOMER_SIGNED_WAIVERS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="CUSTOMER_SIGNED_WAIVERS_SIGNED_BY_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="SIGNED_BY_CUSTOMER_ID"/>
         </index>
         <index name="CUSTOMER_SIGNED_WAIVERS_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
      </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="hub" type="TABLE">
         <column autoUpdated="true" 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="CUSTOMERSKILL_ID" nullable="false" remarks="Customer skills table primary key" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" name="EVALUATOR_ID" nullable="true" remarks="CUSTOMER ID of the person evaluating" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="EVALUATION_DATE" nullable="true" remarks="Date of evaluation" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" 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="7" 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="8" name="COMMENTS" nullable="true" remarks="Evaluatore comments" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="(getdate())" digits="3" id="11" 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="12" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The dbo sync process ID" size="8" type="bigint" typeCode="-5"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOMERSKILL_ID" sequenceNumberInPK="2"/>
         <index name="PK_CUSTOMER_SKILLS" unique="true">
            <column ascending="true" name="CUSTOMERSKILL_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_SUBSIDIES" numRows="0" remarks="Customer subsidies setup table" schema="hub" type="TABLE">
         <column autoUpdated="true" 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_SUBSIDY_ID" nullable="false" remarks="Customer subsidies table primary key" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="CUSTOMER_ID" nullable="true" remarks="Customer pk" 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="STATUS" nullable="true" remarks="Subsidy usage status" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="CREATETIME" nullable="true" remarks="Customerâ€˜s subsidies create time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="UPDATETIME" nullable="true" remarks="Customerâ€˜s subsidies update time" size="16" type="datetime" typeCode="93"/>
         <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="0" id="8" 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="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOMER_SUBSIDY_ID" sequenceNumberInPK="2"/>
         <index name="PK_CUSTOMER_SUBSIDIES" unique="true">
            <column ascending="true" name="CUSTOMER_SUBSIDY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOMER_SUBSIDIES_CUSTOMER_SUBSIDY_ID_SUBSIDY_ID_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_SUBSIDY_ID"/>
            <column ascending="true" name="SUBSIDY_ID"/>
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_SUBSIDY_ALLOCATIONS" numRows="0" remarks="Customer subsidy allocations table" schema="hub" type="TABLE">
         <column autoUpdated="true" 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_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="2" 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="3" 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="4" 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="5" name="ALLOCATION_AMOUNT" nullable="true" remarks="Customer subsidy allocation amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <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="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOMER_SUBSIDY_ALLOCATION_ID" sequenceNumberInPK="2"/>
         <index name="PK_CUSTOMER_SUBSIDY_ALLOCATIONS" unique="true">
            <column ascending="true" name="CUSTOMER_SUBSIDY_ALLOCATION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOMER_SUBSIDY_ALLOCATIONS_CUSTOMER_SUBSIDY_ALLOCATION_ID_CUSTOMER_SUBSIDY_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_SUBSIDY_ALLOCATION_ID"/>
            <column ascending="true" name="CUSTOMER_SUBSIDY_ID"/>
         </index>
      </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="hub" type="TABLE">
         <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="hub" table="CUSTOMER_THIRD_PARTY_BILLINGS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="2" 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="3" id="3" 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="4" 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="hub" table="WORKSTATIONS"/>
         </column>
         <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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="RECEIPT_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="hub" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="hub" table="AR_SCHEDULED_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="hub" table="AR_SCHEDULED_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CUSTOMER_THIRD_PARTY_BILLING_LINK_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="CUSTOMER_THIRD_PARTY_BILLING_LINKS_CUSTOMER_THIRD_PARTY_BILLING_LINK_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="CUSTOMER_THIRD_PARTY_BILLING_LINK_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOMER_THIRD_PARTY_BILLING_LINKS_AR_SCHEDULED_DETAIL_ID_IX" unique="false">
            <column ascending="true" name="AR_SCHEDULED_DETAIL_ID"/>
         </index>
         <index name="CUSTOMER_THIRD_PARTY_BILLING_LINKS_AR_SCHEDULED_HEADER_ID_IX" unique="false">
            <column ascending="true" name="AR_SCHEDULED_HEADER_ID"/>
         </index>
         <index name="CUSTOMER_THIRD_PARTY_BILLING_LINKS_CREATION_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="CREATION_WORKSTATION_ID"/>
         </index>
         <index name="CUSTOMER_THIRD_PARTY_BILLING_LINKS_CUSTOMER_THIRD_PARTY_BILLING_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_THIRD_PARTY_BILLING_ID"/>
         </index>
         <index name="CUSTOMER_THIRD_PARTY_BILLING_LINKS_RECEIPT_DETAIL_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_DETAIL_ID"/>
         </index>
         <index name="CUSTOMER_THIRD_PARTY_BILLING_LINKS_RECEIPT_HEADER_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_HEADER_ID"/>
         </index>
         <index name="CUSTOMER_THIRD_PARTY_BILLING_LINKS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="CUSTOMER_THIRD_PARTY_BILLING_LINKS_TRANSACTION_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_CUSTOMER_ID"/>
         </index>
         <index name="CUSTOMER_THIRD_PARTY_BILLING_LINKS_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_THIRD_PARTY_BILLINGS" numRows="0" remarks="Your organization's configured customer third-party billings" schema="hub" type="TABLE">
         <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="hub" 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="hub" table="CUSTOMERS"/>
         </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">
            <parent catalog="ActiveHub" column="COMPANY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" 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="5" 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="6" 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="7" 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="8" 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="9" 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="10" 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="11" name="ELIGIBILITY_REVIEW_DATE" nullable="true" remarks="The custom eligibility review date)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="CUSTOMER_THIRD_PARTY_BILLINGS_CUSTOMER_THIRD_PARTY_BILLING_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="CUSTOMER_THIRD_PARTY_BILLING_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOMER_THIRD_PARTY_BILLINGS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="CUSTOMER_THIRD_PARTY_BILLINGS_PAYER_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="PAYER_COMPANY_ID"/>
         </index>
         <index name="CUSTOMER_THIRD_PARTY_BILLINGS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_TITLES" numRows="0" remarks="Your organization's defined customer titles" schema="hub" type="TABLE">
         <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="hub" 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="0" id="2" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CUSTOMER_TITLE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="CUSTOMER_TITLES_CUSTOMER_TITLE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="CUSTOMER_TITLE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOMER_TITLES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_TYPES" numRows="0" remarks="Your organization's defined customer types" schema="hub" type="TABLE">
         <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="hub" table="ACTIVITY_FEES"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHARGES"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COMPANIES"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMERS"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LOCKER_FEES"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGE_FEES"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PERMITS"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_FEES"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RESERVATION_GROUPS"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="STAGE_SEQUENCE_LINKS"/>
            <child catalog="ActiveHub" column="CUSTOMER_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="0" id="5" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="CUSTOMER_TYPE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="CUSTOMER_TYPES_CUSTOMER_TYPE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="CUSTOMER_TYPE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOMER_TYPES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOMER_WAIVERS" numRows="0" remarks="Your organization's defined customer waivers" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="hub" 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="hub" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOMER_WAIVER_ID" sequenceNumberInPK="2"/>
         <index name="CUSTOMER_WAIVERS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="CUSTOMER_WAIVERS_CUSTOMER_WAIVER_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="CUSTOMER_WAIVER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOMER_WAIVERS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOMERACCOUNTS" numRows="0" remarks="Customer accounts" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="COMPANY_ID" nullable="true" remarks="The third-party account company" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="7" 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="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="TRANSACTIONTYPE" nullable="true" remarks="Transaction type of the Customer Account" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="10" 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="11" 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="12" 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="13" 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="14" 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="3" id="15" 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="16" 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="0" id="17" name="ROW_VERSION" nullable="true" remarks="System timestamp (for INTernal use)" size="8" type="binary" typeCode="-2"/>
         <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="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOMERACCOUNT_ID" sequenceNumberInPK="2"/>
         <index name="PK_CUSTOMERACCOUNTS" unique="true">
            <column ascending="true" name="CUSTOMERACCOUNT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOMERLOG" numRows="0" remarks="Audit records showing what, when and who made changes to CUSTOMER table data." schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="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="4" 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="5" 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="3" id="6" 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="7" name="ITEMNAME" nullable="true" remarks="xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="CHANGETYPE" nullable="true" remarks="xxxxxxxxxxxxxxxxxxxxxx" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ITEMTYPE" nullable="true" remarks="xxxxxxxxxxxxxxxxxxxxxxx" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="CHANGE_DESCRIPTION" nullable="true" remarks="xxxxxxxxxxxxxxxxxxxxxxx" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="(getdate())" digits="3" id="13" 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="14" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The dbo sync process ID" size="8" type="bigint" typeCode="-5"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOMERLOG_ID" sequenceNumberInPK="2"/>
         <index name="PK_CUSTOMERLOG" unique="true">
            <column ascending="true" name="CUSTOMERLOG_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="CUSTOMERS" numRows="0" remarks="Customers' details" schema="hub" type="TABLE">
         <column autoUpdated="true" 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's ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACCOUNT_CREDIT_HISTORY"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_ENROLLMENTS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_PRIVATE_LESSONS"/>
            <child catalog="ActiveHub" column="PAYER_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="TRANSACTION_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="PAYER_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="AR_SCHEDULED_HEADERS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHILD_WATCH_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="DROP_OFF_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHILD_WATCH_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="PICK_UP_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHILD_WATCH_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COMPANY_AUTHORIZED_AGENTS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_USAGE"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CREDIT_CARD_PROCESSING_LOG"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_ALTERNATE_KEYS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_MERGE_LOG"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_NOTES"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_PHOTOS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_SCHOLARSHIPS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_SIGNED_WAIVERS"/>
            <child catalog="ActiveHub" column="SIGNED_BY_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_SIGNED_WAIVERS"/>
            <child catalog="ActiveHub" column="TRANSACTION_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_THIRD_PARTY_BILLING_LINKS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_THIRD_PARTY_BILLINGS"/>
            <child catalog="ActiveHub" column="CHILDCUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="DCPICKUPAUTHORIZATIONS"/>
            <child catalog="ActiveHub" column="PICKUPCUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="DCPICKUPAUTHORIZATIONS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FAMILY_MEMBERS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="GIFT_CARDS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="INSTRUCTORS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="INTEREST_LISTS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_CONTACTS"/>
            <child catalog="ActiveHub" column="PRIMARYMEMBERCUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="PRIMARY_MEMBER_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="OFFICIALS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PERMITS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="POS_SALES_DETAILS"/>
            <child catalog="ActiveHub" column="PAYER_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PRELIMINARY_DRAFTS"/>
            <child catalog="ActiveHub" column="DROP_OFF_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_ATTENDANCE_HISTORY"/>
            <child catalog="ActiveHub" column="PICK_UP_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_ATTENDANCE_HISTORY"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="DROP_OFF_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="PICK_UP_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="ONLINE_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_HEADERS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SAVED_CREDIT_CARD_HISTORY"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SAVED_CREDIT_CARDS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SUPERVISORS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SYSTEM_USAGE_LOG"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SYSTEM_USERS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TEAM_CONTACTS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TEAM_PLAYERS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="UPLOADED_FILES"/>
            <child catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WISHLISTS"/>
            <child catalog="ActiveHub" column="PARTICIPANT_CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WISHLISTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="4" 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="5" name="CUSTOMER_ADDRESS1" nullable="true" remarks="Customer's address 1" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="CUSTOMER_ADDRESS2" nullable="true" remarks="Customer's address 2" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="CITY" nullable="true" remarks="Customer's residential address city" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="9" name="ZIP_POSTALCODE" nullable="true" remarks="Customer's zip code" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" 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="11" 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="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="WORKPHONE" nullable="true" remarks="Customer's work phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="CELLPHONE" nullable="true" remarks="Customer's cell phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="FAXPHONE" nullable="true" remarks="Customer's fax phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="PAGERPHONE" nullable="true" remarks="Customer's pager phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="OTHERPHONE" nullable="true" remarks="Customer's other phone" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="CUSTOMER_EMAIL" nullable="true" remarks="Customers email address" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="19" 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="20" 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="21" 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="22" 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="23" name="MAILING_ADDRESS1" nullable="true" remarks="Customers mailing address 1" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="MAILING_ADDRESS2" nullable="true" remarks="Customers mailing address 2" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" 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="26" 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="27" 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="28" 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="29" 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="30" 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="31" 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="32" 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="33" 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="34" 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="35" 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="36" 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="37" 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="38" 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="39" 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="40" 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="41" 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="42" 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="43" 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="44" 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="45" 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="46" 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="47" 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="48" name="COUNTY" nullable="true" remarks="Customers county" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" 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="50" name="MIDDLE_NAME" nullable="true" remarks="Customers middle name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="51" 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="52" name="LEGAL_NAME" nullable="true" remarks="Customers legal name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="ADDITIONAL_EMAIL" nullable="true" remarks="Customers additional email address" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="54" 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="55" 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="56" 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="(getdate())" 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="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="60" 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="61" 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="62" 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="63" 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="64" 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="65" 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="66" 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="67" 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="68" 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="69" 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="70" 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="71" 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="72" 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="73" name="EXTERNALIDTEXT" nullable="true" remarks="Customer's external ID text." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="74" name="COUNTRY" nullable="true" remarks="Customer's country of residence." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="75" 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="76" 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="77" 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="0" id="78" 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="79" 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="hub" table="AGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="80" 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="hub" table="CUSTOMER_TITLES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="81" 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="hub" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="82" 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="hub" table="GEOGRAPHIC_AREAS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="83" 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="hub" table="GRADES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="84" 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="hub" table="OCCUPATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="85" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="86" 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="87" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="88" 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="89" 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="90" 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="91" 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="92" name="GENDER" nullable="true" remarks="" size="2" type="smallint" typeCode="5"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="CUSTOMER_ID" sequenceNumberInPK="2"/>
         <index name="CUSTOMERS_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="CUSTOMERS_AGE_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="AGE_CATEGORY_ID"/>
         </index>
         <index name="CUSTOMERS_CUSTOMER_GENDER_ZIP_POSTALCODE_IX" unique="false">
            <column ascending="true" name="CUSTOMER_GENDER"/>
            <column ascending="true" name="ZIP_POSTALCODE"/>
         </index>
         <index name="CUSTOMERS_CUSTOMER_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="CUSTOMERS_CUSTOMER_TITLE_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_TITLE_ID"/>
         </index>
         <index name="CUSTOMERS_CUSTOMER_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_TYPE_ID"/>
         </index>
         <index name="CUSTOMERS_GEOGRAPHIC_AREA_ID_IX" unique="false">
            <column ascending="true" name="GEOGRAPHIC_AREA_ID"/>
         </index>
         <index name="CUSTOMERS_GRADE_ID_IX" unique="false">
            <column ascending="true" name="GRADE_ID"/>
         </index>
         <index name="CUSTOMERS_OCCUPATION_ID_IX" unique="false">
            <column ascending="true" name="OCCUPATION_ID"/>
         </index>
         <index name="CUSTOMERS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="CUSTOMERS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="DCPICKUPAUTHORIZATIONS" numRows="0" remarks="Record of who is authorized to pick up who" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="hub" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <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"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="DCPICKUPAUTHORIZATION_ID" sequenceNumberInPK="2"/>
         <index name="DCPICKUPAUTHORIZATIONS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="DCPICKUPAUTHORIZATIONS_CHILDCUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CHILDCUSTOMER_ID"/>
         </index>
         <index name="DCPICKUPAUTHORIZATIONS_DCPICKUPAUTHORIZATION_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="DCPICKUPAUTHORIZATION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="DCPICKUPAUTHORIZATIONS_PICKUPCUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="PICKUPCUSTOMER_ID"/>
         </index>
         <index name="DCPICKUPAUTHORIZATIONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="DCSESSIONDATES" numRows="0" remarks="Master table showing FlexReg program session dates" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="DCSESSIONDATE_ID" nullable="false" remarks="The dcsessiondate ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="DCSESSION_ID" nullable="true" remarks="The dcsession ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" 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="5" 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="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="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="0" id="16" 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="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="DCSESSIONDATE_ID" sequenceNumberInPK="2"/>
         <index name="PK_DCSESSIONDATES" unique="true">
            <column ascending="true" name="DCSESSIONDATE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </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" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="2" name="DEFERRED_REVENUE_PROJECTION_ID" nullable="true" remarks="The record counter within the as of date" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="RECEIPT_GL_POSTINGS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="GLACCOUNTS"/>
         </column>
         <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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="9" 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="10" 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="11" name="RECOGNITION_SOURCE" nullable="true" remarks="The process stage that the projection was calculated (for internal use)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="13" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" 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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" 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="hub" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" 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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" 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="hub" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="AS_OF_DATE" sequenceNumberInPK="2"/>
         <primaryKey column="GL_LEDGER_ID" sequenceNumberInPK="3"/>
         <primaryKey column="REVENUE_GLACCOUNT_ID" sequenceNumberInPK="4"/>
         <primaryKey column="RECOGNIZE_DATE" sequenceNumberInPK="5"/>
         <index name="DEFERRED_REVENUE_PROJECTIONS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="DEFERRED_REVENUE_PROJECTIONS_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="DEFERRED_REVENUE_PROJECTIONS_AS_OF_DATE_IX" unique="false">
            <column ascending="true" name="AS_OF_DATE"/>
         </index>
         <index name="DEFERRED_REVENUE_PROJECTIONS_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="COMPANY_ID"/>
         </index>
         <index name="DEFERRED_REVENUE_PROJECTIONS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="DEFERRED_REVENUE_PROJECTIONS_DEFERRED_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="DEFERRED_GLACCOUNT_ID"/>
         </index>
         <index name="DEFERRED_REVENUE_PROJECTIONS_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="DEFERRED_REVENUE_PROJECTIONS_GL_LEDGER_ID_IX" unique="false">
            <column ascending="true" name="GL_LEDGER_ID"/>
         </index>
         <index name="DEFERRED_REVENUE_PROJECTIONS_ORG_ID_IX" unique="false">
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="DEFERRED_REVENUE_PROJECTIONS_ORIGINAL_RECEIPT_DETAIL_ID_IX" unique="false">
            <column ascending="true" name="ORIGINAL_RECEIPT_DETAIL_ID"/>
         </index>
         <index name="DEFERRED_REVENUE_PROJECTIONS_ORIGINAL_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="ORIGINAL_TRANSACTION_ID"/>
         </index>
         <index name="DEFERRED_REVENUE_PROJECTIONS_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="DEFERRED_REVENUE_PROJECTIONS_PROGRAM_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_ID"/>
         </index>
         <index name="DEFERRED_REVENUE_PROJECTIONS_RECOGNIZE_DATE_IX" unique="false">
            <column ascending="true" name="RECOGNIZE_DATE"/>
         </index>
         <index name="DEFERRED_REVENUE_PROJECTIONS_REVENUE_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="REVENUE_GLACCOUNT_ID"/>
         </index>
         <index name="DEFERRED_REVENUE_PROJECTIONS_REVENUE_SITE_ID_IX" unique="false">
            <column ascending="true" name="REVENUE_SITE_ID"/>
         </index>
         <index name="DEFERRED_REVENUE_PROJECTIONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="DEFERRED_REVENUE_PROJECTIONS_TRANSACTION_SITE_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="DEMOGRAPHICS" numRows="0" remarks="Your organization's defined demographics" schema="hub" type="TABLE">
         <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="0" id="2" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="DEMOGRAPHIC_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="DEMOGRAPHICS_DEMOGRAPHIC_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="DEMOGRAPHIC_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="DEMOGRAPHICS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="DEPARTMENTS" numRows="0" remarks="Your organization's defined departments" schema="hub" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="DEPARTMENT_ID" nullable="false" remarks="The department ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="DESCRIPTION" nullable="true" remarks="The department name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="IS_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="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="DEPARTMENT_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="DEPARTMENTS_DEPARTMENT_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="DEPARTMENT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="DEPARTMENTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="DISCLAIMERS" numRows="0" remarks="Contains information on configured disclaimers" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="FACILITIES"/>
            <child catalog="ActiveHub" column="DISCLAIMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="DISCLAIMER_NAME" nullable="true" remarks="The disclaimer name" size="30" 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 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="hub" table="SITES"/>
         </column>
         <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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="DISCLAIMER_ID" sequenceNumberInPK="2"/>
         <index name="DISCLAIMERS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="DISCLAIMERS_DISCLAIMER_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="DISCLAIMER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="DISCLAIMERS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="DISCLAIMERS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ENTRY_POINTS" numRows="0" remarks="Your organization's defined entry points" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="hub" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="ENTRYPOINT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="ENTRYPOINT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGE_ENTRY_POINTS"/>
            <child catalog="ActiveHub" column="ENTRYPOINT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" 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="(getdate())" 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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="ENTRYPOINT_ID" sequenceNumberInPK="2"/>
         <index name="ENTRY_POINTS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="ENTRY_POINTS_ENTRYPOINT_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="ENTRYPOINT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ENTRY_POINTS_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="ENTRY_POINTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="EQUIPMENT_CATEGORIES" numRows="0" remarks="Contains information on defined equipment categories" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="EQUIPMENT_CATEGORY_ID" nullable="true" remarks="The equipment category ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="hub" table="SITES"/>
         </column>
         <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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="EQUIPMENT_CATEGORY_ID" sequenceNumberInPK="2"/>
         <index name="EQUIPMENT_CATEGORIES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="EQUIPMENT_CATEGORIES_EQUIPMENT_CATEGORY_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="EQUIPMENT_CATEGORY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="EQUIPMENT_CATEGORIES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="EQUIPMENT_CATEGORIES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="EQUIPMENTLENDINGTRANSACTIONS" numRows="0" remarks="" schema="hub" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="EQUIPMENTLENDINGTRANSACTION_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="EQUIPMENT_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="2" type="smallint" typeCode="5"/>
         <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="3" id="6" 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="7" 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="8" 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="9" 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="10" 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="11" name="DESCRIPTION" nullable="true" remarks="Description of the loan/return" size="2000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ROOT_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="13" name="ROW_VERSION" nullable="true" remarks="System TIME_STAMP (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ORG_ID" nullable="false" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="(getdate())" digits="3" id="15" name="LAST_SYNC_TIME" nullable="false" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="" size="8" type="bigint" typeCode="-5"/>
         <primaryKey column="EQUIPMENTLENDINGTRANSACTION_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="EQUIPMENTLENDINGTRANSACTIONS_EQUIPMENTLENDINGTRANSACTION_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="EQUIPMENTLENDINGTRANSACTION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="EVENT_TYPES" numRows="0" remarks="Contains information on defined event types for reservations" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="FACILITY_LINKS"/>
            <child catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_TYPE_LINKS"/>
            <child catalog="ActiveHub" column="DEFAULT_EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_TYPES"/>
            <child catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_USAGE_REVENUE"/>
            <child catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RESERVATION_GROUPS"/>
            <child catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="STAGE_SEQUENCE_LINKS"/>
            <child catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="STANDARD_CHARGES"/>
            <child catalog="ActiveHub" column="EVENT_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="4" 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="5" 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="hub" table="PREP_CODES"/>
         </column>
         <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="hub" table="SCHEDULE_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" name="DISPLAY_IMAGE_ID" nullable="true" remarks="The ID of the image 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="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" 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="26" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="EVENT_TYPE_ID" sequenceNumberInPK="2"/>
         <index name="EVENT_TYPES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="EVENT_TYPES_DISPLAY_IMAGE_ID_IX" unique="false">
            <column ascending="true" name="DISPLAY_IMAGE_ID"/>
         </index>
         <index name="EVENT_TYPES_EVENT_TYPE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="EVENT_TYPE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="EVENT_TYPES_PREP_CODE_ID_IX" unique="false">
            <column ascending="true" name="PREP_CODE_ID"/>
         </index>
         <index name="EVENT_TYPES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="EVENT_TYPES_SCHEDULE_TYPE_ID_IX" unique="false">
            <column ascending="true" name="SCHEDULE_TYPE_ID"/>
         </index>
         <index name="EVENT_TYPES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="EXTERNAL_CLIENT_API_REQUEST_LOG" numRows="0" remarks="LOG of External clients api calls" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="LOG_RECORD_ID" nullable="false" remarks="Log record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="2" name="DATESTAMP" nullable="true" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" 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="5" name="REQUEST_DESCRIPTION" nullable="true" remarks="Optional request description string" size="2000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" 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="7" 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="8" 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="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="0" id="21" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" 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="3" id="23" 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="24" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <primaryKey column="LOG_RECORD_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="EXTERNAL_CLIENT_API_REQUEST_LOG_LOG_RECORD_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LOG_RECORD_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="FACILITIES" numRows="0" remarks="Master table showing facility details" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_DATES"/>
            <child catalog="ActiveHub" column="INSTRUCTOR_FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_PRIVATE_LESSONS"/>
            <child catalog="ActiveHub" column="LOCATION_FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_PRIVATE_LESSONS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_RESERVATION_PATTERNS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ENTRY_POINTS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_AVAILABILITY"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_HOURS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_LINKS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_OPEN_TIMES"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_OVERLAPS"/>
            <child catalog="ActiveHub" column="PARENT_FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_OVERLAPS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_PREREQUISITES"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_RENTAL_BLOCKS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_USAGE_REVENUE"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_USERS"/>
            <child catalog="ActiveHub" column="INSTRUCTOR_FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="INSTRUCTORS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="INTEREST_LISTS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_FACILITIES"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_SCHEDULE_FACILITIES"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_SCHEDULE_PAIRINGS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_SCHEDULE_TIMESLOTS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGE_ENTRY_POINTS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RESERVATION_DATE_RANGES"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SESSIONS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="STAGE_SEQUENCE_LINKS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="STANDARD_CHARGES"/>
            <child catalog="ActiveHub" column="HOME_FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TEAMS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WORKSTATIONS"/>
         </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_NUMBER" nullable="true" remarks="Facility number." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" 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="3" id="6" 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="(getdate())" 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="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="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="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="12" 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="13" 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="hub" table="FACILITY_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="hub" table="CENTERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" 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="hub" table="GEOGRAPHIC_AREAS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" 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="0" id="17" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" name="COUNTRY" nullable="true" remarks="The country code of the facility address" size="2" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="26" 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="27" 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="28" name="FACILITY_DESCRIPTION" nullable="true" remarks="The facility description" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" 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="30" 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="31" 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="32" 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="33" 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="34" 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="35" 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="36" 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="37" 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="38" 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="39" 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="40" 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="41" 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="42" 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="43" 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="44" 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="45" 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="46" 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="47" 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="48" 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="hub" table="DISCLAIMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" 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="hub" table="PREP_CODES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" 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="51" 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="52" 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="53" 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="54" 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="55" 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="56" 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="57" 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="58" 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="59" 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="60" 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="61" 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="62" 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="63" 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="64" 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="65" 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="66" 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="67" 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="68" 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="69" 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="70" 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="71" 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="72" 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="73" 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="74" 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="75" 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="76" 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="77" 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="78" 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="79" 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="80" 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="81" 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="82" 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="83" 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="84" 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="85" 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="86" 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="87" 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="88" 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="89" 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="90" 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="91" 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="92" 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="93" 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="94" 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="95" 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="96" 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="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="97" 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="98" 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="99" 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="100" 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="101" 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="102" name="RESOURCE_ALERT_CONTENT" nullable="true" remarks="The Pop-up alert content for facility and equipment" size="4000" type="varchar" typeCode="12"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="FACILITY_ID" sequenceNumberInPK="2"/>
         <index name="FACILITIES_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="FACILITIES_CENTER_ID_IX" unique="false">
            <column ascending="true" name="CENTER_ID"/>
         </index>
         <index name="FACILITIES_FACILITY_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="FACILITY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITIES_FACILITY_TYPE_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_TYPE_ID"/>
         </index>
         <index name="FACILITIES_GEOGRAPHIC_AREA_ID_IX" unique="false">
            <column ascending="true" name="GEOGRAPHIC_AREA_ID"/>
         </index>
         <index name="FACILITIES_ITEM_TYPE_ID_IX" unique="false">
            <column ascending="true" name="ITEM_TYPE_ID"/>
         </index>
         <index name="FACILITIES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="FACILITY_AVAILABILITY" numRows="0" remarks="Contains facility availability information by date" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="4" 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="5" 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="6" 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="7" 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="8" 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="9" 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="10" 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="hub" table="FACILITY_HOURS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="hub" table="SKIP_DATES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="hub" table="RESERVATION_DATE_RANGES"/>
         </column>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="FACILITY_ID" sequenceNumberInPK="2"/>
         <primaryKey column="FACILITY_DATE" sequenceNumberInPK="3"/>
         <index name="FACILITY_AVAILABILITY_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="FACILITY_AVAILABILITY_FACILITY_DATE_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_DATE"/>
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="FACILITY_AVAILABILITY_FACILITY_DATE_ORG_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_DATE"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITY_AVAILABILITY_FACILITY_HOUR_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_HOUR_ID"/>
         </index>
         <index name="FACILITY_AVAILABILITY_FACILITY_ID_FACILITY_DATE_ORG_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
            <column ascending="true" name="FACILITY_DATE"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITY_AVAILABILITY_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="FACILITY_AVAILABILITY_FACILITY_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITY_AVAILABILITY_nc_cs_ix" unique="false">
            <column ascending="true" name="FACILITY_DATE"/>
            <column ascending="true" name="FACILITY_HOUR_ID"/>
            <column ascending="true" name="FACILITY_ID"/>
            <column ascending="true" name="RESERVATION_DATE_RANGE_ID"/>
            <column ascending="true" name="SKIP_DATE_ID"/>
         </index>
         <index name="FACILITY_AVAILABILITY_RESERVATION_DATE_RANGE_ID_IX" unique="false">
            <column ascending="true" name="RESERVATION_DATE_RANGE_ID"/>
         </index>
         <index name="FACILITY_AVAILABILITY_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="FACILITY_AVAILABILITY_SKIP_DATE_ID_IX" unique="false">
            <column ascending="true" name="SKIP_DATE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="FACILITY_HOURS" numRows="0" remarks="Contains information on facility hours by date range" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="FACILITY_AVAILABILITY"/>
            <child catalog="ActiveHub" column="FACILITY_HOUR_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_OPEN_TIMES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="hub" table="FACILITIES"/>
         </column>
         <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="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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="FACILITY_HOUR_ID" sequenceNumberInPK="2"/>
         <index name="FACILITY_HOURS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="FACILITY_HOURS_FACILITY_HOUR_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="FACILITY_HOUR_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITY_HOURS_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="FACILITY_LINKS" numRows="0" remarks="Contains information on related records that are linked to facility records" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="FACILITIES"/>
         </column>
         <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="hub" table="EVENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" name="MINIMUM_CAPACITY" nullable="true" remarks="The minimum capacity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="MAXIMUM_CAPACITY" nullable="true" remarks="The maximum capacity" 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="(getdate())" 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="FACILITYGROUPFACILITY_ID" nullable="true" remarks="The reservation group facility ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="RESERVATION_GROUP_ID" nullable="true" remarks="The reservation group name" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RESERVATION_GROUP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RESERVATION_GROUPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="14" 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="15" 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="hub" table="SKIP_DATES"/>
         </column>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="EVENTTYPE_FACILITY_ID" sequenceNumberInPK="2"/>
         <primaryKey column="FACILITYEVENTCAPACITY_ID" sequenceNumberInPK="3"/>
         <primaryKey column="FACILITYGROUPFACILITY_ID" sequenceNumberInPK="4"/>
         <primaryKey column="SKIPDATE_FACILITY_ID" sequenceNumberInPK="5"/>
         <index name="FACILITY_LINKS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="FACILITY_LINKS_EVENT_TYPE_ID_IX" unique="false">
            <column ascending="true" name="EVENT_TYPE_ID"/>
         </index>
         <index name="FACILITY_LINKS_EVENTTYPE_FACILITY_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="EVENTTYPE_FACILITY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITY_LINKS_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="FACILITY_LINKS_FACILITYEVENTCAPACITY_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="FACILITYEVENTCAPACITY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITY_LINKS_FACILITYGROUPFACILITY_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="FACILITYGROUPFACILITY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITY_LINKS_RESERVATION_GROUP_ID_IX" unique="false">
            <column ascending="true" name="RESERVATION_GROUP_ID"/>
         </index>
         <index name="FACILITY_LINKS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="FACILITY_LINKS_SKIP_DATE_ID_IX" unique="false">
            <column ascending="true" name="SKIP_DATE_ID"/>
         </index>
         <index name="FACILITY_LINKS_SKIPDATE_FACILITY_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="SKIPDATE_FACILITY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </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="hub" type="TABLE">
         <column autoUpdated="true" 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="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="2" 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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="FACILITY_HOURS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" 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="6" 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="7" 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="8" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="FACILITY_OPEN_TIME_ID" sequenceNumberInPK="2"/>
         <index name="FACILITY_OPEN_TIMES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="FACILITY_OPEN_TIMES_FACILITY_HOUR_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_HOUR_ID"/>
         </index>
         <index name="FACILITY_OPEN_TIMES_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="FACILITY_OPEN_TIMES_FACILITY_OPEN_TIME_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="FACILITY_OPEN_TIME_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITY_OPEN_TIMES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="FACILITY_OVERLAPS" numRows="0" remarks="Contains information on configured parent and child relationships between facilities" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="FACILITY_OVERLAP_ID" nullable="true" remarks="The facility overlap ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="FACILITIES"/>
         </column>
         <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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <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="hub" table="FACILITIES"/>
         </column>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="FACILITY_OVERLAP_ID" sequenceNumberInPK="2"/>
         <index name="FACILITY_OVERLAPS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="FACILITY_OVERLAPS_CHILD_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="CHILD_FACILITY_ID"/>
         </index>
         <index name="FACILITY_OVERLAPS_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="FACILITY_OVERLAPS_FACILITY_OVERLAP_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="FACILITY_OVERLAP_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITY_OVERLAPS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </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="hub" type="TABLE">
         <column autoUpdated="true" 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="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="2" 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="hub" table="FACILITY_PREREQUISITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ALTERNATE_KEY_STATUS_ID" nullable="true" remarks="The ID of the alternate key status that is required for the alternate key type prerequisite" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="ALTERNATE_KEY_STATUS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ALTERNATE_KEY_STATUSES"/>
         </column>
         <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="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="FACILITY_PREREQUISITE_ALTERNATE_KEY_STATUS_ID" sequenceNumberInPK="2"/>
         <index name="FACILITY_PREREQUISITE_ALTERNATE_KEY_STATUSES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="FACILITY_PREREQUISITE_ALTERNATE_KEY_STATUSES_ALTERNATE_KEY_STATUS_ID_IX" unique="false">
            <column ascending="true" name="ALTERNATE_KEY_STATUS_ID"/>
         </index>
         <index name="FACILITY_PREREQUISITE_ALTERNATE_KEY_STATUSES_FACILITY_PREREQUISITE_ALTERNATE_KEY_STATUS_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="FACILITY_PREREQUISITE_ALTERNATE_KEY_STATUS_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITY_PREREQUISITE_ALTERNATE_KEY_STATUSES_FACILITY_PREREQUISITE_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_PREREQUISITE_ID"/>
         </index>
         <index name="FACILITY_PREREQUISITE_ALTERNATE_KEY_STATUSES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="FACILITY_PREREQUISITES" numRows="0" remarks="Contains information on configured prerequisites for facility reservations" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="FACILITY_PREREQUISITE_ALTERNATE_KEY_STATUSES"/>
         </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">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITIES"/>
         </column>
         <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="hub" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" 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="hub" table="ALTERNATE_KEY_TYPES"/>
         </column>
         <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="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="FACILITY_PREREQUISITE_ID" sequenceNumberInPK="2"/>
         <index name="FACILITY_PREREQUISITES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="FACILITY_PREREQUISITES_ALTERNATE_KEY_TYPE_ID_IX" unique="false">
            <column ascending="true" name="ALTERNATE_KEY_TYPE_ID"/>
         </index>
         <index name="FACILITY_PREREQUISITES_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="FACILITY_PREREQUISITES_FACILITY_PREREQUISITE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="FACILITY_PREREQUISITE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITY_PREREQUISITES_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="FACILITY_PREREQUISITES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="FACILITY_RENTAL_BLOCKS" numRows="0" remarks="Contains information on facility rental blocks" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="2" 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="3" 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="hub" table="FACILITIES"/>
         </column>
         <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">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITIES"/>
         </column>
         <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="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="FACILITY_RENTAL_BLOCK_ID" sequenceNumberInPK="2"/>
         <index name="FACILITY_RENTAL_BLOCKS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="FACILITY_RENTAL_BLOCKS_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="FACILITY_RENTAL_BLOCKS_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="FACILITY_RENTAL_BLOCKS_FACILITY_RENTAL_BLOCK_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="FACILITY_RENTAL_BLOCK_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITY_RENTAL_BLOCKS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="FACILITY_RESERVATION" numRows="0" remarks="Facility booking data along with the permit number and customer's detail" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PERMIT_NUMBER" nullable="true" remarks="DEPRECATED - The number of the permit" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="PERMIT_DATE" nullable="true" remarks="DEPRECATED - The date and time when the permit was created" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="EVENT_START_DATE" nullable="true" remarks="Event start date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="EVENT_START_TIME" nullable="true" remarks="Event start time" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="EVENT_END_DATE" nullable="true" remarks="Event end date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="EVENT_END_TIME" nullable="true" remarks="Event end time" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="10" name="ATTENDANCE" nullable="true" remarks="The attendance of the resevation" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="PERMIT_STATUS" nullable="true" remarks="DEPRECATED - The current status of the permit (e.g. Approved, Denied, Tentative, Stage Denied, Issued, Cancelled, Waiting Decision, Completed, On Hold)" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="12" 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="13" name="MINUTES_RESERVED" nullable="true" remarks="Includes prep time" size="11" type="decimal" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="14" name="EXPIRATION_DATE" nullable="true" remarks="The expiration date of the reservation" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="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="18" name="PERMIT_DATE_ONLY" nullable="true" remarks="DEPRECATED - The date when the permit was created (date only)" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" 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="hub" table="ACTIVITY_DATES"/>
            <child catalog="ActiveHub" column="FACILITY_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_SCHEDULE_PAIRINGS"/>
            <child catalog="ActiveHub" column="FACILITY_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" 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="hub" table="PERMITS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" 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="24" 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="25" 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="26" 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="27" 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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" 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="hub" table="SESSIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" 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="hub" table="LEAGUE_SCHEDULES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" 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="hub" table="EVENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" 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="hub" table="SCHEDULE_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" 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="35" 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="36" 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="37" 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="38" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="FACILITY_SCHEDULE_ID" sequenceNumberInPK="2"/>
         <index name="FACILITY_RESERVATION_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="FACILITY_RESERVATION_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="FACILITY_RESERVATION_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="COMPANY_ID"/>
         </index>
         <index name="FACILITY_RESERVATION_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="FACILITY_RESERVATION_EVENT_START_DATE_EVENT_END_DATE_IX" unique="false">
            <column ascending="true" name="EVENT_START_DATE"/>
            <column ascending="true" name="EVENT_END_DATE"/>
         </index>
         <index name="FACILITY_RESERVATION_EVENT_TYPE_ID_IX" unique="false">
            <column ascending="true" name="EVENT_TYPE_ID"/>
         </index>
         <index name="FACILITY_RESERVATION_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="FACILITY_RESERVATION_FACILITY_SCHEDULE_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_SCHEDULE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITY_RESERVATION_PERMIT_ID_IX" unique="false">
            <column ascending="true" name="PERMIT_ID"/>
         </index>
         <index name="FACILITY_RESERVATION_RESERVATION_START_DATE_RESERVATION_END_DATE_IX" unique="false">
            <column ascending="true" name="RESERVATION_START_DATE"/>
            <column ascending="true" name="RESERVATION_END_DATE"/>
         </index>
         <index name="FACILITY_RESERVATION_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="FACILITY_RESERVATION_SCHEDULE_TYPE_ID_IX" unique="false">
            <column ascending="true" name="SCHEDULE_TYPE_ID"/>
         </index>
         <index name="FACILITY_RESERVATION_SESSION_ID_IX" unique="false">
            <column ascending="true" name="SESSION_ID"/>
         </index>
         <index name="FACILITY_RESERVATION_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="FACILITY_RESERVATION_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
         <index name="FACILITY_RESERVATION_TRANSACTION_SITE_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="FACILITY_SCHEDULES" numRows="0" remarks="Facility schedules table" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="SITE_ID" nullable="true" remarks="The id of site table" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="FACILITY_SCHEDULE_ID" nullable="false" remarks="Facility schedule ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="DCSESSION_ID" nullable="true" remarks="" 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="PERMIT_ID" nullable="true" remarks="The Permit ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ACTIVITY_ID" nullable="true" remarks="The Activity ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="TRANSACTION_ID" nullable="true" remarks="The Transaction ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="STATION_ID" nullable="true" remarks="The Station ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="SYSTEMUSER_ID" nullable="true" remarks="The System ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" name="STARTSCHEDULEDATE" nullable="true" remarks="The Start schedule date." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="11" name="ENDSCHEDULEDATE" nullable="true" remarks="The end schedule date." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="12" name="STARTSCHEDULETIME" nullable="true" remarks="The start schedule time." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="13" name="ENDSCHEDULETIME" nullable="true" remarks="The end schedule time." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ATTENDANCE" nullable="true" remarks="The attendance of this schedule" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="CONFLICTING" nullable="true" remarks="The conflicting of the schedule" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="EVENTNAME" nullable="true" remarks="The event name." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="17" name="STARTEVENTDATE" nullable="true" remarks="The start event date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="ENDEVENTDATE" nullable="true" remarks="The end event date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="19" name="STARTEVENTTIME" nullable="true" remarks="The start event time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="20" name="ENDEVENTTIME" nullable="true" remarks="The end event time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="21" name="HOLDEXPIRATIONDATE" nullable="true" remarks="The hold expitation date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="HOLDTYPE" nullable="true" remarks="The hold type" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="HOLDUSERID" nullable="true" remarks="The id of hold user" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="MODULE" nullable="true" remarks="The module of the schedule" size="2" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="OVERLAP" nullable="true" remarks="The overlap of the schedule" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="RELATIONID" nullable="true" remarks="The relation ID" size="128" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" 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="28" name="WAITLISTDATETIME" nullable="true" remarks="The wait list date time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="29" name="CHECKOUTDATETIME" nullable="true" remarks="The check out date time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" 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="31" name="CHECKINDATETIME" nullable="true" remarks="The check in date time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="CHECKOUTFIRSTNAME" nullable="true" remarks="The check out first name" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="CHECKOUTLASTNAME" nullable="true" remarks="The check ou last name." size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="LEAGUESCHEDULE_ID" nullable="true" remarks="The league schedule ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" 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="36" name="RESCHEDULE" nullable="true" remarks="The reschedule" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" 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="38" 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="39" name="REFUNDED" nullable="true" remarks="The refund of the schedule" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" 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="41" 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="42" name="NON_EXCLUSIVE" nullable="true" remarks="The non exclusive" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" 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="44" 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="45" 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="46" 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="47" name="EVENT_ATTENDANCE" nullable="true" remarks="The event attendance" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" 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="49" 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="50" 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="51" 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="52" 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="53" 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="0" id="54" name="ROW_VERSION" nullable="true" remarks="System timestamp (for INTernal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" 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="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="FACILITY_SCHEDULE_ID" sequenceNumberInPK="2"/>
         <index name="PK_FACILITY_SCHEDULES" unique="true">
            <column ascending="true" name="FACILITY_SCHEDULE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="FACILITY_TYPE_LINKS" numRows="0" remarks="Contains information on related records that are linked to facility type records" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="FACILITY_TYPES"/>
         </column>
         <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="hub" table="EVENT_TYPES"/>
         </column>
         <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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="9" 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="hub" table="RESERVATION_DATE_RANGES"/>
         </column>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="EVENTTYPE_FACILITYTYPE_ID" sequenceNumberInPK="2"/>
         <index name="FACILITY_TYPE_LINKS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="FACILITY_TYPE_LINKS_EVENT_TYPE_ID_IX" unique="false">
            <column ascending="true" name="EVENT_TYPE_ID"/>
         </index>
         <index name="FACILITY_TYPE_LINKS_EVENTTYPE_FACILITYTYPE_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="EVENTTYPE_FACILITYTYPE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITY_TYPE_LINKS_FACILITY_TYPE_DATE_RANGE_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_TYPE_DATE_RANGE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITY_TYPE_LINKS_FACILITY_TYPE_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_TYPE_ID"/>
         </index>
         <index name="FACILITY_TYPE_LINKS_RESERVATION_DATE_RANGE_ID_IX" unique="false">
            <column ascending="true" name="RESERVATION_DATE_RANGE_ID"/>
         </index>
         <index name="FACILITY_TYPE_LINKS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="FACILITY_TYPES" numRows="0" remarks="Contains information on defined facility types" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="FACILITIES"/>
            <child catalog="ActiveHub" column="FACILITY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_TYPE_LINKS"/>
            <child catalog="ActiveHub" column="FACILITY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="STAGE_SEQUENCE_LINKS"/>
            <child catalog="ActiveHub" column="FACILITY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="STANDARD_CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" name="ITEM_TYPE_ID" nullable="true" remarks="The type of resource that this type is for (0=facilities, 1=equipment)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="EQUIPMENT_CATEGORY_ID" nullable="true" remarks="The equipment category ID that this facility type applies to" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="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="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="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" name="DEFAULT_CHECKOUT_TIME" nullable="true" remarks="The default checkout time for facilities of this type" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" 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="25" 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="26" 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="27" 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="28" 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="29" 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="30" 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="31" 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="32" 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="33" 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="34" 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="35" 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="36" 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="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" 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="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" 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="hub" table="UPLOADED_FILES"/>
         </column>
         <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="hub" table="EVENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" 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="41" 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="42" 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="43" 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="44" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="FACILITY_TYPE_ID" sequenceNumberInPK="2"/>
         <index name="FACILITY_TYPES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="FACILITY_TYPES_DEFAULT_EVENT_TYPE_ID_IX" unique="false">
            <column ascending="true" name="DEFAULT_EVENT_TYPE_ID"/>
         </index>
         <index name="FACILITY_TYPES_EQUIPMENT_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="EQUIPMENT_CATEGORY_ID"/>
         </index>
         <index name="FACILITY_TYPES_FACILITY_TYPE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="FACILITY_TYPE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITY_TYPES_ITEM_TYPE_ID_IX" unique="false">
            <column ascending="true" name="ITEM_TYPE_ID"/>
         </index>
         <index name="FACILITY_TYPES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="FACILITY_TYPES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="FACILITY_USAGE_REVENUE" numRows="0" remarks="Table showing a breakdown of permit revenue per facility and date" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="PERMIT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PERMITS"/>
         </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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="EVENT_TYPE_ID" nullable="true" remarks="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="hub" table="EVENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SCHEDULE_TYPE_ID" nullable="true" remarks="Schedule type ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SCHEDULE_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SCHEDULE_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="7" 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="(getdate())" 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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="FACILITY_USAGE_REVENUE_ID" sequenceNumberInPK="2"/>
         <index name="FACILITY_USAGE_REVENUE_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="FACILITY_USAGE_REVENUE_EVENT_TYPE_ID_IX" unique="false">
            <column ascending="true" name="EVENT_TYPE_ID"/>
         </index>
         <index name="FACILITY_USAGE_REVENUE_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="FACILITY_USAGE_REVENUE_FACILITY_USAGE_REVENUE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="FACILITY_USAGE_REVENUE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITY_USAGE_REVENUE_PERMIT_ID_IX" unique="false">
            <column ascending="true" name="PERMIT_ID"/>
         </index>
         <index name="FACILITY_USAGE_REVENUE_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="FACILITY_USAGE_REVENUE_SCHEDULE_TYPE_ID_IX" unique="false">
            <column ascending="true" name="SCHEDULE_TYPE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="FACILITY_USERS" numRows="0" remarks="Contains information on configured users and approvers for facilities" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="FACILITY_USER_ID" nullable="true" remarks="The facility user ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="FACILITIES"/>
         </column>
         <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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="FACILITY_USER_ID" sequenceNumberInPK="2"/>
         <index name="FACILITY_USERS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="FACILITY_USERS_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="FACILITY_USERS_FACILITY_USER_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="FACILITY_USER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FACILITY_USERS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="FACILITY_USERS_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="FAMILY_MEMBERS" numRows="0" remarks="Customer family details" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" name="FAMILY_NAME" nullable="true" remarks="Family last name." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" 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="(getdate())" 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="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="hub" table="FAMILY_ROLES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="FAMILY_MEMBER_ID" sequenceNumberInPK="2"/>
         <index name="FAMILY_MEMBERS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="FAMILY_MEMBERS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="FAMILY_MEMBERS_FAMILY_ID_IX" unique="false">
            <column ascending="true" name="FAMILY_ID"/>
         </index>
         <index name="FAMILY_MEMBERS_FAMILY_MEMBER_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="FAMILY_MEMBER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FAMILY_MEMBERS_FAMILY_ROLE_ID_IX" unique="false">
            <column ascending="true" name="FAMILY_ROLE_ID"/>
         </index>
         <index name="FAMILY_MEMBERS_MAIN_CONTACT_IX" unique="false">
            <column ascending="true" name="MAIN_CONTACT"/>
         </index>
         <index name="FAMILY_MEMBERS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="FAMILY_ROLES" numRows="0" remarks="Your organization's defined family roles" schema="hub" type="TABLE">
         <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="hub" 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="0" id="4" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="FAMILY_ROLE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="FAMILY_ROLES_FAMILY_ROLE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="FAMILY_ROLE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FAMILY_ROLES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="FINANCIAL_GL_TRANSACTIONS" numRows="0" remarks="DEPRECATED - REPLACED BY hub.RECEIPT_GL_POSTINGS" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="GLACCOUNT_ID" nullable="true" remarks="GL account ID." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="3" id="4" name="TRANSACTION_DATE" nullable="true" remarks="Transaction date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="RECEIPT_NUMBER" nullable="true" remarks="Number of the receipt for the transaction" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="7" 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="8" 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="9" 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="10" name="PERMIT_NUMBER" nullable="true" remarks="If this transaction relates to a resource reservation, then this field displays the permit number" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="CUSTOMER_ID" nullable="true" remarks="Customer ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="5" id="12" name="AMOUNT" nullable="true" remarks="Total charged amount for the transaction" size="21" type="decimal" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="5" id="13" name="CC_ECP_DC_AMOUNT" nullable="true" remarks="Amount paid by credit card/ ECP/ debit card" size="21" type="decimal" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="5" id="14" name="TRANSACTION_FEE" nullable="true" remarks="Transaction fee amount" size="21" type="decimal" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="5" id="15" name="CREDIT_CARD_FEE" nullable="true" remarks="Credit card fee amount" size="21" type="decimal" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="5" id="16" name="CONVENIENCE_FEE" nullable="true" remarks="Convenience fee amount" size="21" type="decimal" typeCode="3"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="GL_LEDGER_ID" nullable="true" remarks="GL ledger ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" 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="21" 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="22" 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="23" 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="24" 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="25" name="CUSTOMER_SCHOLARSHIP_ID" nullable="true" remarks="Customer scholarship ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="PERMIT_ID" nullable="true" remarks="Permit ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="COMPANY_ID" nullable="true" remarks="Company ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" 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="29" 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="30" 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="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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="((0))" digits="0" id="33" name="VOIDED" nullable="false" remarks="Whether the GL posting has been voided (1 = voided / 0 = not voided)" size="1" type="bit" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" 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="3" id="35" name="VOIDED_DATE_TIME" nullable="true" remarks="The date and time that the GL posting was voided" size="16" type="datetime" typeCode="93"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <index name="FINANCIAL_GL_TRANSACTIONS_PK_v2" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="FINANCIAL_GL_TRANSACTIONS_CAMPAIGN_ID_IX" unique="false">
            <column ascending="true" name="CAMPAIGN_ID"/>
         </index>
         <index name="FINANCIAL_GL_TRANSACTIONS_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_ID"/>
         </index>
         <index name="FINANCIAL_GL_TRANSACTIONS_CUSTOMER_ID_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="FINANCIAL_GL_TRANSACTIONS_CUSTOMER_ID_TRANSACTION_DATE_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="TRANSACTION_DATE"/>
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="FINANCIAL_GL_TRANSACTIONS_CUSTOMER_SCHOLARSHIP_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_SCHOLARSHIP_ID"/>
         </index>
         <index name="FINANCIAL_GL_TRANSACTIONS_GL_LEDGER_ID_UQ" unique="true">
            <column ascending="true" name="GL_LEDGER_ID"/>
         </index>
         <index name="FINANCIAL_GL_TRANSACTIONS_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="FINANCIAL_GL_TRANSACTIONS_nc_cs_ix" unique="false">
            <column ascending="true" name="AMOUNT"/>
            <column ascending="true" name="CAMPAIGN_ID"/>
            <column ascending="true" name="CHARGE_ID"/>
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="CUSTOMER_SCHOLARSHIP_ID"/>
            <column ascending="true" name="GL_LEDGER_ID"/>
            <column ascending="true" name="GLACCOUNT_ID"/>
            <column ascending="true" name="PACKAGE_ID"/>
            <column ascending="true" name="PERMIT_NUMBER"/>
            <column ascending="true" name="RECEIPT_NUMBER"/>
            <column ascending="true" name="REVENUE_SITE_ID"/>
            <column ascending="true" name="TRANSACTION_DATE"/>
            <column ascending="true" name="VOIDED"/>
            <column ascending="true" name="VOIDED_BY"/>
            <column ascending="true" name="VOIDED_DATE_TIME"/>
         </index>
         <index name="FINANCIAL_GL_TRANSACTIONS_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="FINANCIAL_GL_TRANSACTIONS_PERMIT_NUMBER_IX" unique="false">
            <column ascending="true" name="PERMIT_NUMBER"/>
         </index>
         <index name="FINANCIAL_GL_TRANSACTIONS_receipt_number_IX" unique="false">
            <column ascending="true" name="RECEIPT_NUMBER"/>
         </index>
         <index name="FINANCIAL_GL_TRANSACTIONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="FINANCIAL_GL_TRANSACTIONS_TRANSACTION_DATE_CUSTOMER_ID_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_DATE"/>
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="FINANCIAL_GL_TRANSACTIONS_VOIDED_IX" unique="false">
            <column ascending="true" name="VOIDED"/>
            <column ascending="true" name="VOIDED_DATE_TIME"/>
         </index>
      </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="hub" type="TABLE">
         <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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="0" id="5" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="FROM_EMAIL_ADDRESSES_FROM_EMAIL_ADDRESS_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="FROM_EMAIL_ADDRESS_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FROM_EMAIL_ADDRESSES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="FROM_EMAIL_ADDRESSES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="FUNDS" numRows="0" remarks="Your organization's defined funds" schema="hub" type="TABLE">
         <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="hub" 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="0" id="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="FUND_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="FUNDS_FUND_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="FUND_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="FUNDS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="GENDERS" numRows="0" remarks="Your organization's defined genders" schema="hub" type="TABLE">
         <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="hub" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_DIVISIONS"/>
            <child catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LOCKER_ROOMS"/>
            <child catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGES"/>
            <child catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAMS"/>
            <child catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="0" id="7" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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="ORG_ID" sequenceNumberInPK="2"/>
         <primaryKey column="GENDER_INDEX" sequenceNumberInPK="3"/>
         <index name="GENDERS_GENDER_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="GENDER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="GENDERS_GENDER_INDEX_IX" unique="false">
            <column ascending="true" name="GENDER_INDEX"/>
         </index>
         <index name="GENDERS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="GEOGRAPHIC_AREAS" numRows="0" remarks="Your organization's defined geographic areas" schema="hub" type="TABLE">
         <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="hub" table="CENTERS"/>
            <child catalog="ActiveHub" column="GEOGRAPHIC_AREA_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COMPANIES"/>
            <child catalog="ActiveHub" column="GEOGRAPHIC_AREA_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMERS"/>
            <child catalog="ActiveHub" column="GEOGRAPHIC_AREA_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITIES"/>
            <child catalog="ActiveHub" column="GEOGRAPHIC_AREA_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="0" id="5" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="GEOGRAPHIC_AREA_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="GEOGRAPHIC_AREAS_GEOGRAPHIC_AREA_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="GEOGRAPHIC_AREA_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="GEOGRAPHIC_AREAS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="GIFT_CARD_TYPE_SITES" numRows="0" remarks="Contains information on site restrictions for gift card types" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="2" 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="hub" table="GIFT_CARD_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="SITES"/>
         </column>
         <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="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="GIFT_CARD_TYPE_SITE_ID" sequenceNumberInPK="2"/>
         <index name="GIFT_CARD_TYPE_SITES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="GIFT_CARD_TYPE_SITES_GIFT_CARD_TYPE_ID_IX" unique="false">
            <column ascending="true" name="GIFT_CARD_TYPE_ID"/>
         </index>
         <index name="GIFT_CARD_TYPE_SITES_GIFT_CARD_TYPE_SITE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="GIFT_CARD_TYPE_SITE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="GIFT_CARD_TYPE_SITES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="GIFT_CARD_TYPE_SITES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="GIFT_CARD_TYPES" numRows="0" remarks="Your organization's defined gift card types" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="GIFT_CARD_TYPE_SITES"/>
            <child catalog="ActiveHub" column="GIFT_CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="GIFT_CARDS"/>
         </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="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="4" 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="5" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="GIFT_CARD_TYPE_ID" sequenceNumberInPK="2"/>
         <index name="GIFT_CARD_TYPES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="GIFT_CARD_TYPES_GIFT_CARD_TYPE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="GIFT_CARD_TYPE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="GIFT_CARD_TYPES_REVENUE_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="REVENUE_GLACCOUNT_ID"/>
         </index>
         <index name="GIFT_CARD_TYPES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="GIFT_CARDS" numRows="0" remarks="Contains information on gift cards that have been sold" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="GIFT_CARD_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="GIFT_CARD_TYPES"/>
         </column>
         <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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="9" 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="10" 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="11" 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="12" 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="13" 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="3" id="14" 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="15" 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="16" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" 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="18" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="GIFT_CARD_ID" sequenceNumberInPK="2"/>
         <index name="GIFT_CARDS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="GIFT_CARDS_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="COMPANY_ID"/>
         </index>
         <index name="GIFT_CARDS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="GIFT_CARDS_GIFT_CARD_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="GIFT_CARD_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="GIFT_CARDS_GIFT_CARD_TYPE_ID_IX" unique="false">
            <column ascending="true" name="GIFT_CARD_TYPE_ID"/>
         </index>
         <index name="GIFT_CARDS_ISSUED_BY_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="ISSUED_BY_SYSTEMUSER_ID"/>
         </index>
         <index name="GIFT_CARDS_LIABILITY_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="LIABILITY_GLACCOUNT_ID"/>
         </index>
         <index name="GIFT_CARDS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="GIFT_CARDS_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="GLACCOUNTS" numRows="0" remarks="Master table showing GL accounts details" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="ACTIVITY_CATEGORIES"/>
            <child catalog="ActiveHub" column="DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_CATEGORIES"/>
            <child catalog="ActiveHub" column="DEFAULT_REVENUE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_CATEGORIES"/>
            <child catalog="ActiveHub" column="DEFAULT_EXPENSE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_DEPARTMENTS"/>
            <child catalog="ActiveHub" column="DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_DEPARTMENTS"/>
            <child catalog="ActiveHub" column="DEFAULT_REVENUE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_DEPARTMENTS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_FEES"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CAMPAIGNS"/>
            <child catalog="ActiveHub" column="OVER_CREDIT_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CASH_SUMMARY_SHEET_LAYOUTS"/>
            <child catalog="ActiveHub" column="OVER_DEBIT_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CASH_SUMMARY_SHEET_LAYOUTS"/>
            <child catalog="ActiveHub" column="SHORT_CREDIT_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CASH_SUMMARY_SHEET_LAYOUTS"/>
            <child catalog="ActiveHub" column="SHORT_DEBIT_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CASH_SUMMARY_SHEET_LAYOUTS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHARGES"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_BATCHES"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPONS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOM_PAYMENT_TYPES"/>
            <child catalog="ActiveHub" column="DEFERRED_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="REVENUE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="REVENUE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="GIFT_CARD_TYPES"/>
            <child catalog="ActiveHub" column="LIABILITY_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="GIFT_CARDS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="GLOBAL_DISCOUNTS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LOCKER_FEES"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGE_FEES"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="POS_PRODUCTS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="POS_PRODUCTS_CENTER_QUANTITY"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_FEES"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_DETAIL_PAYMENTS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_GL_POSTINGS"/>
            <child catalog="ActiveHub" column="PAYMENT_GL_ACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="DEFAULT_EXPENSE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SCHEDULE_TYPES"/>
            <child catalog="ActiveHub" column="DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SCHEDULE_TYPES"/>
            <child catalog="ActiveHub" column="TAX_GLACCOUNT_ID_1" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SITES"/>
            <child catalog="ActiveHub" column="TAX_GLACCOUNT_ID_2" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SITES"/>
            <child catalog="ActiveHub" column="TAX_GLACCOUNT_ID_3" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SITES"/>
            <child catalog="ActiveHub" column="TAX_GLACCOUNT_ID_4" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SITES"/>
            <child catalog="ActiveHub" column="TAX_GLACCOUNT_ID_5" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SITES"/>
            <child catalog="ActiveHub" column="TAX_GLACCOUNT_ID_6" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SITES"/>
            <child catalog="ActiveHub" column="TAX_GLACCOUNT_ID_7" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SITES"/>
            <child catalog="ActiveHub" column="TAX_GLACCOUNT_ID_8" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SITES"/>
            <child catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="STANDARD_CHARGES"/>
            <child catalog="ActiveHub" column="ACCOUNTS_RECEIVABLE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="DEFERRED_RECEIVABLES_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="DEFERRED_REVENUE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="FUTURE_RECEIVABLES_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="PAYMENT_CASH_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="PAYMENT_CHECK_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="PAYMENT_CREDIT_CARD_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="PAYMENT_CREDIT_MEMO_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="PAYMENT_DEBIT_CARD_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="PAYMENT_ECP_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="REFUND_CLEARING_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
            <child catalog="ActiveHub" column="EARLY_REGISTRATION_DISCOUNT_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="USAGE_FEES"/>
            <child catalog="ActiveHub" column="FEE_GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" 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="(getdate())" 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="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="14" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="DEPARTMENT_ID" nullable="true" remarks="The department ID" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="GLACCOUNT_ID" sequenceNumberInPK="2"/>
         <index name="PK__GLACCOUN__8ED5E723D988F0CF" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="GLACCOUNTS_GLACCOUNT_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="GLACCOUNT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="GLACCOUNTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="GLOBAL_DISCOUNTS" numRows="0" remarks="Master table showing defined global discount and surcharge data" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <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_AMOUNT" nullable="true" remarks="The default discount amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="8" name="DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="10" name="DISCOUNT_GROUP_NUMBER" nullable="true" remarks="Discount group number" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="27" 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="28" 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="29" 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="30" 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="31" 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="32" 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="33" 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="34" 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="35" 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="36" 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="37" 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="38" 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="39" 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="0" id="40" name="IS_SURCHARGE" nullable="true" remarks="Whether this record is for a surcharge rather than a discount (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" 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="42" 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="43" 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="44" 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="45" 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="46" 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="47" 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="48" 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="49" 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="50" 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="(getdate())" digits="3" id="51" 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="52" 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="53" 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="54" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="GLOBAL_DISCOUNT_ID" sequenceNumberInPK="2"/>
         <index name="GLOBAL_DISCOUNTS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="GLOBAL_DISCOUNTS_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_ID"/>
         </index>
         <index name="GLOBAL_DISCOUNTS_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="GLOBAL_DISCOUNTS_GLOBAL_DISCOUNT_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="GLOBAL_DISCOUNT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="GLOBAL_DISCOUNTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="GLOBAL_DISCOUNTS_SYSTEM_GL_ACCOUNT_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="GRADES" numRows="0" remarks="Your organization's defined school grades" schema="hub" type="TABLE">
         <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="hub" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="MIN_GRADE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="GRADE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="0" id="4" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="GRADE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="GRADES_GRADE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="GRADE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="GRADES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="INSTRUCTOR_ROLES" numRows="0" remarks="Your organization's defined instructor roles" schema="hub" type="TABLE">
         <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="hub" 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="0" id="22" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <primaryKey column="INSTRUCTOR_ROLE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="INSTRUCTOR_ROLES_INSTRUCTOR_ROLE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="INSTRUCTOR_ROLE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="INSTRUCTOR_ROLES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="INSTRUCTORS" numRows="0" remarks="Master table showing instructor details" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="INSTRUCTOR_TYPE_ID" nullable="true" remarks="DEPRECATED - UNUSED" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="RETIRED" nullable="true" remarks="Whether the instructor record has been retired (Yes / No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="INSTRUCTOR_ID" sequenceNumberInPK="2"/>
         <index name="INSTRUCTORS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="INSTRUCTORS_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="COMPANY_ID"/>
         </index>
         <index name="INSTRUCTORS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="INSTRUCTORS_INSTRUCTOR_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="INSTRUCTOR_FACILITY_ID"/>
         </index>
         <index name="INSTRUCTORS_INSTRUCTOR_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="INSTRUCTOR_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="INSTRUCTORS_INSTRUCTOR_TYPE_ID_IX" unique="false">
            <column ascending="true" name="INSTRUCTOR_TYPE_ID"/>
         </index>
         <index name="INSTRUCTORS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="INSTRUCTORS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="INTEREST_LISTS" numRows="0" remarks="Customer interest lists for facilities, packages, activities and programs" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="ACTIVITY_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="ACTIVITY_SUB_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="hub" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="11" 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="12" 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="13" 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="14" name="PROGRAM_MAIL_ID" nullable="true" remarks="Program interest list ID (for internal synchronization)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="INTEREST_LIST_ID" sequenceNumberInPK="2"/>
         <primaryKey column="CUSTOMER_MAIL_ID" sequenceNumberInPK="3"/>
         <primaryKey column="FACILITY_MAIL_ID" sequenceNumberInPK="4"/>
         <primaryKey column="PACKAGE_MAIL_ID" sequenceNumberInPK="5"/>
         <primaryKey column="ACTIVITY_MAIL_ID" sequenceNumberInPK="6"/>
         <primaryKey column="PROGRAM_MAIL_ID" sequenceNumberInPK="7"/>
         <index name="INTEREST_LISTS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="INTEREST_LISTS_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="INTEREST_LISTS_ACTIVITY_MAIL_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_MAIL_ID"/>
         </index>
         <index name="INTEREST_LISTS_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="CATEGORY_ID"/>
         </index>
         <index name="INTEREST_LISTS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="INTEREST_LISTS_CUSTOMER_MAIL_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_MAIL_ID"/>
         </index>
         <index name="INTEREST_LISTS_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="INTEREST_LISTS_FACILITY_MAIL_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_MAIL_ID"/>
         </index>
         <index name="INTEREST_LISTS_INTEREST_LIST_ID_ACTIVITY_MAIL_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="INTEREST_LIST_ID"/>
            <column ascending="true" name="ACTIVITY_MAIL_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="INTEREST_LISTS_INTEREST_LIST_ID_CUSTOMER_MAIL_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="INTEREST_LIST_ID"/>
            <column ascending="true" name="CUSTOMER_MAIL_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="INTEREST_LISTS_INTEREST_LIST_ID_FACILITY_MAIL_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="INTEREST_LIST_ID"/>
            <column ascending="true" name="FACILITY_MAIL_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="INTEREST_LISTS_INTEREST_LIST_ID_IX" unique="false">
            <column ascending="true" name="INTEREST_LIST_ID"/>
         </index>
         <index name="INTEREST_LISTS_INTEREST_LIST_ID_PACKAGE_MAIL_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="INTEREST_LIST_ID"/>
            <column ascending="true" name="PACKAGE_MAIL_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="INTEREST_LISTS_INTEREST_LIST_ID_PROGRAM_MAIL_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="INTEREST_LIST_ID"/>
            <column ascending="true" name="PROGRAM_MAIL_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="INTEREST_LISTS_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="INTEREST_LISTS_PACKAGE_MAIL_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_MAIL_ID"/>
         </index>
         <index name="INTEREST_LISTS_PROGRAM_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_ID"/>
         </index>
         <index name="INTEREST_LISTS_PROGRAM_MAIL_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_MAIL_ID"/>
         </index>
         <index name="INTEREST_LISTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="INTEREST_LISTS_SUB_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="SUB_CATEGORY_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ITEM_CHANGE_LOG" numRows="0" remarks="" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="CHANGE_LOG_ID" sequenceNumberInPK="2"/>
         <index name="PK_ITEM_CHANGE_LOG" unique="true">
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="CHANGE_LOG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_CONTACTS" numRows="0" remarks="Your organization's defined league contacts" schema="hub" type="TABLE">
         <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="hub" table="LEAGUES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="CONTACT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" 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="0" id="7" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_CONTACT_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LEAGUE_CONTACTS_LEAGUE_CONTACT_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LEAGUE_CONTACT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LEAGUE_CONTACTS_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="COMPANY_ID"/>
         </index>
         <index name="LEAGUE_CONTACTS_CONTACT_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CONTACT_TYPE_ID"/>
         </index>
         <index name="LEAGUE_CONTACTS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="LEAGUE_CONTACTS_LEAGUE_ID_IX" unique="false">
            <column ascending="true" name="LEAGUE_ID"/>
         </index>
         <index name="LEAGUE_CONTACTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_FACILITIES" numRows="0" remarks="Your organization's defined league facilities" schema="hub" type="TABLE">
         <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="hub" table="LEAGUES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_FACILITY_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LEAGUE_FACILITIES_LEAGUE_FACILITY_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LEAGUE_FACILITY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LEAGUE_FACILITIES_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="LEAGUE_FACILITIES_LEAGUE_ID_IX" unique="false">
            <column ascending="true" name="LEAGUE_ID"/>
         </index>
         <index name="LEAGUE_FACILITIES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_NO_PLAY_DATES" numRows="0" remarks="Your organization's defined league no play dates" schema="hub" type="TABLE">
         <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="hub" table="LEAGUES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="0" id="4" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LEAGUE_NO_PLAY_DATES_LEAGUE_NO_PLAY_DATE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LEAGUE_NO_PLAY_DATE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LEAGUE_NO_PLAY_DATES_LEAGUE_ID_IX" unique="false">
            <column ascending="true" name="LEAGUE_ID"/>
         </index>
         <index name="LEAGUE_NO_PLAY_DATES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_OFFICIALS" numRows="0" remarks="Your organization's defined league officials" schema="hub" type="TABLE">
         <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="hub" table="LEAGUES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="OFFICIALS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_OFFICIAL_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LEAGUE_OFFICIALS_LEAGUE_OFFICIAL_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LEAGUE_OFFICIAL_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LEAGUE_OFFICIALS_LEAGUE_ID_IX" unique="false">
            <column ascending="true" name="LEAGUE_ID"/>
         </index>
         <index name="LEAGUE_OFFICIALS_OFFICIAL_ID_IX" unique="false">
            <column ascending="true" name="OFFICIAL_ID"/>
         </index>
         <index name="LEAGUE_OFFICIALS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_SCHEDULE_FACILITIES" numRows="0" remarks="Your organization's defined league schedule facilities" schema="hub" type="TABLE">
         <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_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="hub" table="LEAGUE_SCHEDULES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LEAGUE_SCHEDULE_FACILITIES_LEAGUE_SCHEDULE_FACILITY_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LEAGUE_SCHEDULE_FACILITY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_FACILITIES_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_FACILITIES_LEAGUE_SCHEDULE_ID_IX" unique="false">
            <column ascending="true" name="LEAGUE_SCHEDULE_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_FACILITIES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_SCHEDULE_OFFICIALS" numRows="0" remarks="Your organization's defined league schedule officials" schema="hub" type="TABLE">
         <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_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="hub" table="LEAGUE_SCHEDULES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="OFFICIALS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LEAGUE_SCHEDULE_OFFICIALS_LEAGUE_SCHEDULE_OFFICIAL_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LEAGUE_SCHEDULE_OFFICIAL_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_OFFICIALS_LEAGUE_SCHEDULE_ID_IX" unique="false">
            <column ascending="true" name="LEAGUE_SCHEDULE_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_OFFICIALS_OFFICIAL_ID_IX" unique="false">
            <column ascending="true" name="OFFICIAL_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_OFFICIALS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_SCHEDULE_PAIRING_OFFICIALS" numRows="0" remarks="Your organization's defined league schedule pairing officials" schema="hub" type="TABLE">
         <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_SCHEDULE_PAIRING_ID" nullable="true" remarks="The ID of the league schedule pairing" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="LEAGUE_SCHEDULE_PAIRING_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_SCHEDULE_PAIRINGS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="OFFICIALS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LEAGUE_SCHEDULE_PAIRING_OFFICIALS_LEAGUE_SCHEDULE_PAIRING_OFFICIAL_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LEAGUE_SCHEDULE_PAIRING_OFFICIAL_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_PAIRING_OFFICIALS_LEAGUE_SCHEDULE_PAIRING_ID_IX" unique="false">
            <column ascending="true" name="LEAGUE_SCHEDULE_PAIRING_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_PAIRING_OFFICIALS_OFFICIAL_ID_IX" unique="false">
            <column ascending="true" name="OFFICIAL_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_PAIRING_OFFICIALS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_SCHEDULE_PAIRINGS" numRows="0" remarks="Your organization's defined league schedule match and game pairings" schema="hub" type="TABLE">
         <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="hub" table="LEAGUE_SCHEDULE_PAIRING_OFFICIALS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" 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="hub" table="LEAGUE_SCHEDULES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="TEAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="TEAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="TEAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" name="FACILITY_ID" nullable="true" remarks="The ID facility for this pairing (Yes/No)" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="FACILITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" 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="8" 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="9" 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="hub" table="FACILITY_RESERVATION"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="11" 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="hub" table="POSTPONEMENT_REASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="HOME_SCORE" nullable="true" remarks="The home team score" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="AWAY_SCORE" nullable="true" remarks="The away team score" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" 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="24" 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="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" 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="26" 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="27" 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="0" id="28" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LEAGUE_SCHEDULE_PAIRINGS_LEAGUE_SCHEDULE_PAIRING_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LEAGUE_SCHEDULE_PAIRING_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_PAIRINGS_AWAY_TEAM_ID_IX" unique="false">
            <column ascending="true" name="AWAY_TEAM_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_PAIRINGS_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_PAIRINGS_FACILITY_SCHEDULE_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_SCHEDULE_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_PAIRINGS_HOME_TEAM_ID_IX" unique="false">
            <column ascending="true" name="HOME_TEAM_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_PAIRINGS_LEAGUE_SCHEDULE_ID_IX" unique="false">
            <column ascending="true" name="LEAGUE_SCHEDULE_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_PAIRINGS_OFFICIAL_TEAM_ID_IX" unique="false">
            <column ascending="true" name="OFFICIAL_TEAM_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_PAIRINGS_POSTPONEMENT_REASON_ID_IX" unique="false">
            <column ascending="true" name="POSTPONEMENT_REASON_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_PAIRINGS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATIONS" numRows="0" remarks="Your organization's defined league schedule timeslot configurations" schema="hub" type="TABLE">
         <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="hub" table="LEAGUE_SCHEDULE_TIMESLOTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" 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="hub" table="LEAGUE_SCHEDULES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="4" 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="0" id="5" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATIONS_LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATION_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATIONS_LEAGUE_SCHEDULE_ID_IX" unique="false">
            <column ascending="true" name="LEAGUE_SCHEDULE_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATIONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_SCHEDULE_TIMESLOTS" numRows="0" remarks="Your organization's defined league schedule timeslots" schema="hub" type="TABLE">
         <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_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="hub" table="LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="4" 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="5" 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="6" 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="hub" table="FACILITIES"/>
         </column>
         <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="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LEAGUE_SCHEDULE_TIMESLOTS_LEAGUE_SCHEDULE_TIMESLOT_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LEAGUE_SCHEDULE_TIMESLOT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_TIMESLOTS_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_TIMESLOTS_LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATION_ID_IX" unique="false">
            <column ascending="true" name="LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATION_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULE_TIMESLOTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_SCHEDULES" numRows="0" remarks="Your organization's defined league schedules" schema="hub" type="TABLE">
         <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="hub" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="LEAGUE_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_SCHEDULE_FACILITIES"/>
            <child catalog="ActiveHub" column="LEAGUE_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_SCHEDULE_OFFICIALS"/>
            <child catalog="ActiveHub" column="LEAGUE_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_SCHEDULE_PAIRINGS"/>
            <child catalog="ActiveHub" column="LEAGUE_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_SCHEDULE_TIMESLOT_CONFIGURATIONS"/>
            <child catalog="ActiveHub" column="LEAGUE_SCHEDULE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="LEAGUES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" 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="5" 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="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="3" id="27" 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="28" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_SCHEDULE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LEAGUE_SCHEDULES_LEAGUE_SCHEDULE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LEAGUE_SCHEDULE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULES_LEAGUE_ID_IX" unique="false">
            <column ascending="true" name="LEAGUE_ID"/>
         </index>
         <index name="LEAGUE_SCHEDULES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LEAGUE_TYPES" numRows="0" remarks="Your organization's defined league types" schema="hub" type="TABLE">
         <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="hub" 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="0" id="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_TYPE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LEAGUE_TYPES_LEAGUE_TYPE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LEAGUE_TYPE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LEAGUE_TYPES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LEAGUES" numRows="0" remarks="Your organization's defined leagues" schema="hub" type="TABLE">
         <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="hub" table="LEAGUE_CONTACTS"/>
            <child catalog="ActiveHub" column="LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_FACILITIES"/>
            <child catalog="ActiveHub" column="LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_NO_PLAY_DATES"/>
            <child catalog="ActiveHub" column="LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_OFFICIALS"/>
            <child catalog="ActiveHub" column="LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_SCHEDULES"/>
            <child catalog="ActiveHub" column="PARENT_LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUES"/>
            <child catalog="ActiveHub" column="LEAGUE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="LEAGUES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" 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="6" 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="hub" table="LEAGUE_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="hub" table="RANKING_SYSTEMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="27" 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="28" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LEAGUE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LEAGUES_LEAGUE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LEAGUE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LEAGUES_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="LEAGUES_LEAGUE_TYPE_ID_IX" unique="false">
            <column ascending="true" name="LEAGUE_TYPE_ID"/>
         </index>
         <index name="LEAGUES_PARENT_LEAGUE_ID_IX" unique="false">
            <column ascending="true" name="PARENT_LEAGUE_ID"/>
         </index>
         <index name="LEAGUES_RANKING_SYSTEM_ID_IX" unique="false">
            <column ascending="true" name="RANKING_SYSTEM_ID"/>
         </index>
         <index name="LEAGUES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="LEAGUES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LOCKER_BANKS" numRows="0" remarks="Your organization's defined locker banks per locker room" schema="hub" type="TABLE">
         <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="hub" 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="hub" table="LOCKER_ROOMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" 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="5" 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="6" 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="7" 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="hub" table="LOCKER_SIZES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="9" 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="10" 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="0" id="11" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LOCKER_BANK_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LOCKER_BANKS_LOCKER_BANK_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LOCKER_BANK_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LOCKER_BANKS_LOCKER_ROOM_ID_IX" unique="false">
            <column ascending="true" name="LOCKER_ROOM_ID"/>
         </index>
         <index name="LOCKER_BANKS_LOCKER_SIZE_ID_IX" unique="false">
            <column ascending="true" name="LOCKER_SIZE_ID"/>
         </index>
         <index name="LOCKER_BANKS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LOCKER_DATE_RANGES" numRows="0" remarks="Your organization's defined locker date ranges for reservations" schema="hub" type="TABLE">
         <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="hub" table="LOCKERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="RESERVATION_DATE_RANGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LOCKER_DATE_RANGES_LOCKER_DATE_RANGE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LOCKER_DATE_RANGE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LOCKER_DATE_RANGES_LOCKER_ID_IX" unique="false">
            <column ascending="true" name="LOCKER_ID"/>
         </index>
         <index name="LOCKER_DATE_RANGES_RESERVATION_DATE_RANGE_ID_IX" unique="false">
            <column ascending="true" name="RESERVATION_DATE_RANGE_ID"/>
         </index>
         <index name="LOCKER_DATE_RANGES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LOCKER_FEES" numRows="0" remarks="Master table showing defined locker fees data" schema="hub" type="TABLE">
         <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="hub" 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="hub" table="LOCKER_ROOMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="LOCKER_SIZES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="8" name="DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="9" 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="10" 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="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="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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="14" 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="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="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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="27" 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="hub" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" 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="29" 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="30" 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="31" 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="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ORG_ID" nullable="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LOCKER_FEE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LOCKER_FEES_LOCKER_FEE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LOCKER_FEE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LOCKER_FEES_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_ID"/>
         </index>
         <index name="LOCKER_FEES_CUSTOMER_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_TYPE_ID"/>
         </index>
         <index name="LOCKER_FEES_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="LOCKER_FEES_LOCKER_ROOM_ID_IX" unique="false">
            <column ascending="true" name="LOCKER_ROOM_ID"/>
         </index>
         <index name="LOCKER_FEES_LOCKER_SIZE_ID_IX" unique="false">
            <column ascending="true" name="LOCKER_SIZE_ID"/>
         </index>
         <index name="LOCKER_FEES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="LOCKER_FEES_SYSTEM_GL_ACCOUNT_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LOCKER_ROOMS" numRows="0" remarks="Your organization's defined locker rooms" schema="hub" type="TABLE">
         <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="hub" table="LOCKER_BANKS"/>
            <child catalog="ActiveHub" column="LOCKER_ROOM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LOCKER_FEES"/>
            <child catalog="ActiveHub" column="LOCKER_ROOM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="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="hub" table="CENTERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="GENDER_INDEX" nullable="true" remarks="The ID of the gender that this locker room is assigned to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GENDER_INDEX" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="GENDERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" 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="6" 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="7" 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="8" 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="9" 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="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="NOTES" nullable="true" remarks="Notes for the locker room" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="0" id="12" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="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="16" name="LOCKER_ROOM_DESCRIPTION" nullable="true" remarks="The locker room description" size="8000" type="varchar" typeCode="12"/>
         <primaryKey column="LOCKER_ROOM_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LOCKER_ROOMS_LOCKER_ROOM_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LOCKER_ROOM_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LOCKER_ROOMS_CENTER_ID_IX" unique="false">
            <column ascending="true" name="CENTER_ID"/>
         </index>
         <index name="LOCKER_ROOMS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LOCKER_SCHEDULES" numRows="0" remarks="Contains information on locker reservations" schema="hub" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="LOCKER_SCHEDULE_ID" nullable="false" remarks="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="hub" table="LOCKERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="2" 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="3" id="3" 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="4" 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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <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="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LOCKER_SCHEDULE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LOCKER_SCHEDULES_LOCKER_SCHEDULE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LOCKER_SCHEDULE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LOCKER_SCHEDULES_END_DATE_TIME_IX" unique="false">
            <column ascending="true" name="END_DATE_TIME"/>
         </index>
         <index name="LOCKER_SCHEDULES_LOCKER_ID_IX" unique="false">
            <column ascending="true" name="LOCKER_ID"/>
         </index>
         <index name="LOCKER_SCHEDULES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="LOCKER_SCHEDULES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="LOCKER_SCHEDULES_START_DATE_TIME_IX" unique="false">
            <column ascending="true" name="START_DATE_TIME"/>
         </index>
         <index name="LOCKER_SCHEDULES_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
         <index name="LOCKER_SCHEDULES_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_ID"/>
         </index>
         <index name="LOCKER_SCHEDULES_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LOCKER_SIZES" numRows="0" remarks="Your organization's defined locker sizes" schema="hub" type="TABLE">
         <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="hub" table="LOCKER_BANKS"/>
            <child catalog="ActiveHub" column="LOCKER_SIZE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LOCKER_FEES"/>
            <child catalog="ActiveHub" column="LOCKER_SIZE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="0" id="2" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LOCKER_SIZE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LOCKER_SIZES_LOCKER_SIZE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LOCKER_SIZE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LOCKER_SIZES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="LOCKERS" numRows="0" remarks="Your organization's defined lockers" schema="hub" type="TABLE">
         <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="hub" table="LOCKER_DATE_RANGES"/>
            <child catalog="ActiveHub" column="LOCKER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="LOCKER_ROOMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="LOCKER_BANKS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="LOCKER_NUMBER" nullable="true" remarks="The locker number" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="7" 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="hub" table="LOCKER_SIZES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="9" 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="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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="LOCKER_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="LOCKERS_LOCKER_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="LOCKER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="LOCKERS_LOCKER_BANK_ID_IX" unique="false">
            <column ascending="true" name="LOCKER_BANK_ID"/>
         </index>
         <index name="LOCKERS_LOCKER_ROOM_ID_IX" unique="false">
            <column ascending="true" name="LOCKER_ROOM_ID"/>
         </index>
         <index name="LOCKERS_LOCKER_SIZE_ID_IX" unique="false">
            <column ascending="true" name="LOCKER_SIZE_ID"/>
         </index>
         <index name="LOCKERS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="MEMBERSHIP_AUDIT_LOG" numRows="0" remarks="Membership history" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="2" 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="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="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="5" 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="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="hub" 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="hub" table="MEMBERSHIPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="hub" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" 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="17" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" 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="(getdate())" 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="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="22" 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="0" id="23" 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="24" 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="25" 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="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="hub" table="REASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" 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="hub" table="REASONS"/>
         </column>
         <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="32" 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="null" name="PACKAGE_CATEGORY_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" 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="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="MEMBERSHIP_HISTORY_ID" sequenceNumberInPK="2"/>
         <index name="MEMBERSHIP_AUDIT_LOG_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="MEMBERSHIP_AUDIT_LOG_BEG_DATE_ONLY_MAX_USES_PACKAGE_ID_VOIDED_YES_NO_ORG_ID_IX" unique="false">
            <column ascending="true" name="BEG_DATE_ONLY"/>
            <column ascending="true" name="MAX_USES"/>
            <column ascending="true" name="PACKAGE_ID"/>
            <column ascending="true" name="VOIDED_YES_NO"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="MEMBERSHIP_AUDIT_LOG_BEG_DATE_ONLY_MAX_USES_VOIDED_YES_NO_IX" unique="false">
            <column ascending="true" name="BEG_DATE_ONLY"/>
            <column ascending="true" name="MAX_USES"/>
            <column ascending="true" name="VOIDED_YES_NO"/>
         </index>
         <index name="MEMBERSHIP_AUDIT_LOG_BEG_DATESTAMP_DATE_EFFECTIVE_PACKAGE_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="BEG_DATESTAMP"/>
            <column ascending="true" name="DATE_EFFECTIVE"/>
            <column ascending="true" name="PACKAGE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="MEMBERSHIP_AUDIT_LOG_BEG_DATESTAMP_HISTORY_TRANSACTION_TYPE_IX" unique="false">
            <column ascending="true" name="BEG_DATESTAMP"/>
            <column ascending="true" name="HISTORY_TRANSACTION_TYPE"/>
         </index>
         <index name="MEMBERSHIP_AUDIT_LOG_DATE_EFFECTIVE_BEG_DATESTAMP_IX" unique="false">
            <column ascending="true" name="DATE_EFFECTIVE"/>
            <column ascending="true" name="BEG_DATESTAMP"/>
         </index>
         <index name="MEMBERSHIP_AUDIT_LOG_DATE_EFFECTIVE_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="DATE_EFFECTIVE"/>
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="MEMBERSHIP_AUDIT_LOG_HISTORY_TRANSACTION_TYPE_IX" unique="false">
            <column ascending="true" name="HISTORY_TRANSACTION_TYPE"/>
         </index>
         <index name="MEMBERSHIP_AUDIT_LOG_MEMBERSHIP_HISTORY_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="MEMBERSHIP_HISTORY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="MEMBERSHIP_AUDIT_LOG_MEMBERSHIP_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="MEMBERSHIP_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="MEMBERSHIP_AUDIT_LOG_nc_cs_ix" unique="false">
            <column ascending="true" name="BEG_DATESTAMP"/>
            <column ascending="true" name="DATE_EFFECTIVE"/>
            <column ascending="true" name="DATE_EXPIRES"/>
            <column ascending="true" name="END_DATESTAMP"/>
            <column ascending="true" name="HISTORY_TRANSACTION_TYPE"/>
            <column ascending="true" name="MEMBERSHIP_HISTORY_ID"/>
            <column ascending="true" name="MEMBERSHIP_ID"/>
            <column ascending="true" name="MEMBERSHIP_STATUS"/>
            <column ascending="true" name="PACKAGE_ID"/>
            <column ascending="true" name="PRIMARYMEMBERCUSTOMER_ID"/>
            <column ascending="true" name="SITE_ID"/>
            <column ascending="true" name="SYSTEMUSER_ID"/>
            <column ascending="true" name="VOIDED"/>
         </index>
         <index name="MEMBERSHIP_AUDIT_LOG_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="MEMBERSHIP_AUDIT_LOG_PRIMARYMEMBERCUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="PRIMARYMEMBERCUSTOMER_ID"/>
         </index>
         <index name="MEMBERSHIP_AUDIT_LOG_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="MEMBERSHIP_AUDIT_LOG_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="MEMBERSHIP_CUSTOMER_PACKAGE_HISTORY" numRows="0" remarks="History of membership package holder customers" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="PROCESSED_DATE" nullable="false" remarks="Date and time record was processed" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="(getdate())" digits="3" id="15" name="LAST_SYNC_TIME" nullable="false" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ACTIVE_HUB_PROCESS_ID" nullable="false" remarks="" size="8" type="bigint" typeCode="-5"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="MEMBERSHIP_ID" sequenceNumberInPK="2"/>
         <primaryKey column="CUSTOMER_ID" sequenceNumberInPK="3"/>
         <primaryKey column="PASS_ID" sequenceNumberInPK="4"/>
         <primaryKey column="VALID_FROM" sequenceNumberInPK="5"/>
         <index name="MEMBERSHIP_CUSTOMER_PACKAGE_HISTORY_ORG_ID_MEMBERSHIP_ID_CUSTOMER_ID_PASS_ID_PK" unique="true">
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="MEMBERSHIP_ID"/>
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="PASS_ID"/>
            <column ascending="true" name="VALID_FROM"/>
         </index>
         <index name="MEMBERSHIP_CUSTOMER_PACKAGE_HISTORY_ACTIVE_HUB_KEY_IX" unique="false">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="MEMBERSHIP_CUSTOMER_PACKAGE_HISTORY_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="MEMBERSHIP_RISK" numRows="0" remarks="" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="SITE_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="PACKAGE_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PACKAGE_CATEGORY_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="MEMBERSHIP_ID" nullable="false" 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="IS_SALE_DISCOUNTED" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="13" name="UNIT_FEE" nullable="true" remarks="" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PASS_COUNT" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="RENEWAL_COUNT" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="USAGE_COUNT" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="IS_FAMILY_MEMBERSHIP" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="MEMBERSHIP_TYPE" nullable="true" remarks="" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="AUTO_RENEWAL_TYPE" nullable="true" remarks="" size="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="DAYS_SINCE_TRAN" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="21" name="AS_OF" nullable="true" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="MODEL_NAME" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="RISK_CATEGORY" nullable="false" remarks="" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="24" name="RETENTION_SCORE" nullable="true" remarks="" size="21" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="RISK_FACTOR_REASONS" nullable="true" remarks="" size="4000" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="26" name="CAPTURE_DT" nullable="false" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="27" name="CREATED_DT" nullable="false" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="ROW_VERSION" nullable="true" remarks="" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" digits="3" id="29" name="LAST_SYNC_TIME" nullable="false" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="" size="8" type="bigint" typeCode="-5"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="MEMBERSHIP_ID" sequenceNumberInPK="2"/>
         <index name="PK_MEMBERSHIP_RISK" unique="true">
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="MEMBERSHIP_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="MEMBERSHIP_RISK_SCORE" numRows="0" remarks="Membership retention scoring and classification" schema="hub" type="TABLE">
         <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="Age" nullable="true" remarks="Customer age in years" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="7" 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="8" 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="9" name="Membership_Age" nullable="true" remarks="Membership age in days" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="package_period" nullable="true" remarks="Package period in days" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="Sale_Discounted" nullable="true" remarks="Was memebership discounted at sale (1 = yes, 0 =no)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="12" name="UNITFEE" nullable="true" remarks="Unit price of membership" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="14" 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="15" 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="16" name="family_membership" nullable="true" remarks="Is the membership a family membership (1 = yes, 0 = no)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="17" name="as_of" nullable="true" remarks="Date used to compute retention score" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" name="capture_dt" nullable="true" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="19" 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="20" 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="0" id="21" name="regression_model" nullable="true" remarks="Model used to generate &quot;retention score&quot;" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="classification_model" nullable="true" remarks="Model used to predict &quot;class&quot;" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="membership_type" nullable="true" remarks="Type of membership for scoring (auto_renewal, retention_eligible)" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="row_version" nullable="true" remarks="" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="AUTORENEWALTYPE" nullable="true" 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="2" type="smallint" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" 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="29" name="created_dt" nullable="true" remarks="Date membership risk was first calculated" size="16" type="datetime" typeCode="93"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="MEMBERSHIP_ID" sequenceNumberInPK="2"/>
         <index name="Membership_Risk_Score_PK" unique="true">
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="MEMBERSHIP_ID"/>
         </index>
         <index name="MEMBERSHIP_RISK_SCORE_MEMBERSHIP_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="MEMBERSHIP_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="MEMBERSHIP_RISK_SCORE_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="row_version"/>
         </index>
         <index name="ORG_ID_RETENTION_SCORE" unique="false">
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="retention_score"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="MEMBERSHIP_RISK_STATS" numRows="0" remarks="Membership Risk Stats as of date" schema="hub" type="TABLE">
         <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="3" id="1" name="as_of" nullable="false" remarks="Date used to compute retention score" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="membership_type" nullable="false" remarks="Type of membership for scoring (auto_renewal, retention_eligible)" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="scores" nullable="true" remarks="Number of memberships scored" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="score_MIN" nullable="true" remarks="Minimum retention score" size="21" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="score_MAX" nullable="true" remarks="Maximum retention score" size="21" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="score_AVG" nullable="true" remarks="Average retention score" size="21" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="score_STDEV" nullable="true" remarks="Standard deviation of retention scores" size="21" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="model_intercept" nullable="true" remarks="Intercept from model used to predict retention score" size="21" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="factors" nullable="true" remarks="Predictors used to build models" size="1073741823" type="nvarchar" typeCode="2005"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="score_red_top_bnd" nullable="true" remarks="Upper level score for bucket = Red membership group (average less one standard deviation)" size="21" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="score_yellow_top_bnd" nullable="true" remarks="Upper level score for bucket = Yellow membership group (average plus one standard deviation)" size="21" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="12" name="capture_dt" nullable="true" remarks="Date membership retention scoring was completed" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="row_version" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="classifier" nullable="true" remarks="Class used for membership risk classification" size="2048" type="nvarchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="regressor" nullable="true" remarks="Class used for membership risk scoring" size="2048" type="nvarchar" typeCode="12"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="as_of" sequenceNumberInPK="2"/>
         <primaryKey column="membership_type" sequenceNumberInPK="3"/>
         <index name="MEMBERSHIP_RISK_STATS_PK" unique="true">
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="as_of"/>
            <column ascending="true" name="membership_type"/>
         </index>
         <index name="MEMBERSHIP_RISK_STATS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="row_version"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="MEMBERSHIP_USAGE" numRows="0" remarks="Membership pass usage history" schema="hub" type="TABLE">
         <column autoUpdated="true" 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 identity" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="ALTERNATE_KEY_STATUS_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="ALTERNATE_KEY_STATUS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ALTERNATE_KEY_STATUSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="ALTERNATE_KEY_TYPE_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="ALTERNATE_KEY_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ALTERNATE_KEY_TYPES"/>
         </column>
         <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="hub" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" 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="7" 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="8" 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="null" name="PACKAGECATEGORY_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="10" 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="11" 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="hub" table="ENTRY_POINTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="13" 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="14" name="VOIDED" nullable="true" remarks="Shows whether the usage was voided or not" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="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="hub" table="MEMBERSHIPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="CHECKOUT_DATE" nullable="true" remarks="Check out date." size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="CHECKOUT_TIME" nullable="true" remarks="Check out time." size="32" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" 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="hub" table="ENTRY_POINTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" 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="22" name="QUANTITY" nullable="true" remarks="Shows the usage quantity." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" 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="hub" table="CHILD_WATCH_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="CHECK_OUT_MEMBERSHIP_USAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHILD_WATCH_REGISTRATIONS"/>
         </column>
         <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="0" id="25" 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="26" 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="hub" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" 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="28" 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="hub" table="CUSTOMER_ALTERNATE_KEYS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="MEMBERSHIPUSAGE_ID" sequenceNumberInPK="2"/>
         <index name="MEMBERSHIP_USAGE_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="MEMBERSHIP_USAGE_CUSTOMER_ALTERNATE_KEY_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ALTERNATE_KEY_ID"/>
         </index>
         <index name="MEMBERSHIP_USAGE_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="MEMBERSHIP_USAGE_MEMBERSHIP_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="MEMBERSHIP_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="MEMBERSHIP_USAGE_MEMBERSHIPUSAGE_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="MEMBERSHIPUSAGE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="MEMBERSHIP_USAGE_nc_cs_ix" unique="false">
            <column ascending="true" name="CUSTOMER_ALTERNATE_KEY_ID"/>
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="MEMBERSHIPUSAGE_ID"/>
            <column ascending="true" name="PACKAGE_ID"/>
            <column ascending="true" name="POSPRODUCT_ID"/>
            <column ascending="true" name="SITE_ID"/>
            <column ascending="true" name="USAGE_DATE"/>
            <column ascending="true" name="USAGE_TIME"/>
         </index>
         <index name="MEMBERSHIP_USAGE_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="MEMBERSHIP_USAGE_POSPRODUCT_ID_IX" unique="false">
            <column ascending="true" name="POSPRODUCT_ID"/>
         </index>
         <index name="MEMBERSHIP_USAGE_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="MEMBERSHIP_USAGE_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="MEMBERSHIP_USAGE_USAGE_DATE_IX" unique="false">
            <column ascending="true" name="USAGE_DATE"/>
         </index>
      </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="hub" type="TABLE">
         <column autoUpdated="true" 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 identity" 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="hub" table="AR_SCHEDULED_HEADERS"/>
            <child catalog="ActiveHub" column="MEMBERSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CREDIT_CARD_PROCESSING_LOG"/>
            <child catalog="ActiveHub" column="MEMBERSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="MEMBERSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="MEMBERSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="MEMBERSHIP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" 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="hub" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" 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="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">
            <parent catalog="ActiveHub" column="CUSTOMER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="27" 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="28" 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="29" name="CANCELLATION_REASON" nullable="true" remarks="The reason the membership package was terminated" size="800" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="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="33" 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="34" 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="35" 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="36" 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="37" 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="38" 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="39" 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="40" 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="41" 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="42" 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="43" 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="44" 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="45" 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="46" 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="47" 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="48" 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="49" 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="50" 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="51" 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="hub" table="REASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" 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="hub" table="REASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" 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="hub" table="REASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" 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="55" 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="hub" table="REASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" 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="57" 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="58" 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="59" 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="60" 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="61" 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="hub" table="REASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" 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="null" name="PACKAGE_CATEGORY_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="null" name="PACKAGE_SITE_ID" nullable="false" remarks="" size="0" type="Unknown" typeCode="12">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" 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="65" 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="66" 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="67" 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="68" 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="69" 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="70" 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="71" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="MEMBERSHIP_ID" sequenceNumberInPK="2"/>
         <index name="MEMBERSHIPS_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="MEMBERSHIPS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="MEMBERSHIPS_MEMBERSHIP_ID_IX" unique="false">
            <column ascending="true" name="MEMBERSHIP_ID"/>
         </index>
         <index name="MEMBERSHIPS_MEMBERSHIP_ID_MEMBERSHIP_PASS_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="MEMBERSHIP_ID"/>
            <column ascending="true" name="MEMBERSHIP_PASS_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="MEMBERSHIPS_MEMBERSHIP_PASS_ID_IX" unique="false">
            <column ascending="true" name="MEMBERSHIP_PASS_ID"/>
         </index>
         <index name="MEMBERSHIPS_MEMBERSHIP_STATUS_IX" unique="false">
            <column ascending="true" name="MEMBERSHIP_STATUS"/>
         </index>
         <index name="MEMBERSHIPS_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="MEMBERSHIPS_PRIMARY_MEMBER_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="PRIMARY_MEMBER_CUSTOMER_ID"/>
         </index>
         <index name="MEMBERSHIPS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="MEMBERSHIPS_TPB_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="TPB_COMPANY_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="MULTIGLFEE" numRows="0" remarks="Addtional GL fee items" schema="hub" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="true" remarks="The Hub record ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" 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="2" 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="3" 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="4" 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="5" 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="6" name="PERCENTAGE" nullable="true" remarks="Percentage of fee to charge" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="8" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="(getdate())" digits="3" id="10" 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="11" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="" size="8" type="bigint" typeCode="-5"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="MULTIGLFEE_ID" sequenceNumberInPK="2"/>
         <index name="PK_MULTIGLFEE" unique="true">
            <column ascending="true" name="MULTIGLFEE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="MULTIGLFEE_MULTIGLFEE_ID_IX" unique="false">
            <column ascending="true" name="MULTIGLFEE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="NOTE_ALERT_TYPES" numRows="0" remarks="Your organization's defined note alert types" schema="hub" type="TABLE">
         <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="hub" 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="0" id="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="NOTE_ALERT_TYPES_NOTE_ALERT_TYPE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="NOTE_ALERT_TYPE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="NOTE_ALERT_TYPES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="OCCUPATIONS" numRows="0" remarks="Your organization's defined occupations" schema="hub" type="TABLE">
         <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="hub" 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="0" id="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="OCCUPATION_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="OCCUPATIONS_OCCUPATION_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="OCCUPATION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="OCCUPATIONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="OFFICIALS" numRows="0" remarks="Your organization's defined officials" schema="hub" type="TABLE">
         <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="hub" table="LEAGUE_OFFICIALS"/>
            <child catalog="ActiveHub" column="OFFICIAL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_SCHEDULE_OFFICIALS"/>
            <child catalog="ActiveHub" column="OFFICIAL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" 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="5" 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="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="0" id="12" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="OFFICIAL_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="OFFICIALS_OFFICIAL_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="OFFICIAL_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="OFFICIALS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="OFFICIALS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="OFFICIALS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="OrgDeletedRecordsLog" numRows="0" remarks="Internal processing table" schema="hub" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="ACTIVE_HUB_KEY" nullable="false" remarks="ACTIVE HUB ID identity value auto generated by system" size="4" type="int identity" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="OrgDeletedRecordsLog_ID" nullable="true" remarks="Unique ID of the record" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ORG_ID" nullable="true" remarks="Unique ID assigned to the ORG" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="table_name" nullable="true" remarks="ORG Table name from which records were deleted" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="deleted_id" nullable="true" remarks="ID of the record deleted" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="created_dt" nullable="true" remarks="Date and time when the record was pulled from source system" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="(getdate())" digits="3" id="6" name="LAST_SYNC_TIME" nullable="false" remarks="Date and time when the record was pulled into AHUB" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="Clover RUN ID" size="8" type="bigint" typeCode="-5"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <index name="OrgDeletedRecordsLog_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="OrgDeletedRecordsLog_Org_ID_OrgDeletedRecordsLog_ID" unique="false">
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="OrgDeletedRecordsLog_ID"/>
         </index>
         <index name="OrgDeletedRecordsLog_Org_ID_table_name_deleted_id" unique="false">
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="table_name"/>
            <column ascending="true" name="deleted_id"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="ORGS" numRows="0" remarks="Your organization's information" schema="hub" type="TABLE">
         <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="0" id="11" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <index name="ORGS_ORG_ID_PK" unique="true">
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="ORGS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PACKAGE_CATEGORIES" numRows="0" remarks="Your organization's defined package categories" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="PACKAGECATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="CURRENT_PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGE_PREREQUISITES"/>
            <child catalog="ActiveHub" column="PREVIOUS_PACKAGE_CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGE_PREREQUISITES"/>
            <child catalog="ActiveHub" column="CATEGORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="(getdate())" 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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="PREVENT_FURTHER_USE" nullable="true" remarks="Whether this Package Category has been retired from further use (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="PACKAGE_CATEGORY_ID" sequenceNumberInPK="2"/>
         <index name="PACKAGE_CATEGORIES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="PACKAGE_CATEGORIES_PACKAGE_CATEGORY_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="PACKAGE_CATEGORY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PACKAGE_CATEGORIES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PACKAGE_ENTRY_POINT_TIMES" numRows="0" remarks="Defined open times per package entry point" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="hub" 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="(getdate())" 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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="PACKAGEENTRYPOINTTIME_ID" sequenceNumberInPK="2"/>
         <index name="PACKAGE_ENTRY_POINT_TIMES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="PACKAGE_ENTRY_POINT_TIMES_PACKAGEENTRYPOINT_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="PACKAGEENTRYPOINT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PACKAGE_ENTRY_POINT_TIMES_PACKAGEENTRYPOINTTIME_ID_IX" unique="false">
            <column ascending="true" name="PACKAGEENTRYPOINTTIME_ID"/>
         </index>
         <index name="PACKAGE_ENTRY_POINT_TIMES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PACKAGE_ENTRY_POINTS" numRows="0" remarks="Your organization's defined entry points per membership package" schema="hub" type="TABLE">
         <column autoUpdated="true" 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_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="hub" 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="hub" table="ENTRY_POINTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="PACKAGE_ENTRY_POINT_TIMES"/>
         </column>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" name="SUNDAY_CLOSED" nullable="true" remarks="Whether the package entry point is closed on Sundays (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="PACKAGEENTRYPOINT_ID" sequenceNumberInPK="2"/>
         <index name="PACKAGE_ENTRY_POINTS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="PACKAGE_ENTRY_POINTS_ENTRYPOINT_ID_IX" unique="false">
            <column ascending="true" name="ENTRYPOINT_ID"/>
         </index>
         <index name="PACKAGE_ENTRY_POINTS_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="PACKAGE_ENTRY_POINTS_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="PACKAGE_ENTRY_POINTS_PACKAGEENTRYPOINT_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="PACKAGEENTRYPOINT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PACKAGE_ENTRY_POINTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PACKAGE_FEES" numRows="0" remarks="Master table showing defined package fees data" schema="hub" type="TABLE">
         <column autoUpdated="true" 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_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="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PACKAGE_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CHARGE_NAME" nullable="true" remarks="Charge name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" 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="hub" table="GLACCOUNTS"/>
         </column>
         <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="0" id="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="27" 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="28" 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="29" 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="30" 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="31" 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="32" 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="hub" table="CUSTOMER_TYPES"/>
         </column>
         <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="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="36" 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="37" 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="38" 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="39" 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="40" 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="41" 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="42" 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="43" 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="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" 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="45" 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="46" 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="47" name="FEE_DESCRIPTION" nullable="true" remarks="The description of this fee" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="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="51" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="PACKAGE_FEE_ID" sequenceNumberInPK="2"/>
         <index name="PACKAGE_FEES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="PACKAGE_FEES_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_ID"/>
         </index>
         <index name="PACKAGE_FEES_CUSTOMER_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_TYPE_ID"/>
         </index>
         <index name="PACKAGE_FEES_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="PACKAGE_FEES_PACKAGE_FEE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="PACKAGE_FEE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PACKAGE_FEES_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="PACKAGE_FEES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="PACKAGE_FEES_SYSTEM_GL_ACCOUNT_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID"/>
         </index>
      </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="hub" type="TABLE">
         <column autoUpdated="true" 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_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="hub" table="PACKAGES"/>
         </column>
         <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="hub" table="ALTERNATE_KEY_TYPES"/>
         </column>
         <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="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="hub" table="ALTERNATE_KEY_STATUSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ROW_VERSION" nullable="true" remarks="" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="PACKAGE_ALTERNATE_KEY_STATUS_ID" sequenceNumberInPK="2"/>
         <primaryKey column="PACKAGE_ALTERNATE_KEY_TYPE_ID" sequenceNumberInPK="3"/>
         <index name="PACKAGE_LINKS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="PACKAGE_LINKS_ALTERNATE_KEY_STATUS_ID_IX" unique="false">
            <column ascending="true" name="ALTERNATE_KEY_STATUS_ID"/>
         </index>
         <index name="PACKAGE_LINKS_ALTERNATE_KEY_TYPE_ID_IX" unique="false">
            <column ascending="true" name="ALTERNATE_KEY_TYPE_ID"/>
         </index>
         <index name="PACKAGE_LINKS_PACKAGE_ALTERNATE_KEY_STATUS_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ALTERNATE_KEY_STATUS_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PACKAGE_LINKS_PACKAGE_ALTERNATE_KEY_TYPE_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ALTERNATE_KEY_TYPE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PACKAGE_LINKS_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="PACKAGE_LINKS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PACKAGE_PREREQUISITES" numRows="0" remarks="Your organization's defined prerequisites for membership packages" schema="hub" type="TABLE">
         <column autoUpdated="true" 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_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="hub" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" 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="hub" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="9" 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="10" 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="11" 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="12" 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="13" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="PACKAGE_PREREQUISITE_ID" sequenceNumberInPK="2"/>
         <index name="PACKAGE_PREREQUISITES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="PACKAGE_PREREQUISITES_CURRENT_PACKAGE_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="CURRENT_PACKAGE_CATEGORY_ID"/>
         </index>
         <index name="PACKAGE_PREREQUISITES_CURRENT_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="CURRENT_PACKAGE_ID"/>
         </index>
         <index name="PACKAGE_PREREQUISITES_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="PACKAGE_PREREQUISITES_PACKAGE_PREREQUISITE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="PACKAGE_PREREQUISITE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PACKAGE_PREREQUISITES_PREVIOUS_PACKAGE_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="PREVIOUS_PACKAGE_CATEGORY_ID"/>
         </index>
         <index name="PACKAGE_PREREQUISITES_PREVIOUS_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PREVIOUS_PACKAGE_ID"/>
         </index>
         <index name="PACKAGE_PREREQUISITES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PACKAGES" numRows="0" remarks="Master table showing packages detail" schema="hub" type="TABLE">
         <column autoUpdated="true" 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_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="hub" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="MEMBER_PREFILL_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_PREREQUISITES"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="INTEREST_LISTS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGE_ENTRY_POINTS"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGE_FEES"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGE_LINKS"/>
            <child catalog="ActiveHub" column="CURRENT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGE_PREREQUISITES"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGE_PREREQUISITES"/>
            <child catalog="ActiveHub" column="PREVIOUS_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGE_PREREQUISITES"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PRELIMINARY_DRAFTS"/>
            <child catalog="ActiveHub" column="PREREQUISITE_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PREREQUISITES"/>
            <child catalog="ActiveHub" column="PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" name="AGES_MAX" nullable="true" remarks="Minimum participant age (year) of the membership package." size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="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="hub" table="PACKAGE_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="hub" table="GENDERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="SPECIFIC_TIMEPERIOD" nullable="true" remarks="Specific time period the package is active (0=N/A, 1=Number of 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="23" 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="24" 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="25" 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="26" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="ALLOW_SUBSIDY" nullable="true" remarks="Allow subsidy for package" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" 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="29" 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="30" name="CANCELLATION_REASON_DATE" nullable="true" remarks="Pacakge cancellation date." size="16" type="datetime" typeCode="93"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="PACKAGE_ID" sequenceNumberInPK="2"/>
         <index name="PACKAGES_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="PACKAGES_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="CATEGORY_ID"/>
         </index>
         <index name="PACKAGES_GENDER_INDEX_IX" unique="false">
            <column ascending="true" name="GENDER_INDEX"/>
         </index>
         <index name="PACKAGES_PACKAGE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="PACKAGE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PACKAGES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="PACKAGES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PARENT_LOCATIONS" numRows="0" remarks="Your organization's defined parent locations" schema="hub" type="TABLE">
         <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="hub" table="CHILD_WATCH_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="PARENT_LOCATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_ATTENDANCE_HISTORY"/>
            <child catalog="ActiveHub" column="PARENT_LOCATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="0" id="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PARENT_LOCATION_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="PARENT_LOCATIONS_PARENT_LOCATION_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="PARENT_LOCATION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PARENT_LOCATIONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PARTICIPANT_ZONE_POSTAL_CODES" numRows="0" remarks="Postal codes that are eligible for priority registration grouped into zones" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="3" 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="4" 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="5" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="POSTAL_CODE_ID" sequenceNumberInPK="2"/>
         <index name="PK_PARTICIPANT_ZONE_POSTAL_CODES" unique="true">
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="POSTAL_CODE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PARTICIPANT_ZONES" numRows="0" remarks="Zones that are eligible for pririty registration" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="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="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="5" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="PARTICIPANT_ZONE_ID" sequenceNumberInPK="2"/>
         <index name="PK_PARTICIPANT_ZONES" unique="true">
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="PARTICIPANT_ZONE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PAYMENT_CHARGEBACKS" numRows="0" remarks="Payment chargeback information" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="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="3" 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="hub" table="RECEIPT_PAYMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="RECEIPT_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" 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="4" id="7" 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="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" 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="18" name="CHARGEBACK_CATEGORY_ID" nullable="true" remarks="Identifies the last activity that occurred regarding the chargeback" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="CHARGEBACK_REASON_ID" nullable="true" remarks="Identifies the reason that the chargeback was initiated" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" 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="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="27" 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="28" 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="29" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" 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="34" 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="35" 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="36" 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="37" 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="38" name="INVOICE_STATUS" nullable="true" remarks="The status of the invoice for this chargeback" size="50" type="varchar" typeCode="12"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="CLIENT_TRANSACTION_ID" sequenceNumberInPK="2"/>
         <index name="PAYMENT_CHARGEBACKS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="PAYMENT_CHARGEBACKS_CLIENT_TRANSACTION_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="CLIENT_TRANSACTION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PAYMENT_CHARGEBACKS_MODIFIED_DATE_TIME_IX" unique="false">
            <column ascending="true" name="MODIFIED_DATE_TIME"/>
         </index>
         <index name="PAYMENT_CHARGEBACKS_ORIGINAL_TRANSACTION_DATE_TIME_IX" unique="false">
            <column ascending="true" name="ORIGINAL_TRANSACTION_DATE_TIME"/>
         </index>
         <index name="PAYMENT_CHARGEBACKS_RECEIPT_HEADER_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_HEADER_ID"/>
         </index>
         <index name="PAYMENT_CHARGEBACKS_RECEIPT_PAYMENT_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_PAYMENT_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PAYMENTPLANCONFIG" numRows="0" remarks="Payment plan configurations" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="2" 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="3" name="INITIAL_AMOUNT" nullable="true" remarks="Initital payment amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" 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="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="12" name="FEE_AMOUNT" nullable="true" remarks="Payment plan price amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="14" 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="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" 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="16" 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="17" name="OVERRIDE_FLAG" nullable="true" remarks="Whether this charge can be overridden" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" name="CUSTOMERTYPE" nullable="true" remarks="The customer type description (General/General Public)" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" 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="26" 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="27" 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="28" 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="29" 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="30" 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="31" 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="32" name="INITIAL_PERCENT" nullable="true" remarks="Initial payment percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" 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="34" 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="35" 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="36" 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="37" 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="38" 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="39" 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="40" 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="41" 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="42" name="INCLUDE_PAST_MEETING_DATES" nullable="true" remarks="Include previous meeting dates in payment plan (Yes/No)" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" 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="44" 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="45" 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="46" 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="47" 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="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="SYSTEM_GL_ACCOUNT_PACKAGE_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" 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="51" name="ROW_VERSION" nullable="true" remarks="System timestamp (for INTernal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" 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="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="PAYMENTPLAN_CONFIG_ID" sequenceNumberInPK="2"/>
         <index name="PK_PAYMENTPLANCONFIG" unique="true">
            <column ascending="true" name="PAYMENTPLAN_CONFIG_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PAYMENTPLANCONFIGSCHEDULES" numRows="0" remarks="Schedule configuration for payment plans" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="2" 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="3" 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="4" 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="5" 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="6" 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="7" name="ROW_VERSION" nullable="true" remarks="System timestamp (for INTernal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="PAYMENTPLAN_CONFIG_SCHEDULE_ID" sequenceNumberInPK="2"/>
         <index name="PK_PAYMENTPLANCONFIGSCHEDULES" unique="true">
            <column ascending="true" name="PAYMENTPLAN_CONFIG_SCHEDULE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PEAK_LOAD_PERIODS" numRows="0" remarks="Rush event details" schema="hub" type="TABLE">
         <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="3" id="5" 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="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="14" name="FOR_TYPE" nullable="true" remarks="Rush event type" size="50" 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="0" id="16" 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="(getdate())" 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"/>
         <primaryKey column="PEAK_LOAD_PERIOD_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="PEAK_LOAD_PERIODS_PEAK_LOAD_PERIOD_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="PEAK_LOAD_PERIOD_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PERMITS" numRows="0" remarks="Table containing rental permit data" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="AR_SCHEDULED_HEADERS"/>
            <child catalog="ActiveHub" column="PERMIT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="PERMIT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="PERMIT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_USAGE_REVENUE"/>
            <child catalog="ActiveHub" column="PERMIT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="CUSTOMERS"/>
         </column>
         <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="hub" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" 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="8" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="11" name="ORIGINAL_REQUEST_NUMBER" nullable="true" remarks="Original request number" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="EXPIRATION_DATE" nullable="true" remarks="Request expiration date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="EVENT_DATE_DESCRIPTION" nullable="true" remarks="Event dates description" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" 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="22" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="PERMIT_ID" sequenceNumberInPK="2"/>
         <index name="PERMITS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="PERMITS_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="COMPANY_ID"/>
         </index>
         <index name="PERMITS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="PERMITS_CUSTOMER_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_TYPE_ID"/>
         </index>
         <index name="PERMITS_PERMIT_ADMINISTRATOR_ID_IX" unique="false">
            <column ascending="true" name="PERMIT_ADMINISTRATOR_ID"/>
         </index>
         <index name="PERMITS_PERMIT_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="PERMIT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PERMITS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="PERMITS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="PERMITS_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="POS_CONTROL_CODES" numRows="0" remarks="Your organization's defined POS control codes" schema="hub" type="TABLE">
         <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="hub" 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="0" id="18" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="POS_CONTROL_CODES_POS_CONTROL_CODE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="POS_CONTROL_CODE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="POS_CONTROL_CODES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="POS_LAYOUTS" numRows="0" remarks="Your organization's defined POS button layouts" schema="hub" type="TABLE">
         <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="hub" table="POS_LAYOUTS"/>
            <child catalog="ActiveHub" column="EQUIPMENT_LENDING_LAYOUT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="POS_LAYOUT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="POS_LAYOUTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="POS_LAYOUT_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="POS_LAYOUTS_POS_LAYOUT_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="POS_LAYOUT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="POS_LAYOUTS_PARENT_POS_LAYOUT_ID_IX" unique="false">
            <column ascending="true" name="PARENT_POS_LAYOUT_ID"/>
         </index>
         <index name="POS_LAYOUTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="POS_PRODUCTS" numRows="0" remarks="Master table showing defined POS products" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="PRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="POS_PRODUCTS_CENTER_QUANTITY"/>
            <child catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="POS_SALES_DETAILS"/>
            <child catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="POSPRODUCT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="PRODUCT_NAME" nullable="true" remarks="Product name" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" 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="5" name="PRODUCT_DESCRIPTION" nullable="true" remarks="Product description" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="8" name="UPC" nullable="true" remarks="Product UPC code" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="hub" table="PRODUCT_DEPARTMENTS"/>
         </column>
         <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="hub" table="PRODUCT_CLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="hub" table="PRODUCT_SUBCLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="12" name="FEE_AMOUNT" nullable="true" remarks="Product price amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DEFAULT_QUANTITY" nullable="true" remarks="Default sale quantity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="27" 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="28" 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="29" 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="hub" table="DISCLAIMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" 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="31" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" 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="33" 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="34" 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="35" name="DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" 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="37" 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="38" 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="39" 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="40" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" 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="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" 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="43" 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="44" 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="45" 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="46" 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="47" 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="48" 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="49" 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="50" 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="51" 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="52" 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="53" 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="54" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="POSPRODUCT_ID" sequenceNumberInPK="2"/>
         <index name="POS_PRODUCTS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="POS_PRODUCTS_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="POS_PRODUCTS_DISCLAIMER_ID_IX" unique="false">
            <column ascending="true" name="DISCLAIMER_ID"/>
         </index>
         <index name="POS_PRODUCTS_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="POS_PRODUCTS_LAST_VENDOR_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="LAST_VENDOR_COMPANY_ID"/>
         </index>
         <index name="POS_PRODUCTS_POSPRODUCT_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="POSPRODUCT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="POS_PRODUCTS_PRODUCT_CLASS_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_CLASS_ID"/>
         </index>
         <index name="POS_PRODUCTS_PRODUCT_DEPARTMENT_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_DEPARTMENT_ID"/>
         </index>
         <index name="POS_PRODUCTS_PRODUCT_SUBCLASS_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_SUBCLASS_ID"/>
         </index>
         <index name="POS_PRODUCTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="POS_PRODUCTS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="POS_PRODUCTS_SYSTEM_GL_ACCOUNT_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID"/>
         </index>
      </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="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="POS_PRODUCTS"/>
         </column>
         <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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="CENTERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" 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="6" 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="7" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="9" 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="10" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="POSPRODUCT_CENTER_QUANTITY_ID" sequenceNumberInPK="2"/>
         <index name="POS_PRODUCTS_CENTER_QUANTITY_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="POS_PRODUCTS_CENTER_QUANTITY_CENTER_ID_IX" unique="false">
            <column ascending="true" name="CENTER_ID"/>
         </index>
         <index name="POS_PRODUCTS_CENTER_QUANTITY_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="POS_PRODUCTS_CENTER_QUANTITY_POSPRODUCT_CENTER_QUANTITY_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="POSPRODUCT_CENTER_QUANTITY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="POS_PRODUCTS_CENTER_QUANTITY_POSPRODUCT_ID_IX" unique="false">
            <column ascending="true" name="POSPRODUCT_ID"/>
         </index>
         <index name="POS_PRODUCTS_CENTER_QUANTITY_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="POS_PRODUCTS_CENTER_QUANTITY_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="POS_RECEIPTS" numRows="0" remarks="Your organization's defined POS receipts" schema="hub" type="TABLE">
         <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="hub" 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="0" id="4" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="POS_RECEIPT_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="POS_RECEIPTS_POS_RECEIPT_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="POS_RECEIPT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="POS_RECEIPTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="POS_SALES_DETAILS" numRows="0" remarks="POS product sales" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" 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="7" 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="8" 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="9" 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="10" 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="hub" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="RECEIPT_DATE" nullable="true" remarks="Receipt date" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="RECEIPT_TIME" nullable="true" remarks="Receipt time" size="16" type="time" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="14" 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="15" 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="16" 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="17" 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="18" 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="19" name="REFUND_AMOUNT" nullable="true" remarks="The total amount refunded" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="20" name="NET_AMOUNT" nullable="true" remarks="The net amount sold (including zero)." size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" 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="hub" table="TRANSACTIONS"/>
         </column>
         <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="0" id="25" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="26" name="TOTAL_TAX" nullable="true" remarks="The tax amount for the sale" size="21" type="money" typeCode="3"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="RECEIPT_NUMBER" sequenceNumberInPK="2"/>
         <primaryKey column="TRANSACTION_ID" sequenceNumberInPK="3"/>
         <index name="POS_SALES_DETAILS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="POS_SALES_DETAILS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="POS_SALES_DETAILS_POSPRODUCT_ID_IX" unique="false">
            <column ascending="true" name="POSPRODUCT_ID"/>
         </index>
         <index name="POS_SALES_DETAILS_PRODUCT_CLASS_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_CLASS_ID"/>
         </index>
         <index name="POS_SALES_DETAILS_PRODUCT_DEPARTMENT_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_DEPARTMENT_ID"/>
         </index>
         <index name="POS_SALES_DETAILS_PRODUCT_SITE_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_SITE_ID"/>
         </index>
         <index name="POS_SALES_DETAILS_PRODUCT_SUBCLASS_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_SUBCLASS_ID"/>
         </index>
         <index name="POS_SALES_DETAILS_RECEIPT_DATE_IX" unique="false">
            <column ascending="true" name="RECEIPT_DATE"/>
         </index>
         <index name="POS_SALES_DETAILS_RECEIPT_NUMBER_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_NUMBER"/>
            <column ascending="true" name="TRANSACTION_ID"/>
         </index>
         <index name="POS_SALES_DETAILS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="POS_SALES_DETAILS_TRANSACTION_CENTER_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_CENTER_ID"/>
         </index>
         <index name="POS_SALES_DETAILS_TRANSACTION_ID_ORG_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="POS_SALES_DETAILS_TRANSACTION_SITE_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_SITE_ID"/>
         </index>
         <index name="POS_SALES_DETAILS_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="POSTPONEMENT_REASONS" numRows="0" remarks="Your organization's defined postponement reasons" schema="hub" type="TABLE">
         <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="hub" 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="0" id="2" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="POSTPONEMENT_REASON_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="POSTPONEMENT_REASONS_POSTPONEMENT_REASON_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="POSTPONEMENT_REASON_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="POSTPONEMENT_REASONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PRELIMINARY_DRAFTS" numRows="0" remarks="Contains information on upcoming membership renewals" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="PRELIMINARY_DRAFT_ID" nullable="true" remarks="The preliminary draft ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="hub" table="MEMBERSHIPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="14" name="CARD_TYPE_ID" nullable="true" remarks="The card type ID of credit card to be used for the membership renewal payment" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="CARD_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CARD_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" 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="16" 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="17" 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="18" name="REVENUE_SITE_ID" nullable="true" remarks="The site ID 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" 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="20" 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="21" 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="22" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="PRELIMINARY_DRAFT_ID" sequenceNumberInPK="2"/>
         <index name="PRELIMINARY_DRAFTS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="PRELIMINARY_DRAFTS_CARD_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CARD_TYPE_ID"/>
         </index>
         <index name="PRELIMINARY_DRAFTS_MEMBERSHIP_ID_IX" unique="false">
            <column ascending="true" name="MEMBERSHIP_ID"/>
         </index>
         <index name="PRELIMINARY_DRAFTS_ORG_ID_IX" unique="false">
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PRELIMINARY_DRAFTS_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="PRELIMINARY_DRAFTS_PAYER_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="PAYER_COMPANY_ID"/>
         </index>
         <index name="PRELIMINARY_DRAFTS_PAYER_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="PAYER_CUSTOMER_ID"/>
         </index>
         <index name="PRELIMINARY_DRAFTS_PRELIMINARY_DRAFT_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="PRELIMINARY_DRAFT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PRELIMINARY_DRAFTS_REVENUE_SITE_ID_IX" unique="false">
            <column ascending="true" name="REVENUE_SITE_ID"/>
         </index>
         <index name="PRELIMINARY_DRAFTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PREP_CODES" numRows="0" remarks="Contains information on defined prep codes for setup and takedown time duration" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="EVENT_TYPES"/>
            <child catalog="ActiveHub" column="PREP_CODE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITIES"/>
            <child catalog="ActiveHub" column="PREP_CODE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="4" 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="5" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="PREP_CODE_ID" sequenceNumberInPK="2"/>
         <index name="PREP_CODES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="PREP_CODES_PREP_CODE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="PREP_CODE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PREP_CODES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="PREP_CODES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PREREQUISITES" numRows="0" remarks="Your organization's defined prerequisites for activities and programs" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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">
            <parent catalog="ActiveHub" column="ACTIVITY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="PROGRAMS"/>
         </column>
         <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="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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="8" 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="9" 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="10" 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="11" 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="hub" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="13" 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="hub" table="SKILLS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="hub" table="ALTERNATE_KEY_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" 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="19" 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="hub" table="ACTIVITY_CATEGORIES"/>
         </column>
         <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="hub" table="ACTIVITY_SUB_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="PREREQUISITE_ID" sequenceNumberInPK="2"/>
         <index name="PREREQUISITES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="PREREQUISITES_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="PREREQUISITES_ALTERNATE_KEY_TYPE_ID_IX" unique="false">
            <column ascending="true" name="ALTERNATE_KEY_TYPE_ID"/>
         </index>
         <index name="PREREQUISITES_nc_cs_ix" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
            <column ascending="true" name="ALTERNATE_KEY_TYPE_ID"/>
            <column ascending="true" name="PREREQUISITE_ACTIVITY_ID"/>
            <column ascending="true" name="PREREQUISITE_ID"/>
            <column ascending="true" name="PREREQUISITE_PACKAGE_ID"/>
            <column ascending="true" name="PREREQUISITE_PROGRAM_ID"/>
            <column ascending="true" name="PROGRAM_ID"/>
            <column ascending="true" name="SKILL_ID"/>
         </index>
         <index name="PREREQUISITES_PREREQUISITE_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="PREREQUISITE_ACTIVITY_ID"/>
         </index>
         <index name="PREREQUISITES_PREREQUISITE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="PREREQUISITE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PREREQUISITES_PREREQUISITE_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PREREQUISITE_PACKAGE_ID"/>
         </index>
         <index name="PREREQUISITES_PREREQUISITE_PROGRAM_ID_IX" unique="false">
            <column ascending="true" name="PREREQUISITE_PROGRAM_ID"/>
         </index>
         <index name="PREREQUISITES_PROGRAM_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_ID"/>
         </index>
         <index name="PREREQUISITES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="PREREQUISITES_SKILL_ID_IX" unique="false">
            <column ascending="true" name="SKILL_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PRODUCT_CLASSES" numRows="0" remarks="Your organization's defined product classes" schema="hub" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="PRODUCT_CLASS_ID" nullable="false" remarks="The POS class ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="PRODUCT_CLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PRODUCT_CLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PRODUCT_CLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PRODUCT_CLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="POS_PRODUCTS"/>
            <child catalog="ActiveHub" column="PRODUCT_CLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PRODUCT_SUBCLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="PRODUCT_CLASS_NAME" nullable="true" remarks="The POS 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 POS department that this POS 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="hub" table="PRODUCT_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PRODUCT_CLASS_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="PRODUCT_CLASSES_PRODUCT_CLASS_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="PRODUCT_CLASS_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PRODUCT_CLASSES_PRODUCT_DEPARTMENT_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_DEPARTMENT_ID"/>
         </index>
         <index name="PRODUCT_CLASSES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PRODUCT_DEPARTMENTS" numRows="0" remarks="Your organization's defined product departments" schema="hub" type="TABLE">
         <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="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PRODUCT_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PRODUCT_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PRODUCT_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="POS_PRODUCTS"/>
            <child catalog="ActiveHub" column="PRODUCT_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="0" id="2" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PRODUCT_DEPARTMENT_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="PRODUCT_DEPARTMENTS_PRODUCT_DEPARTMENT_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="PRODUCT_DEPARTMENT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PRODUCT_DEPARTMENTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PRODUCT_SUBCLASSES" numRows="0" remarks="Your organization's defined product subclasses" schema="hub" type="TABLE">
         <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="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PRODUCT_SUBCLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PRODUCT_SUBCLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PRODUCT_SUBCLASS_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="PRODUCT_CLASSES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PRODUCT_SUBCLASS_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="PRODUCT_SUBCLASSES_PRODUCT_SUBCLASS_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="PRODUCT_SUBCLASS_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PRODUCT_SUBCLASSES_PRODUCT_CLASS_ID_IX" unique="false">
            <column ascending="true" name="PRODUCT_CLASS_ID"/>
         </index>
         <index name="PRODUCT_SUBCLASSES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PROFILES" numRows="0" remarks="Your organization's defined profiles" schema="hub" type="TABLE">
         <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="hub" table="SYSTEM_USER_PROFILES"/>
            <child catalog="ActiveHub" column="PROFILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="0" id="4" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PROFILE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="PROFILES_PROFILE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="PROFILE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PROFILES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PROGRAM_ATTENDANCE_HISTORY" numRows="0" remarks="Contains the program attendance history of registrant dropoffs and pickups" schema="hub" type="TABLE">
         <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="hub" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="CHECK_OUT_HISTORY_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="PROGRAM_REGISTRATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="4" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="PARENT_LOCATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="7" 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="8" 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="9" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="11" 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="12" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="14" name="ATTENDANCE_NOTES" nullable="true" remarks="Attendance notes entered" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="16" 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="17" 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="0" id="18" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="PROGRAM_ATTENDANCE_HISTORY_PROGRAM_ATTENDANCE_HISTORY_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="PROGRAM_ATTENDANCE_HISTORY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PROGRAM_ATTENDANCE_HISTORY_DROP_OFF_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="DROP_OFF_CUSTOMER_ID"/>
         </index>
         <index name="PROGRAM_ATTENDANCE_HISTORY_PARENT_LOCATION_ID_IX" unique="false">
            <column ascending="true" name="PARENT_LOCATION_ID"/>
         </index>
         <index name="PROGRAM_ATTENDANCE_HISTORY_PICK_UP_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="PICK_UP_CUSTOMER_ID"/>
         </index>
         <index name="PROGRAM_ATTENDANCE_HISTORY_REGISTRATION_ID_IX" unique="false">
            <column ascending="true" name="REGISTRATION_ID"/>
         </index>
         <index name="PROGRAM_ATTENDANCE_HISTORY_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="PROGRAM_ATTENDANCE_HISTORY_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
         <index name="PROGRAM_ATTENDANCE_HISTORY_UNDO_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="UNDO_SYSTEMUSER_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PROGRAM_FEES" numRows="0" remarks="Master table showing defined activity fees data" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PROGRAM_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="CHARGE_NAME" nullable="true" remarks="Charge name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="7" 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="8" 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="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="0" id="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="27" 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="28" 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="29" 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="30" 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="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="hub" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" 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="33" 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="34" 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="35" 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="36" 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="37" 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="38" 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="39" 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="40" 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="41" 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="42" 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="43" 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="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="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="46" 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="47" 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="hub" table="SESSIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" 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="49" 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="50" 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="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" 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="52" 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="53" 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="54" 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="55" 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="56" 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="57" 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="58" 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="59" 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="(getdate())" digits="3" id="60" 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="61" 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="62" 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="63" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="PROGRAM_FEE_ID" sequenceNumberInPK="2"/>
         <index name="PROGRAM_FEES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="PROGRAM_FEES_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_ID"/>
         </index>
         <index name="PROGRAM_FEES_CUSTOMER_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_TYPE_ID"/>
         </index>
         <index name="PROGRAM_FEES_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="PROGRAM_FEES_PROGRAM_FEE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="PROGRAM_FEE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PROGRAM_FEES_PROGRAM_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_ID"/>
         </index>
         <index name="PROGRAM_FEES_QUALIFIED_SESSION_ID_IX" unique="false">
            <column ascending="true" name="QUALIFIED_SESSION_ID"/>
         </index>
         <index name="PROGRAM_FEES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="PROGRAM_FEES_SYSTEM_GL_ACCOUNT_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PROGRAM_REGISTRATIONS" numRows="0" remarks="FlexReg registrations by session date" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="SESSION_ID" nullable="true" remarks="Session ID" size="4" type="int" typeCode="4"/>
         <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="hub" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="SESSION_DATE_ID" nullable="true" remarks="Session Date ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" 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="7" 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="8" name="ENROLLMENTS" nullable="true" remarks="Number of enrollments" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="TRANSACTION_ID" nullable="true" remarks="The most recent transaction ID for this registration" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="RECEIPTNUMBER" nullable="true" remarks="Receipt number" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="11" name="TRANSACTION_DATE_TIME" nullable="true" remarks="Transaction date" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="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="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" 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="16" 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="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="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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="27" 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="28" 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="29" 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="30" 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="31" 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="32" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" 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="34" 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="35" 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="36" 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="37" name="CONTRACT_HOURS" nullable="true" remarks="Number of contracted hours" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" 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="39" 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="40" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" 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="hub" table="PARENT_LOCATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" 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="44" name="CHECK_IN_SIGNATURE" nullable="true" remarks="The bulk signature name if a signature was captured during check-in" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" 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="46" 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="hub" table="PROGRAM_ATTENDANCE_HISTORY"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="47" 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="48" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="CHECK_OUT_SIGNATURE" nullable="true" remarks="The bulk signature name if a signature was captured during check-out" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" 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="52" 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="hub" table="PROGRAM_ATTENDANCE_HISTORY"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="53" 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="54" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="ATTENDANCE_NOTES" nullable="true" remarks="Attendance notes entered" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="56" name="NET_REVENUE" nullable="true" remarks="The revenue amount for the registration excluding tax" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="57" name="TOTAL_TAX" nullable="true" remarks="The tax amount for the registration" size="21" type="money" typeCode="3"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="REGISTRATION_ID" sequenceNumberInPK="2"/>
         <index name="PROGRAM_REGISTRATIONS_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_ABSENT_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="ABSENT_SYSTEMUSER_ID"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_BEGIN_DATE_ONLY_REGISTRATION_STATUS_IX" unique="false">
            <column ascending="true" name="BEGIN_DATE_ONLY"/>
            <column ascending="true" name="REGISTRATION_STATUS"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_BEGIN_DATE_TIME_REGISTRATION_STATUS_IX" unique="false">
            <column ascending="true" name="BEGIN_DATE_TIME"/>
            <column ascending="true" name="REGISTRATION_STATUS"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_CHECK_IN_HISTORY_ID_IX" unique="false">
            <column ascending="true" name="CHECK_IN_HISTORY_ID"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_CHECK_IN_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="CHECK_IN_SYSTEMUSER_ID"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_CHECK_OUT_HISTORY_ID_IX" unique="false">
            <column ascending="true" name="CHECK_OUT_HISTORY_ID"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_CHECK_OUT_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="CHECK_OUT_SYSTEMUSER_ID"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_DROP_OFF_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="DROP_OFF_CUSTOMER_ID"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_ENROLLMENTS_IX" unique="false">
            <column ascending="true" name="ENROLLMENTS"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_nc_cs_ix" unique="false">
            <column ascending="true" name="BEGIN_DATE_TIME"/>
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="END_DATE_TIME"/>
            <column ascending="true" name="ENROLLMENTS"/>
            <column ascending="true" name="ORIGINAL_RECEIPT_HEADER_ID"/>
            <column ascending="true" name="ORIGINAL_TRANSACTION_ID"/>
            <column ascending="true" name="PROGRAM_ID"/>
            <column ascending="true" name="RECEIPT_HEADER_ID"/>
            <column ascending="true" name="REGISTRATION_ID"/>
            <column ascending="true" name="SESSION_ID"/>
            <column ascending="true" name="TRANSACTION_ID"/>
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_ORIGINAL_RECEIPT_HEADER_ID_IX" unique="false">
            <column ascending="true" name="ORIGINAL_RECEIPT_HEADER_ID"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_ORIGINAL_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="ORIGINAL_TRANSACTION_ID"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_PARENT_LOCATION_ID_IX" unique="false">
            <column ascending="true" name="PARENT_LOCATION_ID"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_PICK_UP_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="PICK_UP_CUSTOMER_ID"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_PROGRAM_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_ID"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_RECEIPT_HEADER_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_HEADER_ID"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_REGISTRATION_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="REGISTRATION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_REGISTRATION_SESSION_ID_IX" unique="false">
            <column ascending="true" name="REGISTRATION_SESSION_ID"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_SESSION_ID_IX" unique="false">
            <column ascending="true" name="SESSION_ID"/>
         </index>
         <index name="PROGRAM_REGISTRATIONS_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PROGRAM_SESSIONS" numRows="0" remarks="Master table showing FlexReg program sessions" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="SESSIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" 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="6" 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="7" 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="8" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="PROGRAM_SESSION_ID" sequenceNumberInPK="2"/>
         <index name="PROGRAM_SESSIONS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="PROGRAM_SESSIONS_PROGRAM_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_ID"/>
         </index>
         <index name="PROGRAM_SESSIONS_PROGRAM_SESSION_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="PROGRAM_SESSION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PROGRAM_SESSIONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="PROGRAM_SESSIONS_SESSION_ID_IX" unique="false">
            <column ascending="true" name="SESSION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PROGRAM_TYPES" numRows="0" remarks="Your organization's defined program types" schema="hub" type="TABLE">
         <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="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PROGRAM_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAMS"/>
            <child catalog="ActiveHub" column="PROGRAM_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="0" id="2" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="PROGRAM_TYPE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="PROGRAM_TYPES_PROGRAM_TYPE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="PROGRAM_TYPE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PROGRAM_TYPES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="PROGRAMS" numRows="0" remarks="Master table showing FlexReg programs" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" 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="hub" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_SCHOLARSHIP_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="INTEREST_LISTS"/>
            <child catalog="ActiveHub" column="PREREQUISITE_PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PREREQUISITES"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PREREQUISITES"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_FEES"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_SESSIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="PROGRAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="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="4" 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="5" 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="6" 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="7" 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="8" 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="9" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" 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="(getdate())" 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="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="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="hub" table="SUPERVISORS"/>
         </column>
         <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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" 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="24" 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="25" 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="hub" table="PROGRAM_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" 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="27" 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="hub" table="ACTIVITY_SUB_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" 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="hub" table="ACTIVITY_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" 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="hub" table="SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" 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="hub" table="CHILD_SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" 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="hub" table="GENDERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="DESCRIPTION" nullable="true" remarks="Description of the program" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" 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="34" 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="35" 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="36" 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="37" 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="38" 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="39" 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="40" 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="41" 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="0" id="42" 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="43" 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="44" 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="45" 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="46" 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="47" 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="48" 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="49" 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="3" id="50" 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="51" 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="3" id="52" 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="53" 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="54" 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="3" id="55" 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="56" 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="3" id="57" 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="58" 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="59" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" 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="61" 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="62" name="CANCELLATION_REASON_DATE" nullable="true" remarks="DC Program cancellation date." size="16" type="datetime" typeCode="93"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="PROGRAM_ID" sequenceNumberInPK="2"/>
         <index name="PROGRAMS_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="PROGRAMS_ACTIVITY_DEPARTMENT_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_DEPARTMENT_ID"/>
         </index>
         <index name="PROGRAMS_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="CATEGORY_ID"/>
         </index>
         <index name="PROGRAMS_CHILD_SEASON_ID_IX" unique="false">
            <column ascending="true" name="CHILD_SEASON_ID"/>
         </index>
         <index name="PROGRAMS_GENDER_INDEX_IX" unique="false">
            <column ascending="true" name="GENDER_INDEX"/>
         </index>
         <index name="PROGRAMS_PROGRAM_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="PROGRAM_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="PROGRAMS_PROGRAM_TYPE_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_TYPE_ID"/>
         </index>
         <index name="PROGRAMS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="PROGRAMS_SEASON_ID_IX" unique="false">
            <column ascending="true" name="SEASON_ID"/>
         </index>
         <index name="PROGRAMS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="PROGRAMS_SUB_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="SUB_CATEGORY_ID"/>
         </index>
         <index name="PROGRAMS_SUPERVISOR_ID_IX" unique="false">
            <column ascending="true" name="SUPERVISOR_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="RANKING_SYSTEMS" numRows="0" remarks="Your organization's defined ranking systems for league and tournament standings" schema="hub" type="TABLE">
         <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="hub" 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="0" id="31" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="RANKING_SYSTEM_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="RANKING_SYSTEMS_RANKING_SYSTEM_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="RANKING_SYSTEM_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="RANKING_SYSTEMS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="REASONS" numRows="0" remarks="Your organization's defined reasons, used for withdrawals, cancellations, suspensions, etc." schema="hub" type="TABLE">
         <column autoUpdated="true" 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="hub" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="SUSPENDED_REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="CANCEL_AUTO_RENEWAL_REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="CANCELLATION_REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="SCHEDULED_AUTOMATIC_CANCELLATION_REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="SCHEDULED_CANCELLATION_REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="SUSPENDED_REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="CANCEL_REASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="(getdate())" 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"/>
         <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"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="REASON_ID" sequenceNumberInPK="2"/>
         <index name="REASONS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="REASONS_REASON_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="REASON_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="REASONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </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="hub" type="TABLE">
         <column autoUpdated="true" 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="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="2" 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="hub" table="RECEIPT_PAYMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="GLACCOUNT_ID" nullable="true" remarks="The ID of the GL account that the payment is applied to (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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="5" name="AMOUNT" nullable="true" remarks="The amount of the payment that is applied to this receipt detail" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="7" 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="8" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="RECEIPT_DETAIL_PAYMENT_ID" sequenceNumberInPK="2"/>
         <index name="RECEIPT_DETAIL_PAYMENTS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="RECEIPT_DETAIL_PAYMENTS_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="RECEIPT_DETAIL_PAYMENTS_nc_cs_ix" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
            <column ascending="true" name="RECEIPT_DETAIL_ID"/>
            <column ascending="true" name="RECEIPT_DETAIL_PAYMENT_ID"/>
            <column ascending="true" name="RECEIPT_PAYMENT_ID"/>
         </index>
         <index name="RECEIPT_DETAIL_PAYMENTS_RECEIPT_DETAIL_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_DETAIL_ID"/>
         </index>
         <index name="RECEIPT_DETAIL_PAYMENTS_RECEIPT_DETAIL_PAYMENT_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="RECEIPT_DETAIL_PAYMENT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="RECEIPT_DETAIL_PAYMENTS_RECEIPT_PAYMENT_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_PAYMENT_ID"/>
         </index>
         <index name="RECEIPT_DETAIL_PAYMENTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="RECEIPT_DETAILS" numRows="0" remarks="Posted receipt detail data" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="ACCOUNT_CREDIT_HISTORY"/>
            <child catalog="ActiveHub" column="RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_USAGE"/>
            <child catalog="ActiveHub" column="RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_THIRD_PARTY_BILLING_LINKS"/>
            <child catalog="ActiveHub" column="ORIGINAL_RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_DETAIL_PAYMENTS"/>
            <child catalog="ActiveHub" column="ORIGINAL_RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="ROOT_RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="RECEIPT_DETAIL_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_GL_POSTINGS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="RECEIPT_DETAILS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="hub" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="hub" table="STANDARD_CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" name="DISCOUNT_PERCENT" nullable="true" remarks="The discount percentage applied" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="27" 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="hub" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" 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="hub" table="COUPONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" 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="30" 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="31" 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="32" 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="33" 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="34" 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="35" 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="hub" table="FACILITY_RESERVATION"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" 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="37" 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="38" 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="39" 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="40" 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="41" 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="42" 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="43" 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="44" 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="45" 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="46" 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="47" 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="48" 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="49" 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="50" 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="51" 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="52" 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="53" 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="54" 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="55" 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="56" 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="57" 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="58" 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="59" 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="60" 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="61" 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="62" 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="63" 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="64" 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="65" 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="66" 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="67" 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="68" 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="69" 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="70" 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="71" 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="72" 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="73" 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="74" 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="75" 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="76" 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="77" 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="78" 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="79" 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="80" 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="81" 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="82" 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="83" 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="84" 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="85" 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="86" 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="87" 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="88" 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="89" 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="90" 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="91" 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="92" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" digits="3" id="93" 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="94" 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="95" 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="((0))" digits="0" id="96" name="VOIDED" nullable="false" remarks="Whether the receipt detail has been voided (1 = voided / 0 = not voided)" size="1" type="bit" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="97" 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="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="((0))" digits="0" id="99" name="TRANSACTION_STATUS" nullable="false" remarks="The status of this receipt detail item within the transaction (0 = Normal, 1 = Deleted, 2 = Pending)" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="100" 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="hub" table="CUSTOMER_SCHOLARSHIPS"/>
         </column>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="RECEIPT_DETAIL_ID" sequenceNumberInPK="2"/>
         <index name="RECEIPT_DETAILS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="RECEIPT_DETAILS_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_ID"/>
         </index>
         <index name="RECEIPT_DETAILS_COUPON_ID_IX" unique="false">
            <column ascending="true" name="COUPON_ID"/>
         </index>
         <index name="RECEIPT_DETAILS_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="RECEIPT_DETAILS_nc_cs_ix" unique="false">
            <column ascending="true" name="CHARGE_ID"/>
            <column ascending="true" name="COUPON_ID"/>
            <column ascending="true" name="GLACCOUNT_ID"/>
            <column ascending="true" name="ORIGINAL_RECEIPT_DETAIL_ID"/>
            <column ascending="true" name="ORIGINAL_TRANSACTION_ID"/>
            <column ascending="true" name="POSPRODUCT_ID"/>
            <column ascending="true" name="RECEIPT_DETAIL_ID"/>
            <column ascending="true" name="REVENUE_SITE_ID"/>
            <column ascending="true" name="ROOT_RECEIPT_DETAIL_ID"/>
            <column ascending="true" name="STANDARD_CHARGE_ID"/>
            <column ascending="true" name="SYSTEMUSER_ID"/>
            <column ascending="true" name="TRANSACTION_ID"/>
            <column ascending="true" name="TRANSACTION_SITE_ID"/>
            <column ascending="true" name="TRANSACTION_STATUS"/>
            <column ascending="true" name="VOIDED"/>
            <column ascending="true" name="VOIDED_BY"/>
            <column ascending="true" name="VOIDED_DATE_TIME"/>
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
         <index name="RECEIPT_DETAILS_ORIGINAL_RECEIPT_DETAIL_ID_IX" unique="false">
            <column ascending="true" name="ORIGINAL_RECEIPT_DETAIL_ID"/>
         </index>
         <index name="RECEIPT_DETAILS_ORIGINAL_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="ORIGINAL_TRANSACTION_ID"/>
         </index>
         <index name="RECEIPT_DETAILS_POSPRODUCT_ID_IX" unique="false">
            <column ascending="true" name="POSPRODUCT_ID"/>
         </index>
         <index name="RECEIPT_DETAILS_RECEIPT_DETAIL_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="RECEIPT_DETAIL_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="RECEIPT_DETAILS_REVENUE_SITE_ID_IX" unique="false">
            <column ascending="true" name="REVENUE_SITE_ID"/>
         </index>
         <index name="RECEIPT_DETAILS_ROOT_RECEIPT_DETAIL_ID_IX" unique="false">
            <column ascending="true" name="ROOT_RECEIPT_DETAIL_ID"/>
         </index>
         <index name="RECEIPT_DETAILS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="RECEIPT_DETAILS_STANDARD_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="STANDARD_CHARGE_ID"/>
         </index>
         <index name="RECEIPT_DETAILS_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
         <index name="RECEIPT_DETAILS_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_ID"/>
         </index>
         <index name="RECEIPT_DETAILS_TRANSACTION_SITE_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_SITE_ID"/>
         </index>
         <index name="RECEIPT_DETAILS_TRANSACTION_STATUS_IX" unique="false">
            <column ascending="true" name="TRANSACTION_STATUS"/>
         </index>
         <index name="RECEIPT_DETAILS_VOIDED_IX" unique="false">
            <column ascending="true" name="VOIDED"/>
            <column ascending="true" name="VOIDED_DATE_TIME"/>
         </index>
         <index name="RECEIPT_DETAILS_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
      </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" schema="hub" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="GL_LEDGER_ID" nullable="false" remarks="The 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="hub" 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="hub" 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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="RECEIPT_HEADER_ID" nullable="true" remarks="The receipt header ID that the GL posting is related to" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_HEADERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="RECEIPT_PAYMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="TRANSACTION_SITE_ID" nullable="true" remarks="The ID of the site that the transaction was generated at" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="REVENUE_SITE_ID" nullable="true" remarks="The ID of the site that the revenue was generated for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="TRANSACTION_DATE_TIME" nullable="true" remarks="The date and time that the GL postings were generated" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="GLACCOUNT_ID" nullable="true" remarks="The GL account ID" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="9" name="AMOUNT" nullable="true" remarks="The GL posting amount, where positive amounts are debits and negative amounts are credits" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="SYSTEMUSER_ID" nullable="true" remarks="The ID of the system user who performed the transaction" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="WORKSTATION_ID" nullable="true" remarks="The 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="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="VOIDED" nullable="true" remarks="Whether the GL posting has been voided (1 = voided / 0 = not voided)" size="1" type="bit" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="3" id="14" 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="15" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="EXPENSE_ID" nullable="true" remarks="The ID of the expense that this posting is related to" size="4" type="int" typeCode="4"/>
         <primaryKey column="GL_LEDGER_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="RECEIPT_GL_POSTINGS_GL_LEDGER_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="GL_LEDGER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="RECEIPT_GL_POSTINGS_EXPENSE_ID_IX" unique="false">
            <column ascending="true" name="EXPENSE_ID"/>
         </index>
         <index name="RECEIPT_GL_POSTINGS_GLACCOUNT_ID_ORG_ID_VOIDED_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="VOIDED"/>
         </index>
         <index name="RECEIPT_GL_POSTINGS_nc_cs_ix" unique="false">
            <column ascending="true" name="GL_LEDGER_ID"/>
            <column ascending="true" name="GLACCOUNT_ID"/>
            <column ascending="true" name="RECEIPT_DETAIL_ID"/>
            <column ascending="true" name="RECEIPT_HEADER_ID"/>
            <column ascending="true" name="RECEIPT_PAYMENT_ID"/>
            <column ascending="true" name="REVENUE_SITE_ID"/>
            <column ascending="true" name="SYSTEMUSER_ID"/>
            <column ascending="true" name="TRANSACTION_DATE_TIME"/>
            <column ascending="true" name="TRANSACTION_ID"/>
            <column ascending="true" name="TRANSACTION_SITE_ID"/>
            <column ascending="true" name="VOIDED"/>
            <column ascending="true" name="VOIDED_BY"/>
            <column ascending="true" name="VOIDED_DATE_TIME"/>
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
         <index name="RECEIPT_GL_POSTINGS_RECEIPT_DETAIL_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_DETAIL_ID"/>
         </index>
         <index name="RECEIPT_GL_POSTINGS_RECEIPT_HEADER_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_HEADER_ID"/>
         </index>
         <index name="RECEIPT_GL_POSTINGS_RECEIPT_PAYMENT_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_PAYMENT_ID"/>
         </index>
         <index name="RECEIPT_GL_POSTINGS_REVENUE_SITE_ID_IX" unique="false">
            <column ascending="true" name="REVENUE_SITE_ID"/>
         </index>
         <index name="RECEIPT_GL_POSTINGS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="RECEIPT_GL_POSTINGS_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
         <index name="RECEIPT_GL_POSTINGS_TRANSACTION_DATE_TIME_IX" unique="false">
            <column ascending="true" name="TRANSACTION_DATE_TIME"/>
         </index>
         <index name="RECEIPT_GL_POSTINGS_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_ID"/>
         </index>
         <index name="RECEIPT_GL_POSTINGS_TRANSACTION_SITE_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_SITE_ID"/>
         </index>
         <index name="RECEIPT_GL_POSTINGS_VOIDED_IX" unique="false">
            <column ascending="true" name="VOIDED"/>
            <column ascending="true" name="VOIDED_DATE_TIME"/>
         </index>
         <index name="RECEIPT_GL_POSTINGS_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="RECEIPT_HEADERS" numRows="0" remarks="Receipt header records for transactions and payments" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="ACCOUNT_CREDIT_HISTORY"/>
            <child catalog="ActiveHub" column="ORIGINAL_RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_ENROLLMENTS"/>
            <child catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="AR_SCHEDULED_HEADERS"/>
            <child catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CREDIT_CARD_PROCESSING_LOG"/>
            <child catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_THIRD_PARTY_BILLING_LINKS"/>
            <child catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PAYMENT_CHARGEBACKS"/>
            <child catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_GL_POSTINGS"/>
            <child catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="hub" table="SITES"/>
         </column>
         <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="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="6" name="RECEIPT_NUMBER" nullable="true" remarks="Receipt number" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" 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="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="3" id="25" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="((0))" digits="0" id="30" name="IS_ABANDONED" nullable="false" remarks="Whether the receipt header has been abandoned (1 = abandoned / 0 = not abandoned)" size="1" type="bit" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="((0))" digits="0" id="31" name="VOIDED" nullable="false" remarks="Whether the receipt header has been voided (1 = voided / 0 = not voided)" size="1" type="bit" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" 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="3" id="33" name="VOIDED_DATE_TIME" nullable="true" remarks="The date and time that the receipt header was voided" size="16" type="datetime" typeCode="93"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="RECEIPT_HEADER_ID" sequenceNumberInPK="2"/>
         <index name="RECEIPT_HEADERS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="RECEIPT_HEADERS_IS_ABANDONED_IX" unique="false">
            <column ascending="true" name="IS_ABANDONED"/>
         </index>
         <index name="RECEIPT_HEADERS_nc_cs_ix" unique="false">
            <column ascending="true" name="IS_ABANDONED"/>
            <column ascending="true" name="ONLINE_CUSTOMER_ID"/>
            <column ascending="true" name="RECEIPT_DATE_TIME"/>
            <column ascending="true" name="RECEIPT_HEADER_ID"/>
            <column ascending="true" name="RECEIPT_NUMBER"/>
            <column ascending="true" name="SITE_ID"/>
            <column ascending="true" name="SYSTEMUSER_ID"/>
            <column ascending="true" name="VOIDED"/>
            <column ascending="true" name="VOIDED_BY"/>
            <column ascending="true" name="VOIDED_DATE_TIME"/>
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
         <index name="RECEIPT_HEADERS_ONLINE_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="ONLINE_CUSTOMER_ID"/>
         </index>
         <index name="RECEIPT_HEADERS_RECEIPT_DATE_TIME_IX" unique="false">
            <column ascending="true" name="RECEIPT_DATE_TIME"/>
         </index>
         <index name="RECEIPT_HEADERS_RECEIPT_HEADER_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="RECEIPT_HEADER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="RECEIPT_HEADERS_RECEIPT_NUMBER_IX" unique="false">
            <column ascending="true" name="RECEIPT_NUMBER"/>
         </index>
         <index name="RECEIPT_HEADERS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="RECEIPT_HEADERS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="RECEIPT_HEADERS_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
         <index name="RECEIPT_HEADERS_VOIDED_IX" unique="false">
            <column ascending="true" name="VOIDED"/>
            <column ascending="true" name="VOIDED_DATE_TIME"/>
         </index>
         <index name="RECEIPT_HEADERS_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="RECEIPT_PAYMENTS" numRows="0" remarks="Posted receipt payment data" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="ACCOUNT_CREDIT_HISTORY"/>
            <child catalog="ActiveHub" column="RECEIPT_PAYMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PAYMENT_CHARGEBACKS"/>
            <child catalog="ActiveHub" column="RECEIPT_PAYMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_DETAIL_PAYMENTS"/>
            <child catalog="ActiveHub" column="RECEIPT_PAYMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_GL_POSTINGS"/>
            <child catalog="ActiveHub" column="REPLACED_RECEIPT_PAYMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="REVERSED_RECEIPT_PAYMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_PAYMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="RECEIPT_HEADERS"/>
         </column>
         <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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="7" 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="8" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="10" 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="11" 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="12" 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="hub" table="CARD_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="CARD_NUMBER" nullable="true" remarks="Masked card number" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="15" 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="hub" table="SAVED_CREDIT_CARDS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" 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="17" 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="18" 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="19" 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="20" 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="21" name="CHECK_NUMBER" nullable="true" remarks="Check number entered" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="GIFT_CARD_ID" nullable="true" remarks="ID of the gift certificate 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="hub" table="GIFT_CARDS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" 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="24" 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="25" 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="hub" table="RECEIPT_PAYMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" 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="hub" table="RECEIPT_PAYMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" 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="28" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="29" 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="30" 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="31" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="((0))" digits="0" id="35" name="VOIDED" nullable="false" remarks="Whether the receipt header has been voided (1 = voided / 0 = not voided)" size="1" type="bit" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" 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="3" id="37" 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="38" 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="39" 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="4" id="40" 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="41" 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="42" 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="hub" table="CUSTOM_PAYMENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" 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="44" 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="45" 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"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="RECEIPT_PAYMENT_ID" sequenceNumberInPK="2"/>
         <index name="RECEIPT_PAYMENTS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="RECEIPT_PAYMENTS_CARD_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CARD_TYPE_ID"/>
         </index>
         <index name="RECEIPT_PAYMENTS_CASH_SUMMARY_SHEET_ID_IX" unique="false">
            <column ascending="true" name="CASH_SUMMARY_SHEET_ID"/>
         </index>
         <index name="RECEIPT_PAYMENTS_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="COMPANY_ID"/>
         </index>
         <index name="RECEIPT_PAYMENTS_CREATION_DATE_TIME_IX" unique="false">
            <column ascending="true" name="CREATION_DATE_TIME"/>
         </index>
         <index name="RECEIPT_PAYMENTS_CREATION_DATE_TIME_ORG_ID_VOIDED_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="CREATION_DATE_TIME"/>
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="VOIDED"/>
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
         <index name="RECEIPT_PAYMENTS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="RECEIPT_PAYMENTS_nc_cs_ix" unique="false">
            <column ascending="true" name="CARD_TYPE_ID"/>
            <column ascending="true" name="CASH_SUMMARY_SHEET_ID"/>
            <column ascending="true" name="COMPANY_ID"/>
            <column ascending="true" name="CREATION_DATE_TIME"/>
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="PAYMENT_GL_ACCOUNT_ID"/>
            <column ascending="true" name="RECEIPT_HEADER_ID"/>
            <column ascending="true" name="RECEIPT_PAYMENT_ID"/>
            <column ascending="true" name="SITE_ID"/>
            <column ascending="true" name="SYSTEMUSER_ID"/>
            <column ascending="true" name="VOIDED"/>
            <column ascending="true" name="VOIDED_BY"/>
            <column ascending="true" name="VOIDED_DATE_TIME"/>
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
         <index name="RECEIPT_PAYMENTS_PAYMENT_GL_ACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="PAYMENT_GL_ACCOUNT_ID"/>
         </index>
         <index name="RECEIPT_PAYMENTS_RECEIPT_HEADER_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_HEADER_ID"/>
         </index>
         <index name="RECEIPT_PAYMENTS_RECEIPT_PAYMENT_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="RECEIPT_PAYMENT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="RECEIPT_PAYMENTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="RECEIPT_PAYMENTS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="RECEIPT_PAYMENTS_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
         <index name="RECEIPT_PAYMENTS_VOIDED_IX" unique="false">
            <column ascending="true" name="VOIDED"/>
            <column ascending="true" name="VOIDED_DATE_TIME"/>
         </index>
         <index name="RECEIPT_PAYMENTS_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="REFERENCE_VALUES" numRows="0" remarks="Miscellaneous reference values to support cascading updates." schema="hub" type="TABLE">
         <column autoUpdated="true" 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="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <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"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="REFERENCE_TABLE" sequenceNumberInPK="2"/>
         <primaryKey column="REFERENCE_COLUMN" sequenceNumberInPK="3"/>
         <primaryKey column="REFERENCE_ID" sequenceNumberInPK="4"/>
         <index name="REFERENCE_VALUES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="REFERENCE_VALUES_REFERENCE_ID_REFERENCE_TABLE_REFERENCE_COLUMN_ORG_ID_IX" unique="false">
            <column ascending="true" name="REFERENCE_ID"/>
            <column ascending="true" name="REFERENCE_TABLE"/>
            <column ascending="true" name="REFERENCE_COLUMN"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="REFERENCE_VALUES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="REPORT_DEFINITIONS" numRows="0" remarks="Your organization's report definitions which have been saved for reprinting or scheduling" schema="hub" type="TABLE">
         <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="hub" 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="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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" 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="5" 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="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="16" name="SUNDAY_START_TIME" nullable="true" remarks="The start time that the report is scheduled to print on Sundays" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="MONDAY_START_TIME" nullable="true" remarks="The start time that the report is scheduled to print on Mondays" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="TUESDAY_START_TIME" nullable="true" remarks="The start time that the report is scheduled to print on Tuesdays" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="WEDNESDAY_START_TIME" nullable="true" remarks="The start time that the report is scheduled to print on Wednesdays" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="THURSDAY_START_TIME" nullable="true" remarks="The start time that the report is scheduled to print on Thursdays" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="FRIDAY_START_TIME" nullable="true" remarks="The start time that the report is scheduled to print on Fridays" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="SATURDAY_START_TIME" nullable="true" remarks="The start time that the report is scheduled to print on Saturdays" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="23" 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="24" 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="25" 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="26" 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="27" 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="28" 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="29" 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="30" 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="31" 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="32" 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="0" id="33" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="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="37" name="FROMEMAILADDRESS_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="38" name="RECIPIENT_ADDRESSES" nullable="true" remarks="Recipient email addresses" size="2000" type="varchar" typeCode="12"/>
         <primaryKey column="REPORT_DEFINITION_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="REPORT_DEFINITIONS_REPORT_DEFINITION_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="REPORT_DEFINITION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="REPORT_DEFINITIONS_REPORT_TYPE_ID_IX" unique="false">
            <column ascending="true" name="REPORT_TYPE_ID"/>
         </index>
         <index name="REPORT_DEFINITIONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="REPORT_DEFINITIONS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="REQUEST_REFUND" numRows="0" remarks="Refund Requests" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="REQUESTREFUND_ID" nullable="false" remarks="The Refund Request ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" name="CUSTOMERACCOUNT_ID" nullable="true" remarks="The customer account ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="4" 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="5" 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="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="12" name="ROW_VERSION" nullable="true" remarks="System timestamp (for INTernal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="REQUESTREFUND_ID" sequenceNumberInPK="2"/>
         <index name="PK_REQUEST_REFUND" unique="true">
            <column ascending="true" name="REQUESTREFUND_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="RESERVATION_DATE_RANGES" numRows="0" remarks="Contains information on configured reservation date ranges" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="FACILITY_AVAILABILITY"/>
            <child catalog="ActiveHub" column="RESERVATION_DATE_RANGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_TYPE_LINKS"/>
            <child catalog="ActiveHub" column="RESERVATION_DATE_RANGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LOCKER_DATE_RANGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="hub" table="FACILITIES"/>
         </column>
         <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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="RESERVATION_DATE_RANGE_ID" sequenceNumberInPK="2"/>
         <index name="RESERVATION_DATE_RANGES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="RESERVATION_DATE_RANGES_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="RESERVATION_DATE_RANGES_RESERVATION_DATE_RANGE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="RESERVATION_DATE_RANGE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="RESERVATION_DATE_RANGES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="RESERVATION_GROUPS" numRows="0" remarks="Contains information on reservation groups" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="FACILITY_LINKS"/>
            <child catalog="ActiveHub" column="FACILITY_GROUP_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="RESERVATION_GROUP_NAME" nullable="true" remarks="Reservation group name" 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 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="hub" table="SITES"/>
         </column>
         <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="hub" table="CENTERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="EVENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="SCHEDULE_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="15" 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="16" 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="17" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="RESERVATION_GROUP_ID" sequenceNumberInPK="2"/>
         <index name="RESERVATION_GROUPS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="RESERVATION_GROUPS_CENTER_ID_IX" unique="false">
            <column ascending="true" name="CENTER_ID"/>
         </index>
         <index name="RESERVATION_GROUPS_CUSTOMER_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_TYPE_ID"/>
         </index>
         <index name="RESERVATION_GROUPS_EVENT_TYPE_ID_IX" unique="false">
            <column ascending="true" name="EVENT_TYPE_ID"/>
         </index>
         <index name="RESERVATION_GROUPS_RESERVATION_GROUP_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="RESERVATION_GROUP_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="RESERVATION_GROUPS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="RESERVATION_GROUPS_SCHEDULE_TYPE_ID_IX" unique="false">
            <column ascending="true" name="SCHEDULE_TYPE_ID"/>
         </index>
         <index name="RESERVATION_GROUPS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </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="hub" type="TABLE">
         <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="hub" 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_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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="COMPANIES"/>
         </column>
         <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="hub" table="CARD_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="10" name="CARD_EXPIRATION" nullable="true" remarks="Credit card expiration date" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" 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="hub" table="WORKSTATIONS"/>
         </column>
         <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="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="SAVED_CREDIT_CARD_HISTORY_SAVED_CREDIT_CARD_HISTORY_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="SAVED_CREDIT_CARD_HISTORY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="SAVED_CREDIT_CARD_HISTORY_CARD_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CARD_TYPE_ID"/>
         </index>
         <index name="SAVED_CREDIT_CARD_HISTORY_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="COMPANY_ID"/>
         </index>
         <index name="SAVED_CREDIT_CARD_HISTORY_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="SAVED_CREDIT_CARD_HISTORY_LAST_UPDATED_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="LAST_UPDATED_SYSTEMUSER_ID"/>
         </index>
         <index name="SAVED_CREDIT_CARD_HISTORY_LAST_UPDATED_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="LAST_UPDATED_WORKSTATION_ID"/>
         </index>
         <index name="SAVED_CREDIT_CARD_HISTORY_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="SAVED_CREDIT_CARD_HISTORY_SAVED_CREDIT_CARD_ID_IX" unique="false">
            <column ascending="true" name="SAVED_CREDIT_CARD_ID"/>
         </index>
         <index name="SAVED_CREDIT_CARD_HISTORY_UPDATED_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="UPDATED_SYSTEMUSER_ID"/>
         </index>
         <index name="SAVED_CREDIT_CARD_HISTORY_UPDATED_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="UPDATED_WORKSTATION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SAVED_CREDIT_CARDS" numRows="0" remarks="Saved credit card and electronic payment information" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="SAVED_CREDIT_CARD_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" 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="hub" table="CARD_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="7" name="CARD_EXPIRATION" nullable="true" remarks="Credit card expiration date" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" 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="16" 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="17" 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="18" 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="19" 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="0" id="20" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="SAVED_CREDIT_CARD_ID" sequenceNumberInPK="2"/>
         <index name="SAVED_CREDIT_CARDS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="SAVED_CREDIT_CARDS_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="COMPANY_ID"/>
         </index>
         <index name="SAVED_CREDIT_CARDS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="SAVED_CREDIT_CARDS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="SAVED_CREDIT_CARDS_SAVED_CREDIT_CARD_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="SAVED_CREDIT_CARD_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="SAVED_CREDIT_CARDS_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
         <index name="SAVED_CREDIT_CARDS_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SCHEDULE_TYPES" numRows="0" remarks="Contains information on defined schedule types for reservations" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="EVENT_TYPES"/>
            <child catalog="ActiveHub" column="SCHEDULE_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="SCHEDULE_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_USAGE_REVENUE"/>
            <child catalog="ActiveHub" column="SCHEDULE_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RESERVATION_GROUPS"/>
            <child catalog="ActiveHub" column="SCHEDULE_TYPE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="4" 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="5" 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="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="hub" table="INSTRUCTOR_ROLES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="DEFAULT_DEPARTMENT_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="ACTIVITY_DEPARTMENT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="DEFAULT_EXPENSE_GLACCOUNT_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="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="DEFAULT_EXPENSE_OFFSET_GLACCOUNT_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="GLACCOUNT_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="SCHEDULE_TYPE_ID" sequenceNumberInPK="2"/>
         <index name="SCHEDULE_TYPES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="SCHEDULE_TYPES_DEFAULT_DEPARTMENT_ID_IX" unique="false">
            <column ascending="true" name="DEFAULT_DEPARTMENT_ID"/>
         </index>
         <index name="SCHEDULE_TYPES_DEFAULT_EXPENSE_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="DEFAULT_EXPENSE_GLACCOUNT_ID"/>
         </index>
         <index name="SCHEDULE_TYPES_DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="DEFAULT_EXPENSE_OFFSET_GLACCOUNT_ID"/>
         </index>
         <index name="SCHEDULE_TYPES_DEFAULT_INSTRUCTOR_ROLE_ID_IX" unique="false">
            <column ascending="true" name="DEFAULT_INSTRUCTOR_ROLE_ID"/>
         </index>
         <index name="SCHEDULE_TYPES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="SCHEDULE_TYPES_SCHEDULE_TYPE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="SCHEDULE_TYPE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="SCHEDULE_TYPES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SCHEDULED_FEE_CHANGES" numRows="0" remarks="Master table showing scheduled fee changes data" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="ACTIVITY_FEES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="PROGRAM_FEES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="PACKAGE_FEES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="STANDARD_CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="6" 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="0" id="7" name="SCHEDULED_FEE_DATE" nullable="true" remarks="Date that the fee change is scheduled for" size="20" type="date" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="SCHEDULED_FEE_CHANGE_ID" sequenceNumberInPK="2"/>
         <index name="SCHEDULED_FEE_CHANGES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="SCHEDULED_FEE_CHANGES_ACTIVITY_FEE_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_FEE_ID"/>
         </index>
         <index name="SCHEDULED_FEE_CHANGES_PACKAGE_FEE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_FEE_ID"/>
         </index>
         <index name="SCHEDULED_FEE_CHANGES_PROGRAM_FEE_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_FEE_ID"/>
         </index>
         <index name="SCHEDULED_FEE_CHANGES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="SCHEDULED_FEE_CHANGES_SCHEDULED_FEE_CHANGE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="SCHEDULED_FEE_CHANGE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="SCHEDULED_FEE_CHANGES_STANDARD_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="STANDARD_CHARGE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SCHEDULED_FEE_RATES" numRows="0" remarks="Master table showing scheduled fee rates" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="SCHEDULED_FEE_RATE_ID" nullable="true" remarks="Scheduled fee rates ID" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="STANDARDCHARGE_ID" nullable="true" remarks="Standard charge ID to be updated with the scheduled change" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="3" name="SCHEDULED_FEE" nullable="true" remarks="The amount that the fee is scheduled to automatically charge to." size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="4" name="SCHEDULED_DATE" nullable="true" remarks="The scheduled date." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <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"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <index name="SCHEDULED_FEE_RATES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="SCHEDULED_FEE_RATES_SCHEDULED_FEE_RATE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="SCHEDULED_FEE_RATE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SCHOLARSHIP_APPLICATIONS" numRows="0" remarks="Participant Zones that are eligible for priority registration for an activity" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="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="5" 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="6" 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="7" name="APPROVED_BY" nullable="true" remarks="The ID of the approving user" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="8" name="DATE_STAMP" nullable="true" remarks="Date entered" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="STATUS" nullable="true" remarks="Current Status" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="10" 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="11" 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="12" 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="13" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" digits="3" id="14" 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="15" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The dbo sync process ID" size="8" type="bigint" typeCode="-5"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="SCHOLARSHIP_APPLICATION_ID" sequenceNumberInPK="2"/>
         <index name="PK_SCHOLARSHIP_APPLICATIONS" unique="true">
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="SCHOLARSHIP_APPLICATION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SEASONS" numRows="0" remarks="Your organization's defined seasons" schema="hub" type="TABLE">
         <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="hub" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHARGES"/>
            <child catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHILD_SEASONS"/>
            <child catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAMS"/>
            <child catalog="ActiveHub" column="EARLY_REGISTRATION_UNTIL_SEASON_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" 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="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="0" id="16" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="SEASON_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="SEASONS_SEASON_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="SEASON_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="SEASONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="SEASONS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SESSIONS" numRows="0" remarks="Master table showing FlexReg sessions" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="QUALIFIED_SESSION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_FEES"/>
            <child catalog="ActiveHub" column="SESSION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_SESSIONS"/>
            <child catalog="ActiveHub" column="SESSION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
         </column>
         <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="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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ENROLLMIN" nullable="true" remarks="Minimum enrollment for the session." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="ENROLLMAX" nullable="true" remarks="Maximum enrollment for the session." size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" 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="7" name="END_DATE_TIME" nullable="true" remarks="Ending date and time of the session." size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="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="11" 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="12" 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="13" 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="14" 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="15" 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="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="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="18" 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="19" name="DESCRIPTION" nullable="true" remarks="Description of the session" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" 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="21" 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="22" 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="hub" table="PROGRAM_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" 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="25" 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="26" 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="0" id="27" name="WEEKDAYS" nullable="true" remarks="Whether the session is configured for specific days of the week" size="7" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="WEEKS_OF_MONTH" nullable="true" remarks="Whether the session is configured for specific weeks of the month" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="DELETED" nullable="true" remarks="Whether the session has marked as deleted (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="SESSION_ID" sequenceNumberInPK="2"/>
         <index name="SESSIONS_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="SESSIONS_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="SESSIONS_PROGRAM_TYPE_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_TYPE_ID"/>
         </index>
         <index name="SESSIONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="SESSIONS_SESSION_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="SESSION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="SESSIONS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
      </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="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="ACCOUNT_CREDIT_HISTORY"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="TRANSACTION_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_PRIVATE_LESSONS"/>
            <child catalog="ActiveHub" column="REVENUE_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="TRANSACTION_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="AR_SCHEDULED_DETAILS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="AR_SCHEDULED_HEADERS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CAMPAIGNS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CENTERS"/>
            <child catalog="ActiveHub" column="ACTIVITY_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHARGES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHILD_WATCH_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHILD_WATCH_ROOMS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COMPANIES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CREDIT_CARD_PROCESSING_LOG"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOM_QUESTIONS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_NOTES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMERS"/>
            <child catalog="ActiveHub" column="REVENUE_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="TRANSACTION_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="DISCLAIMERS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="EQUIPMENT_CATEGORIES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="EVENT_TYPES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="TRANSACTION_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_TYPES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FROM_EMAIL_ADDRESSES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="GIFT_CARD_TYPE_SITES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="GLACCOUNTS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="INSTRUCTORS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LOCKER_SCHEDULES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIP_USAGE"/>
            <child catalog="ActiveHub" column="PACKAGE_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIPS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="OFFICIALS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PERMITS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="POS_PRODUCTS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="POS_PRODUCTS_CENTER_QUANTITY"/>
            <child catalog="ActiveHub" column="PRODUCT_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="POS_SALES_DETAILS"/>
            <child catalog="ActiveHub" column="TRANSACTION_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="POS_SALES_DETAILS"/>
            <child catalog="ActiveHub" column="REVENUE_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PRELIMINARY_DRAFTS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PREP_CODES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAMS"/>
            <child catalog="ActiveHub" column="REVENUE_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="TRANSACTION_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="REVENUE_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_GL_POSTINGS"/>
            <child catalog="ActiveHub" column="TRANSACTION_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_GL_POSTINGS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_HEADERS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="REPORT_DEFINITIONS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RESERVATION_GROUPS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SEASONS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SESSIONS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SKIP_DATES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="STAGES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="STANDARD_CHARGES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SUPERVISORS"/>
            <child catalog="ActiveHub" column="REVENUE_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="TRANSACTION_SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="UPLOADED_FILES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="USAGE_FEES"/>
            <child catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="(getdate())" 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="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="hub" table="GEOGRAPHIC_AREAS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="EMAIL_FROM_ADDRESS" nullable="true" remarks="From email address" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="PHONE1" nullable="true" remarks="Primary phone number" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="PHONE2" nullable="true" remarks="Secondary phone number" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="PHONE3" nullable="true" remarks="Fax phone number" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="27" 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="28" 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="29" 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="30" 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="31" 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="32" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" 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="41" 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="42" 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="43" 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="44" 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="45" 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="46" 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="47" 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="48" 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="49" 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="50" 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="51" 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="52" 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="53" 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="54" 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="55" 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="56" 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="57" 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="58" 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="59" 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="60" 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="61" 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="62" 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="63" name="TAX_TABLE_ID_8" nullable="true" remarks="The ID from the tax table for tax 8" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="SITE_ID" sequenceNumberInPK="2"/>
         <index name="SITES_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="SITES_GEOGRAPHIC_AREA_ID_IX" unique="false">
            <column ascending="true" name="GEOGRAPHIC_AREA_ID"/>
         </index>
         <index name="SITES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="SITES_SITE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="SITE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SKILLS" numRows="0" remarks="Your organization's defined skills" schema="hub" type="TABLE">
         <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="hub" 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="0" id="8" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="SKILL_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="SKILLS_SKILL_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="SKILL_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="SKILLS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SKIP_DATES" numRows="0" remarks="Contains information on configured skip dates" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="FACILITY_AVAILABILITY"/>
            <child catalog="ActiveHub" column="SKIP_DATE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_LINKS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" 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="hub" table="SITES"/>
         </column>
         <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="hub" table="ACTIVITY_DEPARTMENTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="19" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="SKIP_DATE_ID" sequenceNumberInPK="2"/>
         <index name="SKIP_DATES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="SKIP_DATES_ACTIVITY_DEPARTMENT_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_DEPARTMENT_ID"/>
         </index>
         <index name="SKIP_DATES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="SKIP_DATES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="SKIP_DATES_SKIP_DATE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="SKIP_DATE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="STAGE_SEQUENCE_LINKS" numRows="0" remarks="Contains stage sequence links to individual subject areas (for internal use)" schema="hub" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" 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="0" id="1" 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="hub" table="STAGE_SEQUENCES"/>
         </column>
         <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="hub" table="EVENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="FACILITY_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="CUSTOM_QUESTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="8" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="STAGE_SEQUENCE_LINKS_STAGE_SEQUENCE_LINK_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="STAGE_SEQUENCE_LINK_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="STAGE_SEQUENCE_LINKS_CUSTOM_QUESTION_ID_IX" unique="false">
            <column ascending="true" name="CUSTOM_QUESTION_ID"/>
         </index>
         <index name="STAGE_SEQUENCE_LINKS_CUSTOMER_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_TYPE_ID"/>
         </index>
         <index name="STAGE_SEQUENCE_LINKS_EVENT_TYPE_ID_IX" unique="false">
            <column ascending="true" name="EVENT_TYPE_ID"/>
         </index>
         <index name="STAGE_SEQUENCE_LINKS_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="STAGE_SEQUENCE_LINKS_FACILITY_TYPE_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_TYPE_ID"/>
         </index>
         <index name="STAGE_SEQUENCE_LINKS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="STAGE_SEQUENCE_LINKS_STAGE_SEQUENCE_ID_IX" unique="false">
            <column ascending="true" name="STAGE_SEQUENCE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="STAGE_SEQUENCE_STAGE_CHILD_STAGES" numRows="0" remarks="Contains the parent to child links for stage sequences stages" schema="hub" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" 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="0" id="1" name="STAGE_SEQUENCE_STAGE_ID" nullable="true" remarks="The parent 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="hub" table="STAGE_SEQUENCE_STAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="STAGE_SEQUENCE_STAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="STAGE_SEQUENCE_STAGE_CHILD_STAGES_STAGE_SEQUENCE_STAGE_DETAIL_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="STAGE_SEQUENCE_STAGE_DETAIL_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="STAGE_SEQUENCE_STAGE_CHILD_STAGES_CHILD_STAGE_SEQUENCE_SEQUENCE_STAGE_ID_IX" unique="false">
            <column ascending="true" name="CHILD_STAGE_SEQUENCE_SEQUENCE_STAGE_ID"/>
         </index>
         <index name="STAGE_SEQUENCE_STAGE_CHILD_STAGES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="STAGE_SEQUENCE_STAGE_CHILD_STAGES_STAGE_SEQUENCE_STAGE_ID_IX" unique="false">
            <column ascending="true" name="STAGE_SEQUENCE_STAGE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="STAGE_SEQUENCE_STAGES" numRows="0" remarks="Your organization's defined stage sequence stages" schema="hub" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" 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="hub" table="STAGE_SEQUENCE_STAGE_CHILD_STAGES"/>
            <child catalog="ActiveHub" column="STAGE_SEQUENCE_STAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="STAGE_SEQUENCE_STAGE_CHILD_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">
            <parent catalog="ActiveHub" column="STAGE_SEQUENCE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="STAGE_SEQUENCES"/>
         </column>
         <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="hub" table="STAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="STAGE_SEQUENCE_STAGES_STAGE_SEQUENCE_STAGE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="STAGE_SEQUENCE_STAGE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="STAGE_SEQUENCE_STAGES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="STAGE_SEQUENCE_STAGES_STAGE_ID_IX" unique="false">
            <column ascending="true" name="STAGE_ID"/>
         </index>
         <index name="STAGE_SEQUENCE_STAGES_STAGE_SEQUENCE_ID_IX" unique="false">
            <column ascending="true" name="STAGE_SEQUENCE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="STAGE_SEQUENCES" numRows="0" remarks="Your organization's defined stage sequences" schema="hub" type="TABLE">
         <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="hub" table="STAGE_SEQUENCE_LINKS"/>
            <child catalog="ActiveHub" column="STAGE_SEQUENCE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="STAGE_SEQUENCE_STAGES"/>
            <child catalog="ActiveHub" column="STAGE_SEQUENCE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="0" id="2" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="STAGE_SEQUENCE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="STAGE_SEQUENCES_STAGE_SEQUENCE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="STAGE_SEQUENCE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="STAGE_SEQUENCES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="STAGES" numRows="0" remarks="Your organization's defined stages and checklist items" schema="hub" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="STAGE_ID" nullable="false" remarks="The stage or checklist item ID" size="4" type="int" typeCode="4">
            <child catalog="ActiveHub" column="STAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="STAGE_SEQUENCE_STAGES"/>
            <child catalog="ActiveHub" column="STAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTION_STAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" 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="2" name="STAGE_VERSION" nullable="true" remarks="The current version number of the stage or 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 stage or checklist item 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" 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="6" 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="7" 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="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" name="ALLOW_INDIVIDUAL_SELECTION" nullable="true" remarks="Whether the item can be selected individually during the transaction (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <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="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="STAGE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="STAGES_STAGE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="STAGE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="STAGES_APPROVAL_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="APPROVAL_SYSTEMUSER_ID"/>
         </index>
         <index name="STAGES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="STAGES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="STAGES_UPLOADED_FILE_ID_IX" unique="false">
            <column ascending="true" name="UPLOADED_FILE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="STANDARD_CHARGES" numRows="0" remarks="Master table showing defined standard resource charges data" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="CHARGE_QUALIFICATION_LINKS"/>
            <child catalog="ActiveHub" column="STANDARD_CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="STANDARD_CHARGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" 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="hub" table="CUSTOMER_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="CENTERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="hub" table="FACILITY_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="10" 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="hub" table="EVENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="13" 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="14" 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="15" 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="16" name="DISCOUNT_PERCENT" nullable="true" remarks="The default discount percentage" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" 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="18" name="DEFAULT_QUANTITY" nullable="true" remarks="The default quantity" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="19" 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="20" 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="21" 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="hub" table="STAGE_SEQUENCES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" 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="23" 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="24" 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="25" 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="26" 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="27" 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="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="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="30" 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="31" 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="32" 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="33" 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="34" 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="35" 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="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" 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="37" 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="38" 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="39" 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="40" 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="41" 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="42" 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="43" 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="44" 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="45" 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="46" 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="47" 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="48" 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="49" 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="50" 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="51" 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="52" 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="53" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="IS_SCHEDULED_RATE" nullable="true" remarks="If it is for booking date" size="3" type="char" typeCode="1"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="STANDARD_CHARGE_ID" sequenceNumberInPK="2"/>
         <index name="STANDARD_CHARGES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="STANDARD_CHARGES_CENTER_ID_IX" unique="false">
            <column ascending="true" name="CENTER_ID"/>
         </index>
         <index name="STANDARD_CHARGES_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="CHARGE_ID"/>
         </index>
         <index name="STANDARD_CHARGES_CUSTOMER_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_TYPE_ID"/>
         </index>
         <index name="STANDARD_CHARGES_EVENT_TYPE_ID_IX" unique="false">
            <column ascending="true" name="EVENT_TYPE_ID"/>
         </index>
         <index name="STANDARD_CHARGES_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="STANDARD_CHARGES_FACILITY_TYPE_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_TYPE_ID"/>
         </index>
         <index name="STANDARD_CHARGES_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="STANDARD_CHARGES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="STANDARD_CHARGES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="STANDARD_CHARGES_STAGE_SEQUENCE_ID_IX" unique="false">
            <column ascending="true" name="STAGE_SEQUENCE_ID"/>
         </index>
         <index name="STANDARD_CHARGES_STANDARD_CHARGE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="STANDARD_CHARGE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="STANDARD_CHARGES_SYSTEM_GL_ACCOUNT_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SUBSIDIES" numRows="0" remarks="Sudsidy program" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="SUBSIDY_ID" nullable="false" remarks="Subsidy id" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="SUBSIDY_NAME" nullable="true" remarks="Subsidy name" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="GLACCOUNT_ID" nullable="true" remarks="Glaccount id" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="STATUS" nullable="true" remarks="Status" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="5" name="CREATETIME" nullable="true" remarks="Create time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="6" name="UPDATETIME" nullable="true" remarks="Update time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="8" name="LINK_PACKAGE_STATUS" nullable="true" remarks="Subsidy link package status" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="SUBSIDY_ID" sequenceNumberInPK="2"/>
         <index name="PK_SUBSIDIES" unique="true">
            <column ascending="true" name="SUBSIDY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="SUBSIDIES_SUBSIDIES_ID_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="SUBSIDY_ID"/>
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
         <index name="SUBSIDIES_SUBSIDY_ID_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="SUBSIDY_ID"/>
            <column ascending="true" name="GLACCOUNT_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SUBSIDY_ANNUAL_BUDGET" numRows="0" remarks="Subsidy program annual budget table" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="2" name="SUBSIDY_ID" nullable="true" remarks="Subsidy id" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="4" 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="5" 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="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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="SUBSIDY_ANNUAL_BUDGET_ID" sequenceNumberInPK="2"/>
         <index name="PK_SUBSIDY_ANNUAL_BUDGET" unique="true">
            <column ascending="true" name="SUBSIDY_ANNUAL_BUDGET_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="SUBSIDY_ANNUAL_BUDGET_SUBSIDY_ANNUAL_BUDGET_ID_SUBSIDY_ID_IX" unique="false">
            <column ascending="true" name="SUBSIDY_ANNUAL_BUDGET_ID"/>
            <column ascending="true" name="SUBSIDY_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SUBSIDY_DEFAULT_ALLOCATIONS" numRows="0" remarks="Subsidy default allocations table" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="2" 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="3" 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="4" 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="5" 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="6" 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="7" name="ALLOCATION_AMOUNT" nullable="true" remarks="Default allocations configuration default amount" 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="0" id="9" 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="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="SUBSIDY_DEFAULT_ALLOCATIONS_ID" sequenceNumberInPK="2"/>
         <index name="PK_SUBSIDY_DEFAULT_ALLOCATIONS" unique="true">
            <column ascending="true" name="SUBSIDY_DEFAULT_ALLOCATIONS_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="SUBSIDY_DEFAULT_ALLOCATIONS_SUBSIDY_DEFAULT_ALLOCATIONS_ID_SUBSIDY_ID_IX" unique="false">
            <column ascending="true" name="SUBSIDY_DEFAULT_ALLOCATIONS_ID"/>
            <column ascending="true" name="SUBSIDY_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SUBSIDY_LINKS" numRows="0" remarks="Sudsidy program" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="SUBSIDY_LINKS_ID" nullable="false" remarks="Subsidy link id" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="3" name="ACTIVITY_ID" nullable="true" remarks="Activity id" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PACKAGE_ID" nullable="true" remarks="Package id" size="4" type="int" typeCode="4"/>
         <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="0" id="6" 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="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="SUBSIDY_LINKS_ID" sequenceNumberInPK="2"/>
         <index name="PK_SUBSIDY_LINKS" unique="true">
            <column ascending="true" name="SUBSIDY_LINKS_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="SUBSIDY_LINKS_SUBSIDY_LINKS_ID_SUBSIDY_ID_ACTIVITY_ID_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="SUBSIDY_LINKS_ID"/>
            <column ascending="true" name="SUBSIDY_ID"/>
            <column ascending="true" name="ACTIVITY_ID"/>
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SUBSIDY_USAGES" numRows="0" remarks="Subsidy usages table" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="SUBSIDY_USAGES_ID" nullable="false" remarks="Subsidy link id" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ORIGINAL_SUBSIDY_USAGE_ID" nullable="true" remarks="Package 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="CUSTOMER_ID" nullable="true" remarks="Customer pk" 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="4" id="6" name="AMOUNT" nullable="true" remarks="Subsidy usage amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="7" name="DATESTAMP" nullable="true" remarks="Subsidy usage date time" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="9" name="ALLOCATION_AMOUNT" nullable="true" remarks="Transaction time allocation amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="10" name="ALLOCATION_BALANCE" nullable="true" remarks="Transaction time allocation balance amount" size="21" type="money" typeCode="3"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="(getdate())" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="SUBSIDY_USAGES_ID" sequenceNumberInPK="2"/>
         <index name="PK_SUBSIDY_USAGES" unique="true">
            <column ascending="true" name="SUBSIDY_USAGES_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="SUBSIDY_USAGES_SUBSIDY_USAGES_ID_SUBSIDY_ID_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="SUBSIDY_USAGES_ID"/>
            <column ascending="true" name="SUBSIDY_ID"/>
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SUPERVISORS" numRows="0" remarks="Master table showing Supervisor details" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="ACTIVITIES"/>
            <child catalog="ActiveHub" column="SUPERVISOR_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CENTERS"/>
            <child catalog="ActiveHub" column="SUPERVISOR_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="OFFICIAL_TITLE" nullable="true" remarks="Supervisor's official title" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" 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="6" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="RETIRED" nullable="true" remarks="Whether the Supervisor record has been retired (Yes/No)" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="SUPERVISOR_ID" sequenceNumberInPK="2"/>
         <index name="SUPERVISORS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="SUPERVISORS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="SUPERVISORS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="SUPERVISORS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="SUPERVISORS_SUPERVISOR_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="SUPERVISOR_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SUSPENSION_TRANSACTION" numRows="0" remarks="" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="SUSPENSION_TRANSACTION_ID" nullable="false" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ORG_ID" nullable="false" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="CUSTOMER_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <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_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="ALL_FAMILY_MEMBERS" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="STAFF_DAYCARE" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="STAFF_REGISTRATION" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="STAFF_MEMBERSHIP" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="STAFF_RESERVATION" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="STAFF_POS" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ONLINE_DAYCARE" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ONLINE_REGISTRATION" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="ONLINE_MEMBERSHIP" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ONLINE_RESERVATION" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ONLINE_ACCOUNT_ACTION" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ROW_VERSION" nullable="true" remarks="" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="SYSTEMUSER_ID" nullable="true" remarks="" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="20" name="DATESTAMP" nullable="true" remarks="" size="16" type="datetime" typeCode="93"/>
         <column autoUpdated="false" defaultValue="(getdate())" digits="3" id="21" name="LAST_SYNC_TIME" nullable="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="1"/>
         <primaryKey column="SUSPENSION_TRANSACTION_ID" sequenceNumberInPK="2"/>
         <index name="PK_SUSPENSION_TRANSACTION" unique="true">
            <column ascending="true" name="SUSPENSION_TRANSACTION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SYSTEM_GL_ACCOUNT_PACKAGES" numRows="0" remarks="Your organization's defined system GL account packages" schema="hub" type="TABLE">
         <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="hub" table="ACTIVITY_FEES"/>
            <child catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CAMPAIGNS"/>
            <child catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHARGES"/>
            <child catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="GLOBAL_DISCOUNTS"/>
            <child catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LOCKER_FEES"/>
            <child catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PACKAGE_FEES"/>
            <child catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="POS_PRODUCTS"/>
            <child catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_FEES"/>
            <child catalog="ActiveHub" column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="STANDARD_CHARGES"/>
            <child catalog="ActiveHub" column="DISCOUNT_SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="USAGE_FEES"/>
            <child catalog="ActiveHub" column="FEE_SYSTEM_GL_ACCOUNT_PACKAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="FUNDS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="0" id="15" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <primaryKey column="SYSTEM_GL_ACCOUNT_PACKAGE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="SYSTEM_GL_ACCOUNT_PACKAGES_SYSTEM_GL_ACCOUNT_PACKAGE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="SYSTEM_GL_ACCOUNT_PACKAGE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="SYSTEM_GL_ACCOUNT_PACKAGES_ACCOUNTS_RECEIVABLE_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="ACCOUNTS_RECEIVABLE_GLACCOUNT_ID"/>
         </index>
         <index name="SYSTEM_GL_ACCOUNT_PACKAGES_DEFERRED_RECEIVABLES_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="DEFERRED_RECEIVABLES_GLACCOUNT_ID"/>
         </index>
         <index name="SYSTEM_GL_ACCOUNT_PACKAGES_DEFERRED_REVENUE_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="DEFERRED_REVENUE_GLACCOUNT_ID"/>
         </index>
         <index name="SYSTEM_GL_ACCOUNT_PACKAGES_FUTURE_RECEIVABLES_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="FUTURE_RECEIVABLES_GLACCOUNT_ID"/>
         </index>
         <index name="SYSTEM_GL_ACCOUNT_PACKAGES_PAYMENT_CASH_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="PAYMENT_CASH_GLACCOUNT_ID"/>
         </index>
         <index name="SYSTEM_GL_ACCOUNT_PACKAGES_PAYMENT_CHECK_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="PAYMENT_CHECK_GLACCOUNT_ID"/>
         </index>
         <index name="SYSTEM_GL_ACCOUNT_PACKAGES_PAYMENT_CREDIT_CARD_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="PAYMENT_CREDIT_CARD_GLACCOUNT_ID"/>
         </index>
         <index name="SYSTEM_GL_ACCOUNT_PACKAGES_PAYMENT_CREDIT_MEMO_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="PAYMENT_CREDIT_MEMO_GLACCOUNT_ID"/>
         </index>
         <index name="SYSTEM_GL_ACCOUNT_PACKAGES_PAYMENT_DEBIT_CARD_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="PAYMENT_DEBIT_CARD_GLACCOUNT_ID"/>
         </index>
         <index name="SYSTEM_GL_ACCOUNT_PACKAGES_PAYMENT_ECP_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="PAYMENT_ECP_GLACCOUNT_ID"/>
         </index>
         <index name="SYSTEM_GL_ACCOUNT_PACKAGES_REFUND_CLEARING_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="REFUND_CLEARING_GLACCOUNT_ID"/>
         </index>
         <index name="SYSTEM_GL_ACCOUNT_PACKAGES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SYSTEM_USAGE_LOG" numRows="0" remarks="Contains system access information for staff users and online customers" schema="hub" type="TABLE">
         <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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" 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="3" id="6" 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="3" id="7" 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="3" id="8" 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="9" 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="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="SERVER_IP" nullable="true" remarks="The IP address of the physical server that the staff user or online customer were connected to" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="0" id="12" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" 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"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="SYSTEM_USAGE_LOG_SYSTEM_USAGE_LOG_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="SYSTEM_USAGE_LOG_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="SYSTEM_USAGE_LOG_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="SYSTEM_USAGE_LOG_LOGON_DATE_TIME_IX" unique="false">
            <column ascending="true" name="LOGON_DATE_TIME"/>
         </index>
         <index name="SYSTEM_USAGE_LOG_nc_cs_ix" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="CUSTOMER_LOGOFF_TIMEOUT_DATE_TIME"/>
            <column ascending="true" name="LOGON_DATE_TIME"/>
            <column ascending="true" name="SERVER_WORKSTATION_ID"/>
            <column ascending="true" name="SYSTEM_USAGE_LOG_ID"/>
            <column ascending="true" name="SYSTEMUSER_ID"/>
            <column ascending="true" name="USER_LOGOFF_DATE_TIME"/>
            <column ascending="true" name="USER_TIMEOUT_DATE_TIME"/>
            <column ascending="true" name="USER_WORKSTATION_ID"/>
         </index>
         <index name="SYSTEM_USAGE_LOG_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="SYSTEM_USAGE_LOG_SERVER_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="SERVER_WORKSTATION_ID"/>
         </index>
         <index name="SYSTEM_USAGE_LOG_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
         <index name="SYSTEM_USAGE_LOG_USER_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="USER_WORKSTATION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SYSTEM_USER_PROFILES" numRows="0" remarks="Authorization profiles assigned to system users" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="PROFILES"/>
         </column>
         <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="(getdate())" 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="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="SYSTEM_USER_PROFILE_ID" sequenceNumberInPK="2"/>
         <index name="SYSTEM_USER_PROFILES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="SYSTEM_USER_PROFILES_PROFILE_ID_IX" unique="false">
            <column ascending="true" name="PROFILE_ID"/>
         </index>
         <index name="SYSTEM_USER_PROFILES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="SYSTEM_USER_PROFILES_SYSTEM_USER_PROFILE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="SYSTEM_USER_PROFILE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="SYSTEM_USER_PROFILES_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SYSTEM_USERS" numRows="0" remarks="Organization's system users" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="ACCOUNT_CREDIT_HISTORY"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="AR_SCHEDULED_HEADERS"/>
            <child catalog="ActiveHub" column="CHECK_IN_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHILD_WATCH_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="CHECK_OUT_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CHILD_WATCH_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CREDIT_CARD_PROCESSING_LOG"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_MERGE_LOG"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_NOTES"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_SIGNED_WAIVERS"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_RESERVATION"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_USERS"/>
            <child catalog="ActiveHub" column="ISSUED_BY_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="GIFT_CARDS"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LOCKER_SCHEDULES"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="PERMIT_ADMINISTRATOR_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PERMITS"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PERMITS"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_ATTENDANCE_HISTORY"/>
            <child catalog="ActiveHub" column="UNDO_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_ATTENDANCE_HISTORY"/>
            <child catalog="ActiveHub" column="ABSENT_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="CHECK_IN_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="CHECK_OUT_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_GL_POSTINGS"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_HEADERS"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="LAST_UPDATED_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SAVED_CREDIT_CARD_HISTORY"/>
            <child catalog="ActiveHub" column="UPDATED_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SAVED_CREDIT_CARD_HISTORY"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SAVED_CREDIT_CARDS"/>
            <child catalog="ActiveHub" column="APPROVAL_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="STAGES"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SYSTEM_USAGE_LOG"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SYSTEM_USER_PROFILES"/>
            <child catalog="ActiveHub" column="APPROVAL_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTION_STAGES"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTION_STAGES"/>
            <child catalog="ActiveHub" column="SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="UPLOADED_BY_SYSTEMUSER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="PROFILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="USER_FIRST_NAME" nullable="true" remarks="User first name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="USER_LAST_NAME" nullable="true" remarks="User last name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="EMPLOYEE_ID" nullable="true" remarks="User employee number" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="LOGIN_NAME" nullable="true" remarks="User login name" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="EMAIL" nullable="true" remarks="User email address" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="10" name="SITE_ACCESS" nullable="true" remarks="User site access description" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="12" 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="13" 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="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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="3" id="18" 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="19" name="LAST_LOGIN_DATE_ONLY" nullable="true" remarks="The date that the user last logged in (date only)" size="20" type="date" typeCode="12"/>
         <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="0" id="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="3" id="27" name="PASSWORD_LAST_CHANGED" nullable="true" remarks="The date and time that the user's password was last changed" size="16" type="datetime" typeCode="93"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="SYSTEMUSER_ID" sequenceNumberInPK="2"/>
         <index name="SYSTEM_USERS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="SYSTEM_USERS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="SYSTEM_USERS_PROFILE_ID_IX" unique="false">
            <column ascending="true" name="PROFILE_ID"/>
         </index>
         <index name="SYSTEM_USERS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="SYSTEM_USERS_SYSTEMUSER_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="SYSTEMUSER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="SYSTEMINFO" numRows="0" remarks="Your organization's site level settings information" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="SYSTEMINFO_ID" nullable="true" remarks="Unique ID of the table" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="KEYWORD" nullable="true" remarks="KEYWORD name to be set at the organization level" size="300" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="KEYWORDVALUE" nullable="true" remarks="KEYWORD value set at the organization level" size="2147483647" type="varchar" typeCode="2005"/>
         <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="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="(getdate())" digits="3" id="6" 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="7" name="ACTIVE_HUB_PROCESS_ID" nullable="true" remarks="The Hub sync process ID" size="8" type="bigint" typeCode="-5"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <index name="SYSTEMINFO_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="SYSTEMINFO_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="SYSTEMINFO_SYSTEMINFO_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="SYSTEMINFO_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="TEAM_CATEGORIES" numRows="0" remarks="Your organization's defined team categories" schema="hub" type="TABLE">
         <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="hub" 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="hub" 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="0" id="4" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="TEAM_CATEGORY_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="TEAM_CATEGORIES_TEAM_CATEGORY_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="TEAM_CATEGORY_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="TEAM_CATEGORIES_GENDER_INDEX_IX" unique="false">
            <column ascending="true" name="GENDER_INDEX"/>
         </index>
         <index name="TEAM_CATEGORIES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="TEAM_CONTACTS" numRows="0" remarks="Your organization's defined team contacts" schema="hub" type="TABLE">
         <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="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="hub" table="TEAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="CONTACT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="6" 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="7" 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="8" 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="9" 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="0" id="10" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="TEAM_CONTACT_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="TEAM_CONTACTS_TEAM_CONTACT_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="TEAM_CONTACT_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="TEAM_CONTACTS_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="COMPANY_ID"/>
         </index>
         <index name="TEAM_CONTACTS_CONTACT_TYPE_ID_IX" unique="false">
            <column ascending="true" name="CONTACT_TYPE_ID"/>
         </index>
         <index name="TEAM_CONTACTS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="TEAM_CONTACTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="TEAM_CONTACTS_TEAM_ID_IX" unique="false">
            <column ascending="true" name="TEAM_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="TEAM_PLAYERS" numRows="0" remarks="Your organization's defined team players" schema="hub" type="TABLE">
         <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="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="hub" table="TEAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" 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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="PLAYER_NUMBER" nullable="true" remarks="The assigned player number" size="50" 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="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="TEAM_PLAYER_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="TEAM_PLAYERS_TEAM_PLAYER_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="TEAM_PLAYER_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="TEAM_PLAYERS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="TEAM_PLAYERS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="TEAM_PLAYERS_TEAM_ID_IX" unique="false">
            <column ascending="true" name="TEAM_ID"/>
         </index>
         <index name="TEAM_PLAYERS_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="TEAMS" numRows="0" remarks="Your organization's defined teams and groups" schema="hub" type="TABLE">
         <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="hub" table="ACTIVITY_ENROLLMENTS"/>
            <child catalog="ActiveHub" column="AWAY_TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_SCHEDULE_PAIRINGS"/>
            <child catalog="ActiveHub" column="HOME_TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_SCHEDULE_PAIRINGS"/>
            <child catalog="ActiveHub" column="OFFICIAL_TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LEAGUE_SCHEDULE_PAIRINGS"/>
            <child catalog="ActiveHub" column="TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TEAM_CONTACTS"/>
            <child catalog="ActiveHub" column="TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TEAM_PLAYERS"/>
            <child catalog="ActiveHub" column="TEAM_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="LEAGUES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" 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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="TEAM_NAME" nullable="true" remarks="The team name" size="60" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="5" 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="6" name="TEAM_DESCRIPTION" nullable="true" remarks="The team description" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="hub" table="ACTIVITY_TEAM_CATEGORIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="hub" table="ACTIVITY_DIVISIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="11" 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="12" 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="13" 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="14" 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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" 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="16" 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="0" id="17" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="TEAM_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="TEAMS_TEAM_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="TEAM_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="TEAMS_ACTIVITY_DIVISION_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_DIVISION_ID"/>
         </index>
         <index name="TEAMS_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="TEAMS_ACTIVITY_TEAM_CATEGORY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_TEAM_CATEGORY_ID"/>
         </index>
         <index name="TEAMS_HOME_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="HOME_FACILITY_ID"/>
         </index>
         <index name="TEAMS_LEAGUE_ID_IX" unique="false">
            <column ascending="true" name="LEAGUE_ID"/>
         </index>
         <index name="TEAMS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="TEAMS_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="TRANSACTION_STAGES" numRows="0" remarks="Contains stages required for individual transactions" schema="hub" type="TABLE">
         <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="hub" 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="hub" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" 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="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" 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="0" id="24" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="TRANSACTION_STAGE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="TRANSACTION_STAGES_TRANSACTION_STAGE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="TRANSACTION_STAGE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="TRANSACTION_STAGES_APPROVAL_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="APPROVAL_SYSTEMUSER_ID"/>
         </index>
         <index name="TRANSACTION_STAGES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="TRANSACTION_STAGES_SIGNED_WAIVER_FILE_ID_IX" unique="false">
            <column ascending="true" name="SIGNED_WAIVER_FILE_ID"/>
         </index>
         <index name="TRANSACTION_STAGES_STAGE_ID_IX" unique="false">
            <column ascending="true" name="STAGE_ID"/>
         </index>
         <index name="TRANSACTION_STAGES_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
         <index name="TRANSACTION_STAGES_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_ID"/>
         </index>
         <index name="TRANSACTION_STAGES_WAIVER_FILE_ID_IX" unique="false">
            <column ascending="true" name="WAIVER_FILE_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="TRANSACTIONS" numRows="0" remarks="Posted transaction data" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="ACTIVITY_ENROLLMENTS"/>
            <child catalog="ActiveHub" column="ROOT_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_ENROLLMENTS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_ENROLLMENTS"/>
            <child catalog="ActiveHub" column="ROOT_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_PRIVATE_LESSONS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="ACTIVITY_PRIVATE_LESSONS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="COUPON_USAGE"/>
            <child catalog="ActiveHub" column="ROOT_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOM_QUESTION_ANSWERS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_THIRD_PARTY_BILLING_LINKS"/>
            <child catalog="ActiveHub" column="ORIGINAL_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="DEFERRED_REVENUE_PROJECTIONS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LOCKER_SCHEDULES"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="POS_SALES_DETAILS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="ORIGINAL_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_GL_POSTINGS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TEAM_PLAYERS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TEAMS"/>
            <child catalog="ActiveHub" column="TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTION_STAGES"/>
            <child catalog="ActiveHub" column="ADDITIONAL_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="LINKED_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="ORIGINAL_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="ROLLOVER_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
            <child catalog="ActiveHub" column="ROOT_TRANSACTION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTIONS"/>
         </column>
         <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">
            <parent catalog="ActiveHub" column="RECEIPT_HEADER_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_HEADERS"/>
         </column>
         <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="3" id="4" 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="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="hub" table="SITES"/>
         </column>
         <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 transaction is for" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="SITE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="WORKSTATIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <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 transaction was created" size="4" type="int" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="11" 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="12" 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="13" 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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" 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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" 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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" 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="hub" table="COMPANIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="27" 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="28" 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="29" 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="hub" table="ACTIVITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" 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="31" 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="32" 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="33" 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="34" 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="35" 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="36" 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="37" 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="hub" table="ACTIVITY_PASS_FAIL_GRADES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="38" 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="39" 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="hub" table="TRANSACTIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" 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="hub" table="PROGRAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" 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="hub" table="SESSIONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" 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="hub" table="PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" 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="44" 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="45" 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="46" 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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" 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="hub" table="PERMITS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" 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="49" 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="hub" table="EVENT_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" 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="hub" table="SCHEDULE_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" 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="hub" table="PREP_CODES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" 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="53" 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="54" 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="55" 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="56" 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="hub" table="POS_PRODUCTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" 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="58" 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="59" 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="60" 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="hub" table="LEAGUE_SCHEDULES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="61" 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="hub" table="TEAMS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" 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="hub" table="CAMPAIGNS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="GIFT_CARD_ID" nullable="true" remarks="The gift certificate ID if this transaction is related to a gift certificate" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="GIFT_CARD_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="GIFT_CARDS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" 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="65" 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="66" 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="67" name="WITHDRAW_REASON" nullable="true" remarks="The reason for withdrawal" size="8000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="68" 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="hub" table="REASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="69" 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="70" 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="71" 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="72" 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="73" 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="74" 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="75" 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="76" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="79" 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="80" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="((0))" digits="0" id="81" name="VOIDED" nullable="false" remarks="Whether the transaction has been voided (1 = voided / 0 = not voided)" size="1" type="bit" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="82" 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="3" id="83" 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="84" name="CUSTOMQUESTIONANSWER_TRANSACTION_ID" nullable="true" remarks="The transaction ID for custom question answers that apply to this transaction" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="TRANSACTION_ID" sequenceNumberInPK="2"/>
         <index name="TRANSACTIONS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="TRANSACTIONS_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="TRANSACTIONS_CAMPAIGN_ID_VOIDED_IX" unique="false">
            <column ascending="true" name="CAMPAIGN_ID"/>
            <column ascending="true" name="VOIDED"/>
         </index>
         <index name="TRANSACTIONS_CANCEL_REASON_ID_IX" unique="false">
            <column ascending="true" name="CANCEL_REASON_ID"/>
         </index>
         <index name="TRANSACTIONS_CASH_SUMMARY_SHEET_ID_IX" unique="false">
            <column ascending="true" name="CASH_SUMMARY_SHEET_ID"/>
         </index>
         <index name="TRANSACTIONS_COMPANY_ID_IX" unique="false">
            <column ascending="true" name="COMPANY_ID"/>
         </index>
         <index name="TRANSACTIONS_CREATION_DATE_TIME_VOIDED_IX" unique="false">
            <column ascending="true" name="CREATION_DATE_TIME"/>
            <column ascending="true" name="VOIDED"/>
         </index>
         <index name="TRANSACTIONS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="TRANSACTION_ID"/>
         </index>
         <index name="TRANSACTIONS_CUSTOMQUESTIONANSWER_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMQUESTIONANSWER_TRANSACTION_ID"/>
         </index>
         <index name="TRANSACTIONS_EVENT_TYPE_ID_IX" unique="false">
            <column ascending="true" name="EVENT_TYPE_ID"/>
         </index>
         <index name="TRANSACTIONS_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="TRANSACTIONS_MEMBERSHIP_ID_IX" unique="false">
            <column ascending="true" name="MEMBERSHIP_ID"/>
         </index>
         <index name="TRANSACTIONS_nc_cs_ix" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
            <column ascending="true" name="CANCEL_REASON_ID"/>
            <column ascending="true" name="CASH_SUMMARY_SHEET_ID"/>
            <column ascending="true" name="COMPANY_ID"/>
            <column ascending="true" name="CREATION_DATE_TIME"/>
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="EVENT_TYPE_ID"/>
            <column ascending="true" name="FACILITY_ID"/>
            <column ascending="true" name="MEMBERSHIP_ID"/>
            <column ascending="true" name="ORIGINAL_TRANSACTION_ID"/>
            <column ascending="true" name="PACKAGE_ID"/>
            <column ascending="true" name="PERMIT_ID"/>
            <column ascending="true" name="POSPRODUCT_ID"/>
            <column ascending="true" name="PROGRAM_ID"/>
            <column ascending="true" name="RECEIPT_HEADER_ID"/>
            <column ascending="true" name="REVENUE_SITE_ID"/>
            <column ascending="true" name="ROOT_TRANSACTION_ID"/>
            <column ascending="true" name="SCHEDULE_TYPE_ID"/>
            <column ascending="true" name="SESSION_ID"/>
            <column ascending="true" name="SYSTEMUSER_ID"/>
            <column ascending="true" name="TRANSACTION_ID"/>
            <column ascending="true" name="TRANSACTION_SITE_ID"/>
            <column ascending="true" name="TRANSACTION_TYPE_ID"/>
            <column ascending="true" name="VOIDED"/>
            <column ascending="true" name="VOIDED_BY"/>
            <column ascending="true" name="VOIDED_DATE_TIME"/>
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
         <index name="TRANSACTIONS_ORIGINAL_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="ORIGINAL_TRANSACTION_ID"/>
         </index>
         <index name="TRANSACTIONS_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="PACKAGE_ID"/>
         </index>
         <index name="TRANSACTIONS_PERMIT_ID_IX" unique="false">
            <column ascending="true" name="PERMIT_ID"/>
         </index>
         <index name="TRANSACTIONS_POSPRODUCT_ID_IX" unique="false">
            <column ascending="true" name="POSPRODUCT_ID"/>
         </index>
         <index name="TRANSACTIONS_PROGRAM_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_ID"/>
         </index>
         <index name="TRANSACTIONS_RECEIPT_HEADER_ID_IX" unique="false">
            <column ascending="true" name="RECEIPT_HEADER_ID"/>
         </index>
         <index name="TRANSACTIONS_REVENUE_SITE_ID_IX" unique="false">
            <column ascending="true" name="REVENUE_SITE_ID"/>
         </index>
         <index name="TRANSACTIONS_ROOT_TRANSACTION_ID_IX" unique="false">
            <column ascending="true" name="ROOT_TRANSACTION_ID"/>
         </index>
         <index name="TRANSACTIONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="TRANSACTIONS_SCHEDULE_TYPE_ID_IX" unique="false">
            <column ascending="true" name="SCHEDULE_TYPE_ID"/>
         </index>
         <index name="TRANSACTIONS_SESSION_ID_IX" unique="false">
            <column ascending="true" name="SESSION_ID"/>
         </index>
         <index name="TRANSACTIONS_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="SYSTEMUSER_ID"/>
         </index>
         <index name="TRANSACTIONS_TRANSACTION_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="TRANSACTION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="TRANSACTIONS_TRANSACTION_SITE_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_SITE_ID"/>
         </index>
         <index name="TRANSACTIONS_TRANSACTION_TYPE_ID_IX" unique="false">
            <column ascending="true" name="TRANSACTION_TYPE_ID"/>
         </index>
         <index name="TRANSACTIONS_VOIDED_IX" unique="false">
            <column ascending="true" name="VOIDED"/>
            <column ascending="true" name="VOIDED_DATE_TIME"/>
         </index>
         <index name="TRANSACTIONS_WORKSTATION_ID_IX" unique="false">
            <column ascending="true" name="WORKSTATION_ID"/>
         </index>
      </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="hub" type="TABLE">
         <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="hub" table="CAMPAIGNS"/>
            <child catalog="ActiveHub" column="SIGNED_WAIVER_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_SIGNED_WAIVERS"/>
            <child catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_SIGNED_WAIVERS"/>
            <child catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_WAIVERS"/>
            <child catalog="ActiveHub" column="DISPLAY_IMAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="EVENT_TYPES"/>
            <child catalog="ActiveHub" column="CAPTIVATE_APP_IMAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITIES"/>
            <child catalog="ActiveHub" column="AVAILABLE_ICON_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_TYPES"/>
            <child catalog="ActiveHub" column="BOOKED_ICON_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_TYPES"/>
            <child catalog="ActiveHub" column="CLOSED_ICON_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="FACILITY_TYPES"/>
            <child catalog="ActiveHub" column="ICON_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LOCKER_ROOMS"/>
            <child catalog="ActiveHub" column="IMAGE_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="POS_PRODUCTS"/>
            <child catalog="ActiveHub" column="DISPLAY_IMAGE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RESERVATION_GROUPS"/>
            <child catalog="ActiveHub" column="SIGNED_WAIVER_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTION_STAGES"/>
            <child catalog="ActiveHub" column="WAIVER_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="TRANSACTION_STAGES"/>
            <child catalog="ActiveHub" column="BIRTHDAY_ALERT_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="EQUIPMENT_CUSTOMER_MAX_EXCEEDED_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="EQUIPMENT_INVENTORY_SHORT_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="EQUIPMENT_PREREQUISITE_MISSING_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="EQUIPMENT_SIGN_IN_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="EQUIPMENT_SIGN_OUT_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="PASS_AT_LAST_USE_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="PASS_DEBIT_BALANCE_GREATER_THAN_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="PASS_EXPIRY_WITHIN_DAYS_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="PASS_INVALID_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="PASS_MULTIPLE_SELECT_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="PASS_SCANNED_SAME_DAY_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="PASS_VALID_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="WORKSTATIONS"/>
            <child catalog="ActiveHub" column="STAFF_OR_CUSTOMER_NOTES_ALERT_SOUND_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="CUSTOMERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="7" 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="8" 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="9" 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="10" 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="hub" table="SYSTEM_USERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="3" id="11" 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="12" 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="13" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="0" id="15" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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"/>
         <primaryKey column="UPLOADED_FILE_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="UPLOADED_FILES_UPLOADED_FILE_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="UPLOADED_FILE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="UPLOADED_FILES_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="UPLOADED_FILES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="UPLOADED_FILES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="UPLOADED_FILES_UPLOADED_BY_SYSTEMUSER_ID_IX" unique="false">
            <column ascending="true" name="UPLOADED_BY_SYSTEMUSER_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="USAGE_FEES" numRows="0" remarks="Master table showing defined usage fees data" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="COUPON_BATCH_QUALIFICATIONS"/>
            <child catalog="ActiveHub" column="USAGE_FEE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="9" 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="hub" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" 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="12" name="FEE_SYSTEM_GL_ACCOUNT_PACKAGE_ID" nullable="true" remarks="The system 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="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="DISCOUNT_SYSTEM_GL_ACCOUNT_PACKAGE_ID" nullable="true" remarks="The system 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="hub" table="SYSTEM_GL_ACCOUNT_PACKAGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="hub" table="SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" 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="hub" table="CHILD_SEASONS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" 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="25" 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="hub" table="CHARGES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" 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="hub" table="GLACCOUNTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="27" 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="28" 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="29" 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="30" 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="31" 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="32" 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="33" 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="34" 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="35" 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="36" 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="37" 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="38" 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="39" 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="40" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="USAGE_FEE_ID" sequenceNumberInPK="2"/>
         <index name="USAGE_FEES_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="USAGE_FEES_DISCOUNT_SYSTEM_GL_ACCOUNT_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="DISCOUNT_SYSTEM_GL_ACCOUNT_PACKAGE_ID"/>
         </index>
         <index name="USAGE_FEES_EARLY_REGISTRATION_DISCOUNT_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="EARLY_REGISTRATION_DISCOUNT_CHARGE_ID"/>
         </index>
         <index name="USAGE_FEES_EARLY_REGISTRATION_DISCOUNT_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="EARLY_REGISTRATION_DISCOUNT_GLACCOUNT_ID"/>
         </index>
         <index name="USAGE_FEES_EARLY_REGISTRATION_UNTIL_CHILD_SEASON_ID_IX" unique="false">
            <column ascending="true" name="EARLY_REGISTRATION_UNTIL_CHILD_SEASON_ID"/>
         </index>
         <index name="USAGE_FEES_EARLY_REGISTRATION_UNTIL_SEASON_ID_IX" unique="false">
            <column ascending="true" name="EARLY_REGISTRATION_UNTIL_SEASON_ID"/>
         </index>
         <index name="USAGE_FEES_FEE_CHARGE_ID_IX" unique="false">
            <column ascending="true" name="FEE_CHARGE_ID"/>
         </index>
         <index name="USAGE_FEES_FEE_GLACCOUNT_ID_IX" unique="false">
            <column ascending="true" name="FEE_GLACCOUNT_ID"/>
         </index>
         <index name="USAGE_FEES_FEE_SYSTEM_GL_ACCOUNT_PACKAGE_ID_IX" unique="false">
            <column ascending="true" name="FEE_SYSTEM_GL_ACCOUNT_PACKAGE_ID"/>
         </index>
         <index name="USAGE_FEES_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="USAGE_FEES_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="USAGE_FEES_USAGE_FEE_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="USAGE_FEE_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </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="hub" type="TABLE">
         <column autoUpdated="true" 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="hub" 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="hub" 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="hub" 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="hub" 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="(getdate())" 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"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="WISHLIST_ID" sequenceNumberInPK="2"/>
         <primaryKey column="WISHLIST_PARTICIPANT_ID" sequenceNumberInPK="3"/>
         <index name="WISHLISTS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="WISHLISTS_ACTIVITY_ID_IX" unique="false">
            <column ascending="true" name="ACTIVITY_ID"/>
         </index>
         <index name="WISHLISTS_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="CUSTOMER_ID"/>
         </index>
         <index name="WISHLISTS_ORG_ID_1_IX" unique="false">
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="WISHLISTS_ORG_ID_2_IX" unique="false">
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="WISHLISTS_PARTICIPANT_CUSTOMER_ID_IX" unique="false">
            <column ascending="true" name="PARTICIPANT_CUSTOMER_ID"/>
         </index>
         <index name="WISHLISTS_PROGRAM_ID_IX" unique="false">
            <column ascending="true" name="PROGRAM_ID"/>
         </index>
         <index name="WISHLISTS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="WISHLISTS_WISHLIST_ID_ORG_ID_CUSTOMER_ID_ACTIVITY_ID_PROGRAM_ID_IX" unique="false">
            <column ascending="true" name="WISHLIST_ID"/>
            <column ascending="true" name="ORG_ID"/>
            <column ascending="true" name="CUSTOMER_ID"/>
            <column ascending="true" name="ACTIVITY_ID"/>
            <column ascending="true" name="PROGRAM_ID"/>
         </index>
         <index name="WISHLISTS_WISHLIST_PARTICIPANT_ID_IX" unique="false">
            <column ascending="true" name="WISHLIST_PARTICIPANT_ID"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="WORKSTATION_GROUPS" numRows="0" remarks="Your organization's defined workstation groups" schema="hub" type="TABLE">
         <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="hub" 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="0" id="2" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" 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="false" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="WORKSTATION_GROUP_ID" sequenceNumberInPK="1"/>
         <primaryKey column="ORG_ID" sequenceNumberInPK="2"/>
         <index name="WORKSTATION_GROUPS_WORKSTATION_GROUP_ID_ORG_ID_PK" unique="true">
            <column ascending="true" name="WORKSTATION_GROUP_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
         <index name="WORKSTATION_GROUPS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
      </table>
      <table catalog="ActiveHub" name="WORKSTATIONS" numRows="0" remarks="Master table showing defined workstations data" schema="hub" type="TABLE">
         <column autoUpdated="true" 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="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="hub" table="ACCOUNT_CREDIT_HISTORY"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="AR_SCHEDULED_HEADERS"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CREDIT_CARD_PROCESSING_LOG"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_NOTES"/>
            <child catalog="ActiveHub" column="CREATION_WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="CUSTOMER_THIRD_PARTY_BILLING_LINKS"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="GIFT_CARDS"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="LOCKER_SCHEDULES"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="MEMBERSHIP_AUDIT_LOG"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="POS_SALES_DETAILS"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="PROGRAM_REGISTRATIONS"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_DETAILS"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_GL_POSTINGS"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_HEADERS"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="RECEIPT_PAYMENTS"/>
            <child catalog="ActiveHub" column="LAST_UPDATED_WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SAVED_CREDIT_CARD_HISTORY"/>
            <child catalog="ActiveHub" column="UPDATED_WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SAVED_CREDIT_CARD_HISTORY"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SAVED_CREDIT_CARDS"/>
            <child catalog="ActiveHub" column="SERVER_WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SYSTEM_USAGE_LOG"/>
            <child catalog="ActiveHub" column="USER_WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="SYSTEM_USAGE_LOG"/>
            <child catalog="ActiveHub" column="WORKSTATION_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" 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="hub" table="SITES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" 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="hub" table="CENTERS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" 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="hub" table="WORKSTATION_GROUPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" 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="hub" table="FACILITIES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" 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="hub" table="RESERVATION_GROUPS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" 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="9" 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="10" 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="11" 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="12" 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="13" 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="14" 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="15" 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="16" 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="17" 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="18" 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="19" 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="20" 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="21" 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="22" 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="23" 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="24" 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="25" 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="26" 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="27" 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="28" 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="29" 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="30" 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="31" name="PINPAD_OPENEDGE_XWEBTERMINALID" nullable="true" remarks="OpenEdge terminal XWebTerminalID" size="120" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="PINPAD_OPENEDGE_XWEBID" nullable="true" remarks="OpenEdge terminal XWebID" size="120" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="PINPAD_OPENEDGE_XWEBAUTHKEY" nullable="true" remarks="OpenEdge terminal XWebAuthKey" size="120" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" 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="35" 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="36" 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="37" 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="38" 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="hub" table="ENTRY_POINTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" 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="40" 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="41" 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="42" 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="43" 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="44" 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="45" name="BIRTHDAY_ALERT_SOUND_FILE_ID" nullable="true" remarks="The sound file ID to play if it is the scanning customer's birthday" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="STAFF_OR_CUSTOMER_NOTES_ALERT_SOUND_FILE_ID" nullable="true" remarks="The sound file ID to play if there are notes or alerts to display for the scanning customer" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="PASS_AT_LAST_USE_SOUND_FILE_ID" nullable="true" remarks="The sound file ID to play if the scanning customer's last available use for their membership" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="48" 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="49" name="PASS_DEBIT_BALANCE_GREATER_THAN_SOUND_FILE_ID" nullable="true" remarks="The sound file ID to play if the customer's membership pass has a debit balance above the configured amount" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" 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="51" name="PASS_EXPIRY_WITHIN_DAYS_SOUND_FILE_ID" nullable="true" remarks="The sound file ID to play if the customer's membership pass will expire within the configured number of days" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="PASS_INVALID_SOUND_FILE_ID" nullable="true" remarks="The sound file ID to play if the scanned membership pass is not valid" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="PASS_MULTIPLE_SELECT_SOUND_FILE_ID" nullable="true" remarks="The sound file ID to play if the customer has multiple membership passes valid at this entry point" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="PASS_SCANNED_SAME_DAY_SOUND_FILE_ID" nullable="true" remarks="The sound file ID to play if the customer's membership pass is scanned again within the same day" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="PASS_VALID_SOUND_FILE_ID" nullable="true" remarks="The sound file ID to play if the scanned membership pass is valid" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" 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="57" 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="58" 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="hub" table="POS_LAYOUTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" 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="60" 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="61" 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="62" 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="63" 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="64" 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="65" 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="66" 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="67" 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="68" 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="hub" table="POS_RECEIPTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="69" 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="70" 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="hub" table="POS_CONTROL_CODES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="71" 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="72" 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="73" 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="74" 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="hub" table="CASH_SUMMARY_SHEET_LAYOUTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="75" 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="76" 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="77" 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="78" 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="hub" table="POS_LAYOUTS"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="79" 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="hub" table="ALTERNATE_KEY_TYPES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="80" name="ENABLE_EQUIPMENT_LENDING_SOUNDS" nullable="true" remarks="Whether equipment lending sounds are enabled on this workstation (Yes/)" size="15" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="81" name="EQUIPMENT_SIGN_OUT_SOUND_FILE_ID" nullable="true" remarks="The sound file ID to play for successful equipment lending sign-out" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="82" name="EQUIPMENT_SIGN_IN_SOUND_FILE_ID" nullable="true" remarks="The sound file ID to play for successful equipment lending sign-in" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="83" name="EQUIPMENT_PREREQUISITE_MISSING_SOUND_FILE_ID" nullable="true" remarks="The sound file ID to play as a warning for a missing sign-out prerequisite" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="84" name="EQUIPMENT_CUSTOMER_MAX_EXCEEDED_SOUND_FILE_ID" nullable="true" remarks="The sound file ID to play as a warning if the customer has exceeded their equipment sign-out quantity limit" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="85" name="EQUIPMENT_INVENTORY_SHORT_SOUND_FILE_ID" nullable="true" remarks="The sound file ID to play as a warning if the attempting to sign-out a quantity of equipment in excess of available inventory" size="4" type="int" typeCode="4">
            <parent catalog="ActiveHub" column="UPLOADED_FILE_ID" foreignKey="Defined in XML" implied="false" onDeleteCascade="false" schema="hub" table="UPLOADED_FILES"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="86" 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="87" 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="88" 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="89" 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="90" 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="0" id="91" name="ROW_VERSION" nullable="true" remarks="System timestamp (for internal use)" size="8" type="binary" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="(getdate())" digits="3" id="92" 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="93" 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="94" name="ORG_ID" nullable="true" remarks="Your organization's unique identifier in the Active Net system" size="4" type="int" typeCode="4"/>
         <primaryKey column="ACTIVE_HUB_KEY" sequenceNumberInPK="1"/>
         <primaryKey column="WORKSTATION_ID" sequenceNumberInPK="2"/>
         <index name="WORKSTATIONS_ACTIVE_HUB_KEY_PK" unique="true">
            <column ascending="true" name="ACTIVE_HUB_KEY"/>
         </index>
         <index name="WORKSTATIONS_CENTER_ID_IX" unique="false">
            <column ascending="true" name="CENTER_ID"/>
         </index>
         <index name="WORKSTATIONS_ENTRYPOINT_ID_IX" unique="false">
            <column ascending="true" name="ENTRYPOINT_ID"/>
         </index>
         <index name="WORKSTATIONS_FACILITY_GROUP_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_GROUP_ID"/>
         </index>
         <index name="WORKSTATIONS_FACILITY_ID_IX" unique="false">
            <column ascending="true" name="FACILITY_ID"/>
         </index>
         <index name="WORKSTATIONS_ROW_VERSION_IX" unique="false">
            <column ascending="true" name="ROW_VERSION"/>
         </index>
         <index name="WORKSTATIONS_SITE_ID_IX" unique="false">
            <column ascending="true" name="SITE_ID"/>
         </index>
         <index name="WORKSTATIONS_WORKSTATION_GROUP_ID_IX" unique="false">
            <column ascending="true" name="WORKSTATION_GROUP_ID"/>
         </index>
         <index name="WORKSTATIONS_WORKSTATION_ID_ORG_ID_UQ" unique="true">
            <column ascending="true" name="WORKSTATION_ID"/>
            <column ascending="true" name="ORG_ID"/>
         </index>
      </table>
   </tables>
   <routines>
      <routine dataAccess="READS" deterministic="false" name="udf_AgeInYearsMonths" returnType="float" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="SQL"><![CDATA[--/ 	 KitSection = Tables
-- 	 KitSection = UserFunctions
--KitManagerFileID=21438
--FileName=hub.udf_AgeInYearsMonths.sql
--SubmittedBy=Rae Andrews (ACTIVE\randrews)

--DROP FUNCTION hub.udf_AgeInYearsMonths;
CREATE   FUNCTION hub.udf_AgeInYearsMonths (
    @BirthDate DATETIME,
    @AgeOnDate DATETIME)
RETURNS FLOAT
WITH SCHEMABINDING  
AS
BEGIN
    DECLARE @AgeInYearsMonths FLOAT = NULL;

    IF @BirthDate IS NOT NULL AND  @BirthDate > '1899-12-30' BEGIN
        DECLARE @YearNow INT = DATEPART(YEAR, @AgeOnDate);
        DECLARE @MonthNow INT = DATEPART(MONTH, @AgeOnDate);
        DECLARE @DayNow INT = DATEPART(DAY, @AgeOnDate);
        DECLARE @BirthYear INT = DATEPART(YEAR, @BirthDate);
        DECLARE @BirthMonth INT = DATEPART(MONTH, @BirthDate);
        DECLARE @BirthDay INT = DATEPART(DAY, @BirthDate);
        DECLARE @YearAge INT = @YearNow - @BirthYear;
        DECLARE @MonthAge INT = @MonthNow - @BirthMonth;

        RETURN CAST(CONCAT(
            CAST(CASE
                WHEN @MonthNow < @BirthMonth THEN (@YearAge - 1)
                WHEN @MonthNow = @BirthMonth AND @DayNow < @BirthDay THEN (@YearAge - 1)
                ELSE @YearAge
                END AS VARCHAR(4))
            , '.',
            CAST(CASE
                WHEN @DayNow < @BirthDay AND (@MonthAge - 1) < 0 THEN ((@MonthAge - 1) + 12)
                WHEN @DayNow < @BirthDay THEN (@MonthAge - 1)
                WHEN @MonthAge < 0 THEN (@MonthAge + 12)
                ELSE @MonthAge
                END AS VARCHAR(2))
            ) AS FLOAT);
    END;

    RETURN @AgeInYearsMonths;
END;]]></definition>
         <parameters>
            <parameter mode="IN" name="@BirthDate" type="datetime"/>
            <parameter mode="IN" name="@AgeOnDate" type="datetime"/>
         </parameters>
      </routine>
      <routine dataAccess="READS" deterministic="false" name="udf_MembershipEODStats" returnType="TABLE" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="SQL"><![CDATA[--KitManagerFileID=21439
--FileName=hub.udf_MembershipEODStats.sql
--SubmittedBy=Rae Andrews (ACTIVE\randrews)

--DROP FUNCTION hub.udf_MembershipEODStats;
CREATE   FUNCTION hub.udf_MembershipEODStats (
    @StartDate DATE, 
    @EndDate DATE,
    @RetentionEligibleOnly BIT = 1,
    @MonthEndsOnly BIT = 1,
    @IncludeSite BIT = 1,
    @IncludeCategory BIT = 1,
    @IncludePackage BIT = 1)
RETURNS TABLE
AS
RETURN
    WITH
        ENV (StartDate, EndDate, NextDate) AS (
            SELECT 
                CAST(ISNULL(@StartDate, DATEFROMPARTS(YEAR(GETDATE()) - 4, 1, 1)) AS DATE) AS StartDate,
                CAST(ISNULL(@EndDate, GETDATE()) AS DATE) AS EndDate,
                CAST(DATEADD(DAY, 1, ISNULL(@EndDate, GETDATE())) AS DATE) AS NextDate
        ),
        MEMBERSHIP_LAST_HISTORY (MEMBERSHIP_HISTORY_ID) AS (
            SELECT MAX(mal.MEMBERSHIP_HISTORY_ID) AS MEMBERSHIP_HISTORY_ID
            FROM hub.MEMBERSHIP_AUDIT_LOG mal
                JOIN hub.PACKAGES p ON p.PACKAGE_ID = mal.PACKAGE_ID
                JOIN hub.PACKAGE_CATEGORIES pc ON pc.PACKAGE_CATEGORY_ID = p.CATEGORY_ID
                CROSS JOIN ENV
            WHERE mal.BEG_DATESTAMP < ENV.NextDate
            AND mal.DATE_EFFECTIVE < ENV.NextDate
            AND (CASE
                WHEN mal.END_DATESTAMP IS NOT NULL THEN mal.END_DATESTAMP
                WHEN mal.VOIDED = 1 AND mal.MEMBERSHIP_STATUS = 'VOIDED' THEN mal.BEG_DATESTAMP
                ELSE ENV.NextDate
                END) > ENV.StartDate
            AND (CASE
                WHEN mal.END_DATESTAMP IS NOT NULL THEN mal.END_DATESTAMP
                WHEN mal.VOIDED = 1 AND mal.MEMBERSHIP_STATUS = 'VOIDED' THEN mal.BEG_DATESTAMP
                ELSE ENV.NextDate
                END) > mal.DATE_EFFECTIVE
            AND (@RetentionEligibleOnly = 0 OR pc.RETENTION_ELIGIBLE = 'Yes')
            GROUP BY mal.MEMBERSHIP_ID
        ),
        MEMBERSHIP_AUDIT_DATES (MEMBERSHIP_HISTORY_ID, SITE_ID, CATEGORY_ID, PACKAGE_ID, BEG_DATE, END_DATE, IS_ACTIVE, IS_SUSPENDED) AS (
            SELECT mal.MEMBERSHIP_HISTORY_ID,
                (CASE WHEN @IncludeSite = 1 THEN mal.SITE_ID ELSE NULL END) AS SITE_ID,
                (CASE WHEN @IncludeCategory = 1 THEN p.CATEGORY_ID ELSE NULL END) AS CATEGORY_ID,
                (CASE WHEN @IncludePackage = 1 THEN mal.PACKAGE_ID ELSE NULL END) AS PACKAGE_ID,
                CAST((CASE WHEN mal.DATE_EFFECTIVE > mal.BEG_DATESTAMP THEN mal.DATE_EFFECTIVE ELSE mal.BEG_DATESTAMP END) AS DATE) AS BEG_DATE,
                DATEADD(DAY, -1, ISNULL(CAST(mal.END_DATESTAMP AS DATE), ENV.EndDate)) AS END_DATE, -- IGNORE THE LAST DATE
                (CASE WHEN mal.MEMBERSHIP_STATUS IN ('Active', 'Suspended', 'Renewing') THEN 1 ELSE 0 END) AS IS_ACTIVE,
                (CASE WHEN mal.MEMBERSHIP_STATUS = 'Suspended' THEN 1 ELSE 0 END) AS IS_SUSPENDED
            FROM hub.MEMBERSHIP_AUDIT_LOG mal
                JOIN hub.PACKAGES p ON p.PACKAGE_ID = mal.PACKAGE_ID
                JOIN hub.PACKAGE_CATEGORIES pc ON pc.PACKAGE_CATEGORY_ID = p.CATEGORY_ID
                CROSS JOIN ENV
            WHERE ISNULL(CAST(mal.END_DATESTAMP AS DATE), ENV.EndDate) > CAST(mal.BEG_DATESTAMP AS DATE) -- ONLY IF IT SPANS DAYS
            AND mal.BEG_DATESTAMP < ENV.NextDate
            AND mal.DATE_EFFECTIVE < ENV.NextDate
            AND ISNULL(mal.END_DATESTAMP, ENV.EndDate) >= DATEADD(DAY, 1, ENV.StartDate)
            AND ISNULL(mal.END_DATESTAMP, ENV.EndDate) > mal.DATE_EFFECTIVE
            AND (@RetentionEligibleOnly = 0 OR pc.RETENTION_ELIGIBLE = 'Yes')
            AND (mal.VOIDED = 0 OR mal.MEMBERSHIP_STATUS <> 'VOIDED')
            UNION ALL
            SELECT mal.MEMBERSHIP_HISTORY_ID,
                (CASE WHEN @IncludeSite = 1 THEN mal.SITE_ID ELSE NULL END) AS SITE_ID,
                (CASE WHEN @IncludeCategory = 1 THEN p.CATEGORY_ID ELSE NULL END) AS CATEGORY_ID,
                (CASE WHEN @IncludePackage = 1 THEN mal.PACKAGE_ID ELSE NULL END) AS PACKAGE_ID,
                (CASE
                    WHEN mal.END_DATESTAMP IS NOT NULL THEN CAST(mal.END_DATESTAMP AS DATE)
                    WHEN mal.VOIDED = 1 AND mal.MEMBERSHIP_STATUS = 'VOIDED' THEN CAST(mal.BEG_DATESTAMP AS DATE)
                    ELSE ENV.EndDate
                    END) AS BEG_DATE,
                (CASE
                    WHEN mal.END_DATESTAMP IS NOT NULL THEN CAST(mal.END_DATESTAMP AS DATE)
                    WHEN mal.VOIDED = 1 AND mal.MEMBERSHIP_STATUS = 'VOIDED' THEN CAST(mal.BEG_DATESTAMP AS DATE)
                    ELSE ENV.EndDate
                    END) AS END_DATE,
                (CASE WHEN mal.MEMBERSHIP_STATUS IN ('Active', 'Suspended', 'Renewing') THEN 1 ELSE 0 END) AS IS_ACTIVE,
                (CASE WHEN mal.MEMBERSHIP_STATUS = 'Suspended' THEN 1 ELSE 0 END) AS IS_SUSPENDED
            FROM hub.MEMBERSHIP_AUDIT_LOG mal
                JOIN hub.PACKAGES p ON p.PACKAGE_ID = mal.PACKAGE_ID
                JOIN hub.PACKAGE_CATEGORIES pc ON pc.PACKAGE_CATEGORY_ID = p.CATEGORY_ID
                JOIN MEMBERSHIP_LAST_HISTORY mlh ON mlh.MEMBERSHIP_HISTORY_ID = mal.MEMBERSHIP_HISTORY_ID
                CROSS JOIN ENV
            WHERE mal.DATE_EFFECTIVE < ENV.NextDate
            AND (CASE
                WHEN mal.END_DATESTAMP IS NOT NULL THEN mal.END_DATESTAMP
                WHEN mal.VOIDED = 1 AND mal.MEMBERSHIP_STATUS = 'VOIDED' THEN mal.BEG_DATESTAMP
                ELSE ENV.EndDate
                END) < ENV.NextDate
            AND (CASE
                WHEN mal.END_DATESTAMP IS NOT NULL THEN mal.END_DATESTAMP
                WHEN mal.VOIDED = 1 AND mal.MEMBERSHIP_STATUS = 'VOIDED' THEN mal.BEG_DATESTAMP
                ELSE ENV.EndDate
                END) > mal.DATE_EFFECTIVE
            AND (CASE
                WHEN mal.END_DATESTAMP IS NOT NULL THEN mal.END_DATESTAMP
                WHEN mal.VOIDED = 1 AND mal.MEMBERSHIP_STATUS = 'VOIDED' THEN mal.BEG_DATESTAMP
                ELSE ENV.EndDate
                END) <> DATEADD(DAY, 1, ISNULL(mal.DATE_EXPIRES, ENV.EndDate))
        ),
        TARGET_DATES (TARGET_DATE) AS (
            SELECT CAST(ahd.dt_dt AS DATE) AS TARGET_DATE
            FROM dbo.ACTIVE_HUB_DATES ahd
                CROSS JOIN ENV
            WHERE ahd.dt_dt BETWEEN ENV.StartDate AND ENV.EndDate
            AND (@MonthEndsOnly = 0 OR ahd.mo_end_flg = 'T')
        )
    SELECT td.TARGET_DATE AS AUDIT_DATE,
        mad.SITE_ID,
        mad.CATEGORY_ID,
        mad.PACKAGE_ID,
        COUNT(1) AS ACTIVE_COUNT,
        SUM(mad.IS_SUSPENDED) AS SUSPENDED_COUNT
    FROM MEMBERSHIP_AUDIT_DATES mad
    CROSS JOIN TARGET_DATES td
    WHERE td.TARGET_DATE BETWEEN mad.BEG_DATE AND mad.END_DATE
    AND mad.IS_ACTIVE = 1
    GROUP BY td.TARGET_DATE,
        mad.SITE_ID,
        mad.CATEGORY_ID,
        mad.PACKAGE_ID;]]></definition>
         <parameters>
            <parameter mode="IN" name="@StartDate" type="date"/>
            <parameter mode="IN" name="@EndDate" type="date"/>
            <parameter mode="IN" name="@RetentionEligibleOnly" type="bit"/>
            <parameter mode="IN" name="@MonthEndsOnly" type="bit"/>
            <parameter mode="IN" name="@IncludeSite" type="bit"/>
            <parameter mode="IN" name="@IncludeCategory" type="bit"/>
            <parameter mode="IN" name="@IncludePackage" type="bit"/>
         </parameters>
      </routine>
      <routine dataAccess="READS" deterministic="false" name="udf_MembershipEODStats_Detail" returnType="TABLE" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="SQL"><![CDATA[CREATE   FUNCTION [hub].[udf_MembershipEODStats_Detail] (
    @StartDate DATE, 
    @EndDate DATE,
    @RetentionEligibleOnly BIT = 1,
    @MonthEndsOnly BIT = 1,
    @IncludeSite BIT = 1,
    @IncludeCategory BIT = 1,
    @IncludePackage BIT = 1)
RETURNS TABLE
AS
RETURN
    WITH
        ENV (StartDate, EndDate, NextDate) AS (
            SELECT 
                CAST(ISNULL(@StartDate, DATEFROMPARTS(YEAR(GETDATE()) - 4, 1, 1)) AS DATE) AS StartDate,
                CAST(ISNULL(@EndDate, GETDATE()) AS DATE) AS EndDate,
                CAST(DATEADD(DAY, 1, ISNULL(@EndDate, GETDATE())) AS DATE) AS NextDate
        ),
        MEMBERSHIP_LAST_HISTORY (ORG_ID, MEMBERSHIP_ID, MEMBERSHIP_HISTORY_ID) AS (
            SELECT  mal.ORG_ID, mal.MEMBERSHIP_ID, MAX(mal.MEMBERSHIP_HISTORY_ID) AS MEMBERSHIP_HISTORY_ID
            FROM hub.MEMBERSHIP_AUDIT_LOG mal
                JOIN hub.PACKAGES p ON (p.ORG_ID = mal.ORG_ID AND p.PACKAGE_ID = mal.PACKAGE_ID)
                JOIN hub.PACKAGE_CATEGORIES pc ON (pc.ORG_ID = p.ORG_ID AND pc.PACKAGE_CATEGORY_ID = p.CATEGORY_ID)
                CROSS JOIN ENV
            WHERE mal.BEG_DATESTAMP < ENV.NextDate
            AND mal.DATE_EFFECTIVE < ENV.NextDate
            AND (CASE
                WHEN mal.END_DATESTAMP IS NOT NULL THEN mal.END_DATESTAMP
                WHEN mal.VOIDED = 1 AND mal.MEMBERSHIP_STATUS = 'VOIDED' THEN mal.BEG_DATESTAMP
                ELSE ENV.NextDate
                END) > ENV.StartDate
            AND (CASE
                WHEN mal.END_DATESTAMP IS NOT NULL THEN mal.END_DATESTAMP
                WHEN mal.VOIDED = 1 AND mal.MEMBERSHIP_STATUS = 'VOIDED' THEN mal.BEG_DATESTAMP
                ELSE ENV.NextDate
                END) > mal.DATE_EFFECTIVE
            AND (@RetentionEligibleOnly = 0 OR pc.RETENTION_ELIGIBLE = 'Yes')
            GROUP BY mal.ORG_ID, mal.MEMBERSHIP_ID
        ),
        MEMBERSHIP_AUDIT_DATES (ORG_ID, MEMBERSHIP_ID, MEMBERSHIP_HISTORY_ID, SITE_ID, CATEGORY_ID, PACKAGE_ID, BEG_DATE, END_DATE, IS_ACTIVE, IS_SUSPENDED) AS (
            SELECT  mal.ORG_ID, mal.MEMBERSHIP_ID, mal.MEMBERSHIP_HISTORY_ID,
                (CASE WHEN @IncludeSite = 1 THEN mal.SITE_ID ELSE NULL END) AS SITE_ID,
                (CASE WHEN @IncludeCategory = 1 THEN p.CATEGORY_ID ELSE NULL END) AS CATEGORY_ID,
                (CASE WHEN @IncludePackage = 1 THEN mal.PACKAGE_ID ELSE NULL END) AS PACKAGE_ID,
                CAST((CASE WHEN mal.DATE_EFFECTIVE > mal.BEG_DATESTAMP THEN mal.DATE_EFFECTIVE ELSE mal.BEG_DATESTAMP END) AS DATE) AS BEG_DATE,
                DATEADD(DAY, -1, ISNULL(CAST(mal.END_DATESTAMP AS DATE), ENV.EndDate)) AS END_DATE, -- IGNORE THE LAST DATE
            (CASE
                WHEN mal.MEMBERSHIP_STATUS IN ('Active', 'Suspended', 'Renewing') THEN 1
                WHEN mal.MEMBERSHIP_STATUS = 'Expired' AND mal.DATE_EXPIRES > mal.BEG_DATESTAMP THEN 1
                ELSE 0
                END) AS IS_ACTIVE,
            (CASE WHEN mal.MEMBERSHIP_STATUS = 'Suspended' THEN 1 ELSE 0 END) AS IS_SUSPENDED
            FROM hub.MEMBERSHIP_AUDIT_LOG mal
                JOIN hub.PACKAGES p ON (p.ORG_ID = mal.ORG_ID AND p.PACKAGE_ID = mal.PACKAGE_ID)
                JOIN hub.PACKAGE_CATEGORIES pc ON (pc.ORG_ID = p.ORG_ID AND pc.PACKAGE_CATEGORY_ID = p.CATEGORY_ID)
                CROSS JOIN ENV
            WHERE ISNULL(CAST(mal.END_DATESTAMP AS DATE), ENV.EndDate) > CAST(mal.BEG_DATESTAMP AS DATE) -- ONLY IF IT SPANS DAYS
            AND mal.BEG_DATESTAMP < ENV.NextDate
            AND mal.DATE_EFFECTIVE < ENV.NextDate
            AND ISNULL(mal.END_DATESTAMP, ENV.EndDate) >= DATEADD(DAY, 1, ENV.StartDate)
            AND ISNULL(mal.END_DATESTAMP, ENV.EndDate) > mal.DATE_EFFECTIVE
            AND (@RetentionEligibleOnly = 0 OR pc.RETENTION_ELIGIBLE = 'Yes')
            AND (mal.VOIDED = 0 OR mal.MEMBERSHIP_STATUS <> 'VOIDED')
            UNION ALL
            SELECT mal.ORG_ID, mal.MEMBERSHIP_ID, mal.MEMBERSHIP_HISTORY_ID,
                (CASE WHEN @IncludeSite = 1 THEN mal.SITE_ID ELSE NULL END) AS SITE_ID,
                (CASE WHEN @IncludeCategory = 1 THEN p.CATEGORY_ID ELSE NULL END) AS CATEGORY_ID,
                (CASE WHEN @IncludePackage = 1 THEN mal.PACKAGE_ID ELSE NULL END) AS PACKAGE_ID,
                (CASE
                    WHEN mal.END_DATESTAMP IS NOT NULL THEN CAST(mal.END_DATESTAMP AS DATE)
                    WHEN mal.VOIDED = 1 AND mal.MEMBERSHIP_STATUS = 'VOIDED' THEN CAST(mal.BEG_DATESTAMP AS DATE)
                    ELSE ENV.EndDate
                    END) AS BEG_DATE,
                (CASE
                    WHEN mal.END_DATESTAMP IS NOT NULL THEN CAST(mal.END_DATESTAMP AS DATE)
                    WHEN mal.VOIDED = 1 AND mal.MEMBERSHIP_STATUS = 'VOIDED' THEN CAST(mal.BEG_DATESTAMP AS DATE)
                    ELSE ENV.EndDate
                    END) AS END_DATE,
            (CASE
                WHEN mal.MEMBERSHIP_STATUS IN ('Active', 'Suspended', 'Renewing') THEN 1
                WHEN mal.MEMBERSHIP_STATUS = 'Expired' AND mal.DATE_EXPIRES > mal.BEG_DATESTAMP THEN 1
                ELSE 0
                END) AS IS_ACTIVE,
            (CASE WHEN mal.MEMBERSHIP_STATUS = 'Suspended' THEN 1 ELSE 0 END) AS IS_SUSPENDED
            FROM hub.MEMBERSHIP_AUDIT_LOG mal
                JOIN hub.PACKAGES p ON (p.ORG_ID = mal.ORG_ID AND p.PACKAGE_ID = mal.PACKAGE_ID)
                JOIN hub.PACKAGE_CATEGORIES pc ON (pc.ORG_ID = p.ORG_ID AND pc.PACKAGE_CATEGORY_ID = p.CATEGORY_ID)
                JOIN MEMBERSHIP_LAST_HISTORY mlh ON (mlh.ORG_ID = mal.ORG_ID AND mlh.MEMBERSHIP_HISTORY_ID = mal.MEMBERSHIP_HISTORY_ID)
                CROSS JOIN ENV
            WHERE mal.DATE_EFFECTIVE < ENV.NextDate
            AND (CASE
                WHEN mal.END_DATESTAMP IS NOT NULL THEN mal.END_DATESTAMP
                WHEN mal.VOIDED = 1 AND mal.MEMBERSHIP_STATUS = 'VOIDED' THEN mal.BEG_DATESTAMP
                ELSE ENV.EndDate
                END) < ENV.NextDate
            AND (CASE
                WHEN mal.END_DATESTAMP IS NOT NULL THEN mal.END_DATESTAMP
                WHEN mal.VOIDED = 1 AND mal.MEMBERSHIP_STATUS = 'VOIDED' THEN mal.BEG_DATESTAMP
                ELSE ENV.EndDate
                END) > mal.DATE_EFFECTIVE
            AND (CASE
                WHEN mal.END_DATESTAMP IS NOT NULL THEN mal.END_DATESTAMP
                WHEN mal.VOIDED = 1 AND mal.MEMBERSHIP_STATUS = 'VOIDED' THEN mal.BEG_DATESTAMP
                ELSE ENV.EndDate
                END) <> DATEADD(DAY, 1, ISNULL(mal.DATE_EXPIRES, ENV.EndDate))
        ),
        TARGET_DATES (TARGET_DATE) AS (
            SELECT CAST(ahd.dt_dt AS DATE) AS TARGET_DATE
            FROM dbo.ACTIVE_HUB_DATES ahd
                CROSS JOIN ENV
            WHERE ahd.dt_dt BETWEEN ENV.StartDate AND ENV.EndDate
            AND (@MonthEndsOnly = 0 OR ahd.mo_end_flg = 'T')
        )
    SELECT 
		td.TARGET_DATE AS AUDIT_DATE,
		mad.ORG_ID, 
        mad.MEMBERSHIP_ID,
        mad.SITE_ID,
        mad.CATEGORY_ID,
        mad.PACKAGE_ID,
		CASE mad.IS_SUSPENDED 
			WHEN 0 THEN 'No' 
			ELSE 'Yes' 
		END IS_SUSPENDED
    FROM MEMBERSHIP_AUDIT_DATES mad
    CROSS JOIN TARGET_DATES td
    WHERE td.TARGET_DATE BETWEEN mad.BEG_DATE AND mad.END_DATE
    AND mad.IS_ACTIVE = 1]]></definition>
         <parameters>
            <parameter mode="IN" name="@StartDate" type="date"/>
            <parameter mode="IN" name="@EndDate" type="date"/>
            <parameter mode="IN" name="@RetentionEligibleOnly" type="bit"/>
            <parameter mode="IN" name="@MonthEndsOnly" type="bit"/>
            <parameter mode="IN" name="@IncludeSite" type="bit"/>
            <parameter mode="IN" name="@IncludeCategory" type="bit"/>
            <parameter mode="IN" name="@IncludePackage" type="bit"/>
         </parameters>
      </routine>
      <routine dataAccess="READS" deterministic="false" name="udf_ValidateEmailFormat" returnType="bit" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="SQL"><![CDATA[--DROP FUNCTION hub.udf_ValidateEmailFormat;
CREATE   FUNCTION hub.udf_ValidateEmailFormat (
    @EmailAddress VARCHAR(255))
RETURNS BIT
WITH SCHEMABINDING  
AS
BEGIN
    DECLARE @EmailIsValid BIT = (CASE
        WHEN @EmailAddress IS NULL THEN 0
        WHEN LEN(@EmailAddress) = 0 THEN 0
        WHEN @EmailAddress LIKE '%[^a-z,0-9,@,.,!,#,$,%%,&,'',*,+,--,/,=,?,^,_,`,{,|,},~]%' THEN 0 --First Carat ^ means Not these characters in the LIKE clause. The list is the valid email characters.
        WHEN @EmailAddress NOT LIKE '%_@%_.[a-z,0-9][a-z]%' THEN 0
        WHEN @EmailAddress LIKE '%@%@%' THEN 0
        WHEN @EmailAddress LIKE '%..%' THEN 0
        WHEN @EmailAddress LIKE '.%' THEN 0
        WHEN @EmailAddress LIKE '%.' THEN 0
        WHEN CHARINDEX('@', @EmailAddress) > 65 THEN 0
        ELSE 1
        END);

    RETURN @EmailIsValid;
END;]]></definition>
         <parameters>
            <parameter mode="IN" name="@EmailAddress" type="varchar"/>
         </parameters>
      </routine>
   </routines>
</database>
