0% found this document useful (0 votes)
35 views1 page

Schemat Bazy Danych

The document describes the tables and columns in a database for an e-commerce company. The tables include Customers, Employees, Products, Orders, Warehouses, and Departments. The Customers table stores customer information. The Employees table stores employee information including name, title, and salary. The Products table stores product information like name, description, and price. The Orders table stores order information linking customers to products. The Warehouses table stores warehouse location and inventory information. The Departments table stores department name and region. Primary keys are denoted with [INT] IDENTITY. Foreign keys are denoted with asterisks.

Uploaded by

Bot Edka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views1 page

Schemat Bazy Danych

The document describes the tables and columns in a database for an e-commerce company. The tables include Customers, Employees, Products, Orders, Warehouses, and Departments. The Customers table stores customer information. The Employees table stores employee information including name, title, and salary. The Products table stores product information like name, description, and price. The Orders table stores order information linking customers to products. The Warehouses table stores warehouse location and inventory information. The Departments table stores department name and region. Primary keys are denoted with [INT] IDENTITY. Foreign keys are denoted with asterisks.

Uploaded by

Bot Edka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Customer

Employee Title
1
CustomerId [INT] IDENTITY(1,1) 1 1 1
EmployeeId [INT] IDENTITY(1,1) TitleId [INT] IDENTITY(1,1)
CustomerName NVARCHAR(50)
EmployeeLastName NVARCHAR(25) TitleName NVARCHAR(50) OrderPosition
Phone NVARCHAR(25) *
EmployeeFirstName NVARCHAR(25) OrderId INT
Address NVARCHAR(400)
UserId NVARCHAR(20) OrderPositionId INT
City NVARCHAR(30) *
StartDate DATE ProductId INT
State NVARCHAR(20) Product
ManagerId INT PriceNet DECIMAL(19,2)
* 1
Country NVARCHAR(30) ProductId [INT] IDENTITY(1,1)
TitleId INT 1 PriceGross DECIMAL(19,2)
*
ZipCode NVARCHAR(75) * ProductName NVARCHAR(100)
DepartmentId INT Quantity INT
CreditRating NVARCHAR(9) Description NVARCHAR(255)
Salary DECIMAL(19,2)
SalesRepId INT SuggestedPrice DECIMAL(19,2)
*
*
RegionId INT Stock

ProductId INT
*
*
WarehouseId INT
Orders
AmountInStock INT
OrderId [INT] IDENTITY(1,1)
1
ReorderPoint INT
CustomerId INT Warehouse
*
MaxInStock INT
DateOrdered DATE WarehouseId [INT] IDENTITY(1,1)
1
* OutOfStockExplanation NVARCHAR(255)
DateShipped DATE RegionId INT

SalesRepId INT Address NVARCHAR(255)


* Region
Total DECIMAL(19,2) City NVARCHAR(30) 1
RegionId [INT] IDENTITY(1,1)
1
PaymentType NVARCHAR(6) State NVARCHAR(20)
RegionName NVARCHAR(50)
Department
OrderFilled NVARCHAR(1) Country NVARCHAR(30)
DepartmentId [INT] IDENTITY(1,1)
ZipCode NVARCHAR(75) 1

DepartmentName NVARCHAR(25)
Phone NVARCHAR(25)
RegionId INT
ManagerId INT *
*

You might also like