AdventureWorks2019
Production.Location
//
Product inventory and manufacturing locations.
Created: Modified:
Columns
-
//${escapify(column.description)}[smallint] IDENTITY (1,1) NOT NULL
-
//${escapify(column.description)}[Name] NOT NULL//USER-DEFINED DATA TYPE[nvarchar](50) NULL
-
//${escapify(column.description)}[smallmoney] NOT NULL DEFAULT ((0.00))//CONSTRAINT: Check constraint [CostRate] >= (0.00)([CostRate]>=(0.00))
-
//${escapify(column.description)}[decimal](8, 2) NOT NULL DEFAULT ((0.00))//CONSTRAINT: Check constraint [Availability] >= (0.00)([Availability]>=(0.00))
-
//${escapify(column.description)}[datetime] NOT NULL DEFAULT (getdate())
Indexes
-
//Clustered index created by a primary key constraint.PK_Location_LocationIDUNIQUE CLUSTEREDLocationID
-
//Unique nonclustered index.AK_Location_NameUNIQUE NONCLUSTEREDName
Sample Data
LocationID
Name
CostRate
Availability
ModifiedDate
1
Tool Crib
NULL
NULL
2
Sheet Metal Racks
NULL
NULL
3
Paint Shop
NULL
NULL
4
Paint Storage
NULL
NULL
5
Metal Storage
NULL
NULL
6
Miscellaneous Storage
NULL
NULL
7
Finished Goods Storage
NULL
NULL
10
Frame Forming
22.5
96
20
Frame Welding
25
108
30
Debur and Polish
14.5
120
40
Paint
15.75
120
45
Specialized Paint
18
80
50
Subassembly
12.25
120
60
Final Assembly
12.25
120