Skip to main content

Membership fact table

Bi_DimUserMembership_s3

Field

Field Type

Description

PrimaryKey

MappedDimensionTable

DimensionTableField

CancellationReasonFK

DECIMAL(19,0)

unique identifier for cancellation reason

CenterId

VARCHAR(36)

uniquq identifier for center

bi_dimcenter

centerid

DimUserMembershipId

DECIMAL(19,0)

unique identifier for the row.

Yes

EndDate

DATE

The end date of the time period corresponding to the "membership status".

etlCreatedBy

INT

ETL system admin user who inserted or updated the corresponding record in this table.

EtlLastUpdatedBy

NVARCHAR(50)

ETL system admin user who inserted or updated the corresponding record in this table.

EtlLastUpdatedOn

TIMESTAMP

Latest timestamp at which the corresponding record was either inserted or updated in this table.

HasSetupFee

BOOLEAN

Indicates whether the membership version has a Setup Membership associated with it.

- True: Setup membership associated

- False: Setup membership not associated

InvoiceItemId

VARCHAR(36)

The Invoice item id of the membership.

If the mmembership type is a 'Setup Membership', this field always points to the Main Membership that the Setup is associated to.

tm.membershiptype = 1 then 'Recurring'

when

tm.membershiptype = 2 then 'Setup Membership'

when tm.membershiptype = 3 then 'Annual Membership'

else 'Non-Recurring' end as MembershiptypeDisplayValue

IsAutoRenew

NVARCHAR(MAX)

Indicates whether the membership is set to auto renew for the guest.

- True: Is set to auto renew

- False: Is not set to auto renew

IsCurrentRecord

BOOLEAN

DO NOT USE- THIS FIELD IS BEING DEPRECATED

IsSetupFee

BOOLEAN

DO NOT USE- THIS FIELD IS BEING DEPRECATED

MembershipEndDate

DATE

The expiry date of the membership for the user, irrespective of the 'membership status' for that row. This remains constant throughout the membership lifecycle. Even if the membership gets cancelled before the expiry date, this remains constant.

MembershipId

VARCHAR(36)

A unique identifier for the membership.This maps to the ID in the URL in the Membership configuration page of the core system. If the mmembership type is a 'Setup Membership', this field always points to the Main Membership that the Setup is associated to.

MembershipStartDate

DATE

The initial start date of the membership for the user, irrespective of the 'membership status' for that row. If a membership involves setup, this is the date on which the set up membership started. This remains constant throughout the membership lifecycle. Even if the membership gets cancelled before the expiry date, this remains constant.

MembershipVersionId

VARCHAR(36)

A unique identifier for every version of a membership.This maps to the version ID in the URL in the Membership configuration page of the core system

OrganizationId

VARCHAR(36)

unique identifier for the organization

PodName

VARCHAR(20)

Internal to the ETL, says from which POD data is being synced the table

recurringcancelleddate

DATE

The date from which the recurring payment for a membership is no longer carried out

Note: This date doesn't signify the cancellation of membership. It signifies the date of cancellation of payment

SetupUserMembershipId

VARCHAR(36)

The usermembershipid of the Setup Membership

StartDate

DATE

The start date of the time period corresponding to the "membership status".

Status

SMALLINT

Status of the membership between "membership start date" and "membership end date". Possible values:

- Active

- Frozen

- Suspended

- Expired with prepaids remaining

- Upgrade (when the current membership is opted for an upgrade)

- Downgrade (when the current membership is opted for an downgrade)

- Upgraded (when the opted upgrade has actually started)

- Downgraded (when the opted downgrade has actually started)

- Not Applicable (when there are multiple status changes on the same day. These are not considered valid statuses when that happens

TerminationReason

INT

The reason for the termination of a membership. Possible values:

- Expired

- Expired with prepaids remaining

- Suspended

- Cancelled

UpgradeDowngradeFrom

VARCHAR(36)

The source usermembershipid for the current membership. Which membership did the current membership get upgraded/ downgraded from

UpgradeDowngradeInto

VARCHAR(36)

The target usermembershipid for the current membership. Which membership is the current membership getting upgraded/ downgraded to

UserId

VARCHAR(36)

A unique identifier for the guest. This is a non-blank value that gets populated for every guest

bi_dimuser

userid

UserMembershipId

VARCHAR(36)

A unique identifier for every membership sold. If the mmembership type is a 'Setup Membership', this field always points to the Main Membership that the Setup is associated to

void

BOOLEAN

Indicates if the row should be inserted or deleted. 1- delete, 0-insert

groupid

Internal to Zenoti. Used for data processing.

BIGINT