Professional Documents
Culture Documents
Campus)
Entities:
An inventory system should have following entities:
❖ Product:
Products are the starting point for designing our system. Attributes for
• Product ID: This is the unique id number for each product. We will use it as
Primary key in our database.
• Product Code: It is also unique code for each product inside an organization.
Its datatype is VARCHAR.
❖ Location:
An organization may have its branches in different locations. Attributes for
Warehouse can contain different products. So, we use inventory entity to build Many-
To-Many relationship between these two entities. The attributes for it are given as:
• Maximum Stock Level: The maximum number of units desired in stock, i.e.
To avoid overstocking.
• Record Point: This must be between Minimum and Maximum stock level to
Minimize the cost and avoid getting under the minimum stock level.
❖ Provider:
The organization will purchase its good from other organizations or
Providers.
Provider.
❖ Order:
Order indicates the goods that organization purchase from provider.
This organization.
Customer.
❖ Delivery Detail:
It provides additional details about delivery or sale.
Customer’s address.
• Actual Date: This is the date when the products were delivered.
❖ Transfer:
Products can be transferred from one warehouse to another warehouse within
Organization. For this purpose, we use ‘Transfer’ entity.
• Expected Date: This is the date when the products should arrive at target
Location.
• Actual Date: This is the date when the products were arrived at the target.
➢ Relationships
• Order to ProviderWarehouseA provider can have multiple orders. It is Many-to-One
relationship.
• Order to Order Detail
One order can have only one order-detail. Therefore, it is One-to-One
Relationship.
• Customer to Delivery
A customer can buy multiple products. One delivery can have only one
Relationship.
• Location to Warehouse
Organization can have multiple warehouses at same location, but one
Relationship.
Relationship.
• Product to Inventory
One product can have multiple inventories at multiple warehouses. There
• Warehouse to inventory
One warehouse can have multiple inventories. It is One-to-Many
Relationship.
• Product to Transfer
One product can only be transfer from one warehouse to other at a time.
• Warehouse to Transfer
One warehouse can transfer multiple products. There exist One-to-Many