ER Diagram for a medical store system?
ER Diagram for a Medical Store System:
Entities:
* Medicine:
* MedicineID (primary key)
* Name
* Description
* Quantity
* Price
* Customer:
* CustomerID (primary key)
* Name
* Address
* PhoneNumber
* Sale:
* SaleID (primary key)
* CustomerID (foreign key)
* MedicineID (foreign key)
* Quantity
* TotalAmount
* Employee:
* EmployeeID (primary key)
* Name
* Role
Relationships:
* Customer purchases Medicine:
* One customer can purchase many medicines.
* One medicine can be purchased by many customers.
* This relationship is represented by the Sale entity.
* Employee works at Medical Store:
* One employee can work at only one medical store.
* Many employees can work at one medical store.
* This relationship is represented by the Employee entity.
Medical Facilities - Related Articles
- The Other Options for Surrogacy
- Can a Mass in the Kidney Be Benign?
- The Benefits & Side Effects Acetyl-L-Carnitine
- How many women in the world cannot read or write?
- What Is the Range of Wireless Heart Monitors?
- Where do you poke someone in the stomach to make them get diarrhea?
- Major organs in the circulatory system?