In: Computer Science
1. The online site has members, each of whom is identified by a
unique member number
and is described by an e-mail address, name, password, home
address, and phone
number.
2. A member may be a buyer or a seller.
3. A buyer has a shipping address recorded in the database.
4. A seller has a bank account number and routing number recorded
in the database.
5. Items are placed by a seller for sale and are identified by a
unique item number
assigned by the system. Items are also described by an item title,
a description, and
price
6. Items are also categorized based on a fixed classification
hierarchy (for example, a
modem may be classified as COMPUTER → HARDWARE → MODEM).
7. The buyer and seller may record feedback regarding their
completed transactions.
8. Feedback contains a rating of the other party participating in
the transaction (1–10) and
a comment.
Design an enhanced entity–relationship (EER) diagram for the
online_store database.
Entity: It represents a real world object and is represented by a rectangle, Each entity is an individual table in a database.
Attributes: They describe the properties of an entity. They are represented by an ellipse. They are also known as fields,columns.
Reletionship: They are represented by a diamond. They describe the relationship betwwen two entities.
Cardinality: It represents the no. of associations involved between two enties in a relationship.
There are 4 types of cardinality: