dbo.SXASHUserMsg 
Default Table Name  SXASHUserMsg 
Definition  This table contains information about messages that a user has sent and those that have been received. It is used mainly to describe messages from a user’s perspective. For instance when generating a user’s mailbox 

dbo.SXASHUserMsg Columns 
ColumnName  Domain  Datatype  NULL  Definition 
SiteID    smallint  NO  Identifies the unique distributed database ID where the row was inserted. Distributed databases are no longer supported so this column is deprecated. 
Build    int  NO  Identifies the build number and patch level of the software that inserted/updated this row. The format is the Build number followed by 3 digits for the patch level which is typically 000. The build number is tied to specific versions of the software, e.g. Sunrise 15.3 is Build 5021, Sunrise 16.3 is Build 5503. 
TouchedBy    varchar(128)  NO  Information about the user that last updated the row. This will typically be the UserID (IDCode from CV3User table) and may be prefixed with an environment identifier followed by an underscore, e.g. b96d2bf5_jongmore. 
TouchedWhen    datetime  NO  The date and time that the row was last updated and will be based on the Enterprise time zone. 
CreatedBy    varchar(128)  NO  Information about the user that created the row. This will typically be the UserID (IDCode from CV3User table) and may be prefixed with an environment identifier followed by an underscore, e.g. b96d2bf5_jongmore. 
CreatedWhen    datetime  NO  The date and time that the row was created and will be based on the Enterprise time zone. 
UserMsgID(PK)    bigint  NO  Auto generated unique primary key value. 
DeleteFlag    bit  NO  Indicates if the message is marked as deleted. 
ReadFlag    bit  NO  Indicates if the message has been read 
UserID(FK)    bigint  YES  A foreign key to the UserID column in the SXASHUser table. 
MessageID(FK)    bigint  NO  A foreign key to the MessageID column in the SXASHMessage table. 
IsNotified    bit  NO  flag indicating notification was sent 
FolderID    bigint  NO  Associates the message to its folder. Links to the SXASHUserFolder. 
RecipientName    varchar(500)  YES  PHI: The user display name that was used when the user received the message. 
UserMsgAttribute    smallint  NO  An enumerated type with the following list of possible values: 0 = [Direct Recipient],1 = [Proxy Recipient],2 = [Sender], 
MSrepl_tran_version    uniqueidentifier  NO  Optimistic lock identifier. 
GroupID    bigint  YES  A foreign key to the GroupID column in the SXASHGroup table.  
IsReadReceiptSent    bit  NO  Identifier whether read receipt is sent or not. 
InitialFolderID    bigint  YES  Information of Original Folder ID of User Message recipient 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 

dbo.SXASHUserMsg Primary and Unique Keys 
Key Name  Key Type  Keys 
SXASHUserMsgPK  PrimaryKey  UserMsgID