MEMBERSHIPCARDFORMAT

Stores the various membership card formats.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(100) Default = '' The name of the card format.
DESCRIPTION nvarchar(255) Default = '' Details about the card format.
REPORT nvarchar(255) Default = '' Path of the report used for printing membership cards.
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
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_MEMBERSHIPCARDFORMAT_DATEADDED DATEADDED yes
IX_MEMBERSHIPCARDFORMAT_DATECHANGED DATECHANGED
PK_MEMBERSHIPCARDFORMAT ID yes yes

Triggers

Trigger Name Description
TR_MEMBERSHIPCARDFORMAT_AUDIT_UPDATE
TR_MEMBERSHIPCARDFORMAT_AUDIT_DELETE