CREATE TABLE [dbo].[ATExportDefinition_ExportLocation] (
    [ExportDefinitionId] INT NOT NULL,
    [ExportLocationId] INT NOT NULL,
    CONSTRAINT [PK_ATExportDefinition_ExportLocation] 
    PRIMARY KEY CLUSTERED ([ExportDefinitionId], [ExportLocationId]),
    CONSTRAINT [FK_ATExportDefinition_ExportLocation_Definition] 
    FOREIGN KEY ([ExportDefinitionId]) REFERENCES [dbo].[ATExportDefinition] ([Id]) ON DELETE CASCADE,
    CONSTRAINT [FK_ATExportDefinition_ExportLocation_Location]
    FOREIGN KEY ([ExportLocationId]) REFERENCES [dbo].[ATExportLocation] ([Id]) ON DELETE CASCADE
);
