Hi guys,
I am having a bit of a trouble deciding what is the proper way to store a list of transactions. Is it possible to store transaction using only a relationship? I don't really see how, since if i had the same item sold twice by the same salesperson and same client that would create an impossible operation.
Say that i want to sell Pen model 1 by Salesperson 1 to Client 1. I would have
ClientID, ProdID, EmpID
1,1,1
Then that same person comes in the next day and buys another Pen model 1 from the same salesperson i would have
ClientID, ProdID, EmpID
1,1,1
Should i create a Transaction entity? That stores all records, or is my ProdID flawed to begin with since it uses the Same prodID independent of the instance of the Pen model?
i.e. Should I make each Item unique, even if its identical (like all pen model 1 instances have a unique ID), or should each transaction be unique?
Cheers,
