CREATE TABLE [dbo].[ATSearchRegistration] (
    [ObjectGuid]     UNIQUEIDENTIFIER NOT NULL,
    [SearchLocation] NVARCHAR (50)    NOT NULL,
    [SearchType]     NVARCHAR (50)    NOT NULL,
    [ConnectionName] NVARCHAR (50)    NOT NULL,
    [DatabaseName]   NVARCHAR (50)    NOT NULL,
    [TableName]      NVARCHAR (50)    NOT NULL,
    [BaseLinkUrl]    NVARCHAR (255)   NULL,
    CONSTRAINT [PK_ATSearchRegistration] PRIMARY KEY NONCLUSTERED ([ObjectGuid] ASC),
    CONSTRAINT [ATSearchRegistration_FK1] FOREIGN KEY ([ConnectionName]) REFERENCES [dbo].[ATEnterpriseConnection] ([ConnectionName])
);

