Databases > WideWorldImporters > Tables > Warehouse.StockItems

WideWorldImporters

Warehouse.StockItems

//
Main entity table for stock items

SYSTEM VERSIONED

Created: Modified:

Columns

  • //
    ${escapify(column.description)}
    StockItemID
    [int] NOT NULL DEFAULT (NEXT VALUE FOR [Sequences].[StockItemID])
  • //
    ${escapify(column.description)}
    StockItemName
    [nvarchar](100) NOT NULL
  • //
    ${escapify(column.description)}
    SupplierID
    [int] NOT NULL
  • //
    ${escapify(column.description)}
    ColorID
    [int] NULL
  • //
    ${escapify(column.description)}
    UnitPackageID
    [int] NOT NULL
  • //
    ${escapify(column.description)}
    OuterPackageID
    [int] NOT NULL
  • //
    ${escapify(column.description)}
    Brand
    [nvarchar](50) NULL
  • //
    ${escapify(column.description)}
    Size
    [nvarchar](20) NULL
  • //
    ${escapify(column.description)}
    LeadTimeDays
    [int] NOT NULL
  • //
    ${escapify(column.description)}
    QuantityPerOuter
    [int] NOT NULL
  • //
    ${escapify(column.description)}
    IsChillerStock
    [bit] NOT NULL
  • //
    ${escapify(column.description)}
    Barcode
    [nvarchar](50) NULL
  • //
    ${escapify(column.description)}
    TaxRate
    [decimal](18, 3) NOT NULL
  • //
    ${escapify(column.description)}
    UnitPrice
    [decimal](18, 2) NOT NULL
  • //
    ${escapify(column.description)}
    RecommendedRetailPrice
    [decimal](18, 2) NULL
  • //
    ${escapify(column.description)}
    TypicalWeightPerUnit
    [decimal](18, 3) NOT NULL
  • //
    ${escapify(column.description)}
    MarketingComments
    [nvarchar](MAX) NULL
  • //
    ${escapify(column.description)}
    InternalComments
    [nvarchar](MAX) NULL
  • //
    ${escapify(column.description)}
    Photo
    [varbinary](MAX) NULL
  • //
    ${escapify(column.description)}
    CustomFields
    [nvarchar](MAX) NULL
  • //
    ${escapify(column.description)}
    Tags
    [nvarchar](MAX) NULL
  • //
    ${escapify(column.description)}
    SearchDetails
    [nvarchar](MAX) NOT NULL
  • LastEditedBy
    [int] NOT NULL
  • ValidFrom
    [datetime2](8) NOT NULL
  • ValidTo
    [datetime2](8) NOT NULL

Indexes

  • PK_Warehouse_StockItems
    UNIQUE CLUSTERED
    StockItemID
  • UQ_Warehouse_StockItems_StockItemName
    UNIQUE NONCLUSTERED
    StockItemName
  • //
    Auto-created to support a foreign key
    FK_Warehouse_StockItems_SupplierID
    NONCLUSTERED
    SupplierID
  • //
    Auto-created to support a foreign key
    FK_Warehouse_StockItems_ColorID
    NONCLUSTERED
    ColorID
  • //
    Auto-created to support a foreign key
    FK_Warehouse_StockItems_UnitPackageID
    NONCLUSTERED
    UnitPackageID
  • //
    Auto-created to support a foreign key
    FK_Warehouse_StockItems_OuterPackageID
    NONCLUSTERED
    OuterPackageID

Foreign Keys

  • FK_Warehouse_StockItems_Application_People
    Application.People
    LastEditedBy ⥱ PersonID
  • FK_Warehouse_StockItems_ColorID_Warehouse_Colors
    Warehouse.Colors
    ColorID ⥱ ColorID
  • FK_Warehouse_StockItems_OuterPackageID_Warehouse_PackageTypes
    Warehouse.PackageTypes
    OuterPackageID ⥱ PackageTypeID
  • FK_Warehouse_StockItems_SupplierID_Purchasing_Suppliers
    Purchasing.Suppliers
    SupplierID ⥱ SupplierID
  • FK_Warehouse_StockItems_UnitPackageID_Warehouse_PackageTypes
    Warehouse.PackageTypes
    UnitPackageID ⥱ PackageTypeID

