MEMBERSHIPPROGRAMENDDATE

The expiration dates for a membership program.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
EXPIRATIONDATE UDT_MONTHDAY Default = '0000' The expiration date for this period.
PUSHNEXTDATE UDT_MONTHDAY Default = '0000' The date after which memberships are pushed to the next period.
SEQUENCE int Default = 0 The sequence of expiration dates for the program.
DATEADDED datetime Default = getdate() Indicates the date this record was added.
DATECHANGED datetime Default = getdate() Indicates the date this record was last changed.
TS timestamp Timestamp.
TSLONG bigint (Computed) yes CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Keys

Foreign Key Field Type Null Notes Description
MEMBERSHIPPROGRAMID uniqueidentifier MEMBERSHIPPROGRAM.ID The membership program for this expiration date.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_MEMBERSHIPPROGRAMENDDATE_DATEADDED DATEADDED yes
IX_MEMBERSHIPPROGRAMENDDATE_DATECHANGED DATECHANGED
PK_MEMBERSHIPPROGRAMENDDATE ID yes yes

Triggers

Trigger Name Description
TR_MEMBERSHIPPROGRAMENDDATE_AUDIT_UPDATE
TR_MEMBERSHIPPROGRAMENDDATE_AUDIT_DELETE