Properties

Owner: Production 
Creation Date: 04/26/2006 
Located On: PRIMARY 
Data Size KB:
Index Size KB:
Rows: 32 
Description: Cross-reference table mapping products to related product documents. 

Columns

Name Data Type Length NULL Default IsIdentity IsGUID Description
    ProductID  int          Product identification number. Foreign key to Product.ProductID. 
    DocumentID  int          Document identification number. Foreign key to Document.DocumentID. 
    ModifiedDate  datetime    (getdate())      Date and time the record was last updated. 
Total: 3 column(s)

Indexes

Index Primary Unique Description
  PK_ProductDocument_ProductID_DocumentID      Primary key (clustered) constraint 
Total: 1 index(es)

Referenced Tables

Table Foreign Key Primary Key or Unique Constraint
  Production.Document  FK_ProductDocument_Document_DocumentID  PK_Document_DocumentID 
  Production.Product  FK_ProductDocument_Product_ProductID  PK_Product_ProductID 
Total: 2 table(s)

Objects that [Production].[ProductDocument] depends on

Object Name Owner Object Type Dep Level
  Flag  dbo  User Defined type 
  Name  dbo  User Defined type 
  Document  Production  Table 
  ProductCategory  Production  Table 
  ProductModel  Production  Table 
  UnitMeasure  Production  Table 
  ProductSubcategory  Production  Table 
  Product  Production  Table 
Total: 8 object(s)

SQL

CREATE TABLE [ProductDocument] (
    [ProductID] [int] NOT NULL ,
    [DocumentID] [int] NOT NULL ,
    [ModifiedDate] [datetime] NOT NULL CONSTRAINT [DF_ProductDocument_ModifiedDate] DEFAULT (getdate()),
    CONSTRAINT [PK_ProductDocument_ProductID_DocumentID] PRIMARY KEY  CLUSTERED
    (
        [ProductID],
        [DocumentID]
    )  ON [PRIMARY] ,
    CONSTRAINT [FK_ProductDocument_Document_DocumentID] FOREIGN KEY
    (
        [DocumentID]
    ) REFERENCES [Document] (
        [DocumentID]
    ),
    CONSTRAINT [FK_ProductDocument_Product_ProductID] FOREIGN KEY
    (
        [ProductID]
    ) REFERENCES [Product] (
        [ProductID]
    )
) ON [PRIMARY]
GO


See Also

List of tables