CREATE TABLE [dbo].[ATHistoryParameter] (
    [HistoryParameterId]   INT            NOT NULL,
    [HistoryId]            INT            NOT NULL,
    [HistoryParameterType] INT            NOT NULL,
    [HistoryParameter]     NVARCHAR (255) NOT NULL,
    CONSTRAINT [PK_ATHistoryParameter] PRIMARY KEY NONCLUSTERED ([HistoryParameterId] ASC),
    CONSTRAINT [ATHistoryParameter_FK1] FOREIGN KEY ([HistoryId]) REFERENCES [dbo].[ATHistory] ([HistoryId])
);