Sample Data

StockItemID
StockItemName
SupplierID
ColorID
UnitPackageID
OuterPackageID
Brand
Size
LeadTimeDays
QuantityPerOuter
IsChillerStock
Barcode
TaxRate
UnitPrice
RecommendedRetailPrice
TypicalWeightPerUnit
MarketingComments
InternalComments
Photo
CustomFields
Tags
SearchDetails
LastEditedBy
ValidFrom
ValidTo
1
USB missile launcher (Green)
12
NULL
7
7
NULL
NULL
14
1
NULL
NULL
15
25
37.38
0.3
Complete with 12 projectiles
NULL
[varbinary]
{ "CountryOfManufacture": "China", "Tags": ["USB Powered"] }
["USB Powered"]
USB missile launcher (Green) Complete with 12 projectiles
1
2
USB rocket launcher (Gray)
12
12
7
7
NULL
NULL
14
1
NULL
NULL
15
25
37.38
0.3
Complete with 12 projectiles
NULL
[varbinary]
{ "CountryOfManufacture": "China", "Tags": ["USB Powered"] }
["USB Powered"]
USB rocket launcher (Gray) Complete with 12 projectiles
1
3
Office cube periscope (Black)
12
3
7
6
NULL
NULL
14
10
NULL
NULL
15
18.5
27.66
0.25
Need to see over your cubicle wall? This is just what's needed.
NULL
[varbinary]
{ "CountryOfManufacture": "China", "Tags": [] }
[]
Office cube periscope (Black) Need to see over your cubicle wall? This is just what's needed.
1
4
USB food flash drive - sushi roll
12
NULL
7
7
NULL
NULL
14
1
NULL
NULL
15
32
47.84
0.05
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "Japan", "Tags": ["32GB","USB Powered"] }
["32GB","USB Powered"]
USB food flash drive - sushi roll
1
5
USB food flash drive - hamburger
12
NULL
7
7
NULL
NULL
14
1
NULL
NULL
15
32
47.84
0.05
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "Japan", "Tags": ["16GB","USB Powered"] }
["16GB","USB Powered"]
USB food flash drive - hamburger
1
6
USB food flash drive - hot dog
12
NULL
7
7
NULL
NULL
14
1
NULL
NULL
15
32
47.84
0.05
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "Japan", "Tags": ["32GB","USB Powered"] }
["32GB","USB Powered"]
USB food flash drive - hot dog
1
7
USB food flash drive - pizza slice
12
NULL
7
7
NULL
NULL
14
1
NULL
NULL
15
32
47.84
0.05
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "Japan", "Tags": ["16GB","USB Powered"] }
["16GB","USB Powered"]
USB food flash drive - pizza slice
1
8
USB food flash drive - dim sum 10 drive variety pack
12
NULL
9
9
NULL
NULL
14
1
NULL
NULL
15
240
358.8
0.5
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "Japan", "Tags": ["32GB","USB Powered"] }
["32GB","USB Powered"]
USB food flash drive - dim sum 10 drive variety pack
1
9
USB food flash drive - banana
12
NULL
7
7
NULL
NULL
14
1
NULL
NULL
15
32
47.84
0.05
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "Japan", "Tags": ["16GB","USB Powered"] }
["16GB","USB Powered"]
USB food flash drive - banana
1
10
USB food flash drive - chocolate bar
12
NULL
7
7
NULL
NULL
14
1
NULL
NULL
15
32
47.84
0.05
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "Japan", "Tags": ["32GB","USB Powered"] }
["32GB","USB Powered"]
USB food flash drive - chocolate bar
1
11
USB food flash drive - cookie
12
NULL
7
7
NULL
NULL
14
1
NULL
NULL
15
32
47.84
0.05
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "Japan", "Tags": ["16GB","USB Powered"] }
["16GB","USB Powered"]
USB food flash drive - cookie
1
12
USB food flash drive - donut
12
NULL
7
7
NULL
NULL
14
1
NULL
NULL
15
32
47.84
0.05
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "Japan", "Tags": ["32GB","USB Powered"] }
["32GB","USB Powered"]
USB food flash drive - donut
1
13
USB food flash drive - shrimp cocktail
12
NULL
7
7
NULL
NULL
14
1
NULL
NULL
15
32
47.84
0.05
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "Japan", "Tags": ["16GB","USB Powered"] }
["16GB","USB Powered"]
USB food flash drive - shrimp cocktail
1
14
USB food flash drive - fortune cookie
12
NULL
7
7
NULL
NULL
14
1
NULL
NULL
15
32
47.84
0.05
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "Japan", "Tags": ["32GB","USB Powered"] }
["32GB","USB Powered"]
USB food flash drive - fortune cookie
1
15
USB food flash drive - dessert 10 drive variety pack
12
NULL
9
9
NULL
NULL
14
1
NULL
NULL
15
240
358.8
0.5
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "Japan", "Tags": ["16GB","USB Powered"] }
["16GB","USB Powered"]
USB food flash drive - dessert 10 drive variety pack
1
16
DBA joke mug - mind if I join you? (White)
5
35
7
7
NULL
NULL
12
1
NULL
NULL
15
13
19.44
0.15
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "China", "Tags": ["Comedy"] }
["Comedy"]
DBA joke mug - mind if I join you? (White)
1
17
DBA joke mug - mind if I join you? (Black)
5
3
7
7
NULL
NULL
12
1
NULL
NULL
15
13
19.44
0.15
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "China", "Tags": ["Comedy"] }
["Comedy"]
DBA joke mug - mind if I join you? (Black)
1
18
DBA joke mug - daaaaaa-ta (White)
5
35
7
7
NULL
NULL
12
1
NULL
NULL
15
13
19.44
0.15
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "China", "Tags": ["Comedy"] }
["Comedy"]
DBA joke mug - daaaaaa-ta (White)
1
19
DBA joke mug - daaaaaa-ta (Black)
5
3
7
7
NULL
NULL
12
1
NULL
NULL
15
13
19.44
0.15
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "China", "Tags": ["Comedy"] }
["Comedy"]
DBA joke mug - daaaaaa-ta (Black)
1
20
DBA joke mug - you might be a DBA if (White)
5
35
7
7
NULL
NULL
12
1
NULL
NULL
15
13
19.44
0.15
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "China", "Tags": ["Comedy"] }
["Comedy"]
DBA joke mug - you might be a DBA if (White)
1
21
DBA joke mug - you might be a DBA if (Black)
5
3
7
7
NULL
NULL
12
1
NULL
NULL
15
13
19.44
0.15
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "China", "Tags": ["Comedy"] }
["Comedy"]
DBA joke mug - you might be a DBA if (Black)
1
22
DBA joke mug - it depends (White)
5
35
7
7
NULL
NULL
12
1
NULL
NULL
15
13
19.44
0.15
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "China", "Tags": ["Comedy"] }
["Comedy"]
DBA joke mug - it depends (White)
1
23
DBA joke mug - it depends (Black)
5
3
7
7
NULL
NULL
12
1
NULL
NULL
15
13
19.44
0.15
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "China", "Tags": ["Comedy"] }
["Comedy"]
DBA joke mug - it depends (Black)
1
24
DBA joke mug - I will get you in order (White)
5
35
7
7
NULL
NULL
12
1
NULL
NULL
15
13
19.44
0.15
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "China", "Tags": ["Comedy"] }
["Comedy"]
DBA joke mug - I will get you in order (White)
1
25
DBA joke mug - I will get you in order (Black)
5
3
7
7
NULL
NULL
12
1
NULL
NULL
15
13
19.44
0.15
NULL
NULL
[varbinary]
{ "CountryOfManufacture": "China", "Tags": ["Comedy"] }
["Comedy"]
DBA joke mug - I will get you in order (Black)
1