Purchasing |
04/26/2006 |
PRIMARY |
16 |
32 |
104 |
Companies from whom Adventure Works Cycles purchases parts or other goods. |
|
|
VendorID |
int |
4 |
|
|
|
|
Primary key for Vendor records. |
|
|
AccountNumber |
AccountNumber |
30 |
|
|
|
|
Vendor account (identification) number. |
|
|
Name |
Name |
100 |
|
|
|
|
Company name. |
|
|
CreditRating |
tinyint |
1 |
|
|
|
|
1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average |
|
|
PreferredVendorStatus |
Flag |
1 |
|
((1)) |
|
|
0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product. |
|
|
ActiveFlag |
Flag |
1 |
|
((1)) |
|
|
0 = Vendor no longer used. 1 = Vendor is actively used. |
|
|
PurchasingWebServiceURL |
nvarchar |
1024 |
|
|
|
|
Vendor URL. |
|
|
ModifiedDate |
datetime |
8 |
|
(getdate()) |
|
|
Date and time the record was last updated. |
Total: 8 column(s)
|
VendorID |
1 |
1 |
|
Total: 2 index(es)
Total: 1 trigger(s)
|
CK_Vendor_CreditRating |
([CreditRating]>=(1) AND [CreditRating]<=(5)) |
Total: 1 constraint(s)
Total: 4 table(s)
Total: 3 object(s)
Total: 11 object(s)
CREATE TABLE [Vendor] (
[VendorID] [int] IDENTITY (1, 1) NOT NULL ,
[AccountNumber] [AccountNumber] NOT NULL ,
[Name] [Name] NOT NULL ,
[CreditRating] [tinyint] NOT NULL ,
[PreferredVendorStatus] [Flag] NOT NULL CONSTRAINT [DF_Vendor_PreferredVendorStatus] DEFAULT ((1)),
[ActiveFlag] [Flag] NOT NULL CONSTRAINT [DF_Vendor_ActiveFlag] DEFAULT ((1)),
[PurchasingWebServiceURL] [nvarchar] (1024) COLLATE Latin1_General_CS_AS NULL ,
[ModifiedDate] [datetime] NOT NULL CONSTRAINT [DF_Vendor_ModifiedDate] DEFAULT (getdate()),
CONSTRAINT [PK_Vendor_VendorID] PRIMARY KEY CLUSTERED
(
[VendorID]
) ON [PRIMARY] ,
CONSTRAINT [CK_Vendor_CreditRating] CHECK ([CreditRating]>=(1) AND [CreditRating]<=(5))
) ON [PRIMARY]
GO
List of tables