I am getting a little stuck with the inventory table design and would appreciate if anyone could guide me with that.
The inventory is at 3 different locations(warehouses). I want help with how do I avoid creating multiple itemcodes for each warehouse
The current set up is as follows: –
table no 1 – inventory_T
- itemcode(primary key)
- item name
- item group id(foreign key to item group table)
- item category id(foreign key to item category table)
table no 2 – item_costs
- itemcode(fk to table 1)
- average cost
table no 3 – stock_balance
- itemcode(fk to table 1)
- stock on hand
I suppose you have a single database which serves all warehouses.
Create another table
And then add the field
– warehouseid
to table stock_balance as a FK(Foreign Key) – this way you will bind each stock of an item to a warehouse