1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| USE [eStore]
GO
/****** Objet*: Table [dbo].[DataFeedExcludeProductList] Date de génération du script*: 10/05/2009 15:17:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DataFeedExcludeProductList](
[FeedId] [int] NOT NULL,
[ProductId] [int] NOT NULL,
CONSTRAINT [PK_DataFeedExcludeProductList] PRIMARY KEY CLUSTERED
(
[FeedId] ASC,
[ProductId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DataFeedExcludeProductList] WITH CHECK ADD CONSTRAINT [FK_DataFeedExcludeProductList_DataFeeds] FOREIGN KEY([FeedId])
REFERENCES [dbo].[DataFeeds] ([FeedId])
ON DELETE CASCADE
GO
ALTER TABLE [dbo].[DataFeedExcludeProductList] CHECK CONSTRAINT [FK_DataFeedExcludeProductList_DataFeeds]
GO
ALTER TABLE [dbo].[DataFeedExcludeProductList] WITH CHECK ADD CONSTRAINT [FK_DataFeedExcludeProductList_Products] FOREIGN KEY([ProductId])
REFERENCES [dbo].[Products] ([ProductId])
ON DELETE CASCADE
GO
ALTER TABLE [dbo].[DataFeedExcludeProductList] CHECK CONSTRAINT [FK_DataFeedExcludeProductList_Products] |
Partager