I am working to develop database model then the database for automobile parts importer. the company imports different car items from different suppliers. Each supplier is likely to have it own identification number for the same item. the problem the client faces issues in tracking orders of the same item and also needs compare offers the same items even though it is referred differently across different documents. after the purchase order, it needs to track the success /failure of orders from different suppliers. in order to approach the problem, I have made the following the database table.
<pre lang="SQL">
Suplier(ID, Name, Contact)
Item(ID,Item, Quantity)
ItemSuplier (ID, Item_ID(FK), Suplier ID, Identification Code, OE_Code, Description)
// Identification code indicates, the code identification used for items by suppliers which is different according to the supplier. The OE indicate the original automobile manufacturer used to differentiate the items.
Order (ID, Item ID, Qty)
Suborder(ID, order_ID, Supplier _ID, Qty, Price)
// the suborder indicate when the importer sends the order different suppliers send back the price of the item and how many they are going to provide. the suborder is, importer after comparing different price will send the confirmation order with the supplier they chose to send.
so my question is, this database table enough to address the problem? or need some change? second, how can make it in NeDB? I would appreciate if you give me your suggestions.
What I have tried:
I have been trying to build the database for a system in NeDb database