CREATE TABLE [dbo].[MessageHistory]
(
    [Id] UNIQUEIDENTIFIER NOT NULL PRIMARY KEY, 
    [ReportingPartyId] UNIQUEIDENTIFIER NULL, 
    [EntityId] UNIQUEIDENTIFIER NOT NULL, 
    [EntityType] NVARCHAR(100) NOT NULL, 
    [EntityName] NVARCHAR(50) NULL, 
    [EntityValues] NVARCHAR(MAX) NULL, 
    [Timestamp] DATETIME NOT NULL DEFAULT GETDATE()
)
