BATCHMEMBERSHIPDUESBATCHUSERMESSAGE

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
MESSAGETEXT nvarchar(2000) Default = ''
MESSAGETYPECODE tinyint Default = 0
MESSAGETYPE nvarchar(24) (Computed) yes CASE [MESSAGETYPECODE] WHEN 0 THEN N'General error' WHEN 1 THEN N'Duplicate record error' WHEN 2 THEN N'Address validation error' END
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
ID uniqueidentifier BATCHMEMBERSHIPDUES.ID
ADDEDBYID uniqueidentifier CHANGEAGENT.ID
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID

Indexes

Index Name Fields Unique Primary Clustered
IX_BATCHMEMBERSHIPDUESBATCHUSERMESSAGE_DATEADDED DATEADDED yes
IX_BATCHMEMBERSHIPDUESBATCHUSERMESSAGE_DATECHANGED DATECHANGED
PK_BATCHMEMBERSHIPDUESBATCHUSERMESSAGE ID yes yes

Triggers

Trigger Name Description
TR_BATCHMEMBERSHIPDUESBATCHUSERMESSAGE_AUDIT_UPDATE
TR_BATCHMEMBERSHIPDUESBATCHUSERMESSAGE_AUDIT_DELETE