Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 MESSAGETEXT nvarchar(2000)   Default = ''
 MESSAGETYPECODE tinyint   Default = 0 0=General error, 1=Duplicate record error, 2=Address validation error
 MESSAGETYPE nvarchar(24) (Computed) CASE [MESSAGETYPECODE] WHEN 0 THEN N'General error' WHEN 1 THEN N'Duplicate record error' WHEN 2 THEN N'Address validation error' END Provides a translation for the 'MESSAGETYPECODE' field.
 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) CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Key Field Type Null Notes Description
 ID uniqueidentifier   BATCHMEMBERSHIP.ID Primary Key.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_BATCHMEMBERSHIPBATCHUSERMESSAGE_DATEADDED DATEADDED    
 IX_BATCHMEMBERSHIPBATCHUSERMESSAGE_DATECHANGED DATECHANGED      
 PK_BATCHMEMBERSHIPBATCHUSERMESSAGE ID  

Trigger Name Description
 TR_BATCHMEMBERSHIPBATCHUSERMESSAGE_AUDIT_UPDATE
 TR_BATCHMEMBERSHIPBATCHUSERMESSAGE_AUDIT_DELETE

Entity-Relationship diagram of this table