CREATE TABLE [dbo].[ATForm] (
    [FormName]    NVARCHAR (255)   NOT NULL,
    [ProcessID]   INT              NOT NULL,
    [Type]        INT              NULL,
    [Path]        NVARCHAR (255)   NULL,
    [Description] NVARCHAR (255)   NULL,
    [ObjectId]    UNIQUEIDENTIFIER NULL,
    CONSTRAINT [PK_ATForm] PRIMARY KEY NONCLUSTERED ([FormName] ASC, [ProcessID] ASC),
    CONSTRAINT [ATForm_FK1] FOREIGN KEY ([ProcessID]) REFERENCES [dbo].[ATProcessDefinition] ([ProcessID])
);


GO
CREATE NONCLUSTERED INDEX [ATForm_IX_ProcessId]
    ON [dbo].[ATForm]([ProcessID] ASC);

