Problem:
Design an ER diagram where:
- An item has the attribute: description.
- An item can be sold by a company or a person.
- A person has the attributes: name, phone and email.
- A company has the attributes: company name, address and a contact person who is one from the person entity set.
- A contact person cannot sell the same item with the company he works for.
This is my design:
I'm learning. Please correct and point out what is wrong in my design.
- I'm not sure that I should remove the primary key SellerID in the Seller entity and add companyID to the Company entity and personID to the entity.
- Is the Contact Person entity connected to the Person entity correctly?
- How can I demonstrate this constraint: A contact person cannot sell the items (distinguished by item ID) his company is selling.