CREATE TABLE [dbo].[ActivityLog]
(
	[Id] INT NOT NULL PRIMARY KEY  identity(1,1),
	[Type] NVARCHAR(200) NOT NULL ,
   [TimeStamp] DateTime NOT NULL,
   [Description] NVARCHAR(MAX) NOT NULL ,
   [UserId] INT NULL ,
   [IpAddress] NVARCHAR(200) NOT NULL ,
   [UserAgent] NVARCHAR(200) NOT NULL, 
	CONSTRAINT [FK_ActivityLog_User] FOREIGN KEY ([UserId]) REFERENCES [dbo].[User](Id) 

)