Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ACTIVE_HUB_KEY | int identity | 4 | √ | null |
|
|
The Hub record ID |
||||
| MEMBERSHIP_HISTORY_ID | int | 4 | √ | null |
|
|
This membership history ID is for troubleshooting purposes |
||||
| BEG_DATESTAMP | datetime | 16,3 | √ | null |
|
|
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 |
||||
| END_DATESTAMP | datetime | 16,3 | √ | null |
|
|
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 |
||||
| HISTORY_TRANSACTION_TYPE | varchar | 255 | √ | null |
|
|
This indicates the origin or cause of the membership change: |
||||
| VOIDED | bit | 1 | √ | null |
|
|
Whether this transaction has been voided |
||||
| TRANSACTION_ID | int | 4 | √ | null |
|
|
The transaction ID of the transaction type for the membership change. |
||||
| MEMBERSHIP_ID | int | 4 | √ | null |
|
|
Membership ID |
||||
| PACKAGE_ID | int | 4 | √ | null |
|
|
The ID of the membership package |
||||
| MEMBERSHIP_STATUS | varchar | 255 | √ | null |
|
|
Membership status, including Pending, Active, Voided, Refunded, Renewing, Deferred Commit |
||||
| DATE_EFFECTIVE | date | 20 | √ | null |
|
|
The date when the membership became effective |
||||
| DATE_EXPIRES | date | 20 | √ | null |
|
|
The expiry date of the membership |
||||
| DATE_SUSPEND_FROM | date | 20 | √ | null |
|
|
The date when the membership was suspended |
||||
| DATE_SUSPEND_TO | date | 20 | √ | null |
|
|
The date when the membership’s suspension ended |
||||
| AUTORENEWAL_TYPE | varchar | 255 | √ | null |
|
|
The payment method selected for an auto-renewal membership |
||||
| PRIMARYMEMBERCUSTOMER_ID | int | 4 | √ | null |
|
|
The ID for the primary member |
||||
| MAX_USES | int | 4 | √ | null |
|
|
For a punch card membership, this is the maximum number of uses for this membership (not the remaining number of uses) |
||||
| SITE_ID | int | 4 | √ | null |
|
|
The ID of the site to which this package belongs |
||||
| MEMBER_SINCE_DATE | date | 20 | √ | null |
|
|
The date when the customer purchased a valid membership If the previous membership package expired, then the date when the customer purchased a new package is the new “Member Since Date” |
||||
| LAST_SYNC_TIME | datetime | 16,3 | (getdate()) |
|
|
Date and time Hub record was last modified |
|||||
| ACTIVE_HUB_PROCESS_ID | bigint | 8 | √ | null |
|
|
The Hub sync process ID |
||||
| CANCELLATION_REASON | varchar | 800 | √ | null |
|
|
The reason this package was cancelled |
||||
| BEG_DATE_ONLY | date | 20 | √ | null |
|
|
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) |
||||
| END_DATE_ONLY | date | 20 | √ | null |
|
|
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) |
||||
| VOIDED_YES_NO | varchar | 5 | √ | null |
|
|
Whether this transaction has been voided. |
||||
| ORG_ID | int | 4 | √ | null |
|
|
Your organization’s unique identifier in the Active Net system |
||||
| SUSPENDED_REASON_ID | int | 4 | √ | null |
|
|
The Reason ID for the membership suspension |
||||
| CANCELLATION_REASON_ID | int | 4 | √ | null |
|
|
The Reason ID for the membership package termination |
||||
| CANCELLATION_DATE | datetime | 16,3 | √ | null |
|
|
The date that the membership was either manually cancelled, or was scheduled for termination on. |
||||
| CANCELLATION_DATE_ONLY | date | 20 | √ | null |
|
|
The date that the membership was either manually cancelled, or was scheduled for termination on (date only) |
||||
| CANCELLED_ON_DATE | date | 20 | √ | null |
|
|
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. |
||||
| PACKAGE_CATEGORY_ID | Unknown | 0 | null |
|
|
||||||
| SYSTEMUSER_ID | int | 4 | √ | null |
|
|
The ID of the system user who performed the membership change |
||||
| WORKSTATION_ID | int | 4 | √ | null |
|
|
The ID of the workstation where the membership change was made |
||||
| ROW_VERSION | binary | 8 | √ | null |
|
|
System timestamp (for internal use) |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| MEMBERSHIP_AUDIT_LOG_PK | Primary key | Asc | ACTIVE_HUB_KEY |
| MEMBERSHIP_AUDIT_LOG_BEG_DATE_ONLY_MAX_USES_PACKAGE_ID_VOIDED_YES_NO_ORG_ID_IX | Performance | Asc/Asc/Asc/Asc/Asc | BEG_DATE_ONLY + MAX_USES + PACKAGE_ID + VOIDED_YES_NO + ORG_ID |
| MEMBERSHIP_AUDIT_LOG_BEG_DATE_ONLY_MAX_USES_VOIDED_YES_NO_IX | Performance | Asc/Asc/Asc | BEG_DATE_ONLY + MAX_USES + VOIDED_YES_NO |
| MEMBERSHIP_AUDIT_LOG_BEG_DATESTAMP_DATE_EFFECTIVE_PACKAGE_ID_ORG_ID_IX | Performance | Asc/Asc/Asc/Asc | BEG_DATESTAMP + DATE_EFFECTIVE + PACKAGE_ID + ORG_ID |
| MEMBERSHIP_AUDIT_LOG_BEG_DATESTAMP_HISTORY_TRANSACTION_TYPE_IX | Performance | Asc/Asc | BEG_DATESTAMP + HISTORY_TRANSACTION_TYPE |
| MEMBERSHIP_AUDIT_LOG_DATE_EFFECTIVE_BEG_DATESTAMP_IX | Performance | Asc/Asc | DATE_EFFECTIVE + BEG_DATESTAMP |
| MEMBERSHIP_AUDIT_LOG_DATE_EFFECTIVE_PACKAGE_ID_IX | Performance | Asc/Asc | DATE_EFFECTIVE + PACKAGE_ID |
| MEMBERSHIP_AUDIT_LOG_HISTORY_TRANSACTION_TYPE_IX | Performance | Asc | HISTORY_TRANSACTION_TYPE |
| MEMBERSHIP_AUDIT_LOG_MEMBERSHIP_HISTORY_ID_ORG_ID_UQ | Must be unique | Asc/Asc | MEMBERSHIP_HISTORY_ID + ORG_ID |
| MEMBERSHIP_AUDIT_LOG_MEMBERSHIP_ID_ORG_ID_IX | Performance | Asc/Asc | MEMBERSHIP_ID + ORG_ID |
| MEMBERSHIP_AUDIT_LOG_nc_cs_ix | Performance | Asc/Asc/Asc/Asc/Asc/Asc/Asc/Asc/Asc/Asc/Asc/Asc/Asc | BEG_DATESTAMP + DATE_EFFECTIVE + DATE_EXPIRES + END_DATESTAMP + HISTORY_TRANSACTION_TYPE + MEMBERSHIP_HISTORY_ID + MEMBERSHIP_ID + MEMBERSHIP_STATUS + PACKAGE_ID + PRIMARYMEMBERCUSTOMER_ID + SITE_ID + SYSTEMUSER_ID + VOIDED |
| MEMBERSHIP_AUDIT_LOG_PACKAGE_ID_IX | Performance | Asc | PACKAGE_ID |
| MEMBERSHIP_AUDIT_LOG_PRIMARYMEMBERCUSTOMER_ID_IX | Performance | Asc | PRIMARYMEMBERCUSTOMER_ID |
| MEMBERSHIP_AUDIT_LOG_ROW_VERSION_IX | Performance | Asc | ROW_VERSION |
| MEMBERSHIP_AUDIT_LOG_SYSTEMUSER_ID_IX | Performance | Asc | SYSTEMUSER_ID |