0% found this document useful (0 votes)
6 views2 pages

1 and 2

The document outlines the structure of a pharmacy management system, detailing product categories, employee roles, customer information, orders, invoices, promotions, and advertisements. It specifies the unique identifiers for each entity and the relationships among them, such as products being linked to suppliers and customers providing feedback. Additionally, it includes requests for retrieving product details, customer orders, invoice information, and calculating total sales.

Uploaded by

luongdz10vnvt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

1 and 2

The document outlines the structure of a pharmacy management system, detailing product categories, employee roles, customer information, orders, invoices, promotions, and advertisements. It specifies the unique identifiers for each entity and the relationships among them, such as products being linked to suppliers and customers providing feedback. Additionally, it includes requests for retrieving product details, customer orders, invoice information, and calculating total sales.

Uploaded by

luongdz10vnvt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

Đặc tả

Categories: Products are classified into categories such as medicine, dietary supplements, and
medical equipment, making it easier for customers to search and select items.

The pharmacy offers a variety of products, including medicine and cosmetics, each identified by a
unique product ID (proID), name (proName), price, and description. These products are sourced from
various suppliers, each recorded with a supplier ID (supID) and name (supName). Products are stored
in the inventory (Stock), where stock information includes stock ID (stockID) and quantity
(quantityOfProduct).

Employees (Employee) handle the sale of products to customers. Each employee is tracked by an
employee ID (empID), name (empName), phone number, address, role, salary, and start date.

Customers (Customer) purchase products from the pharmacy and may leave feedback. Each
customer is recorded with a customer ID (cusID), name (cusName), phone number, and address.
Customer feedback is collected in the Feedback table, which includes feedback ID (fb_ID), date
(fb_date), and content (fb_content).

Orders (Orders) consist of an order ID, order date, total amount, and payment method. Each order is
detailed in the Order Details table, which records the order detail ID, quantity, and unit price for each
product.

Invoices (Invoice) are generated for customer purchases and include invoice ID (invID), total amount,
and date. Detailed information about each invoice, such as the quantity and price of individual
products, is stored in the Invoice Details table (inv_detailedID, quantity, price).

Products may also be part of promotions (Promotion), which are tracked by a promotion ID
(prom_ID), name, start date, end date, and discount percentage.

Additionally, advertisements (Advertisement) feature campaigns to promote products, recorded with


an advertisement ID (adv_ID), name, time, and cost.

.Request:

 Get Products by Category: Retrieve products in a category.

 Get Product Details: Get product info by proID.

 Get Customer Orders: List orders by a customer.

 Get Invoice Details: Retrieve invoice info by invID.


 Calculate Total Sales: Total sales for a period.

2. ERD

You might also like