MEMBERSHIPCANCELLATIONCODE

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
CODE nvarchar(10) Default = ''
DESCRIPTION nvarchar(50) Default = ''
ACTIVE bit Default = 1
DATEADDED datetime Default = getdate()
DATECHANGED datetime Default = getdate()
TS timestamp
TSLONG bigint (Computed) yes CONVERT(bigint, TS)

Foreign Keys

Foreign Key Field Type Null Notes Description
ADDEDBYID uniqueidentifier CHANGEAGENT.ID
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID

Indexes

Index Name Fields Unique Primary Clustered
IX_MEMBERSHIPCANCELLATIONCODE_DATEADDED DATEADDED yes
IX_MEMBERSHIPCANCELLATIONCODE_DATECHANGED DATECHANGED
PK_MEMBERSHIPCANCELLATIONCODE ID yes yes
UC_MEMBERSHIPCANCELLATIONCODE_CODE CODE yes

Triggers

Trigger Name Description
TR_MEMBERSHIPCANCELLATIONCODE_AUDIT_UPDATE
TR_MEMBERSHIPCANCELLATIONCODE_AUDIT_DELETE

Referenced by

Referenced by Field
MEMBERSHIP CANCELLATIONREASONCODEID