











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












P1 M1 D
❒ Summative Feedback: ❒ Resubmission Feedback:
Figure 17 Drug table..................................................................................................................................................................................................... 16 Figure 18 Order details table ....................................................................................................................................................................................... 16 Figure 19 Customer table............................................................................................................................................................................................. 17 Figure 20 Branch table ................................................................................................................................................................................................. 17 Figure 21 Database diagram ........................................................................................................................................................................................ 19
Currently, I am working as a programmer at a technology company. This project is a company project. The customer asked the company to make a store management software for sale. Include activities that make it easier for the store to manage drug sales. eg staff management, drugs and prices, inventory, order management…
The pharmacy management system has 3 main roles: Staff management, drug management and orders management As pharmacist management: ➢ I want to add and edit the Staff information or delete the Staff information when they no longer work at the store As drug management: ➢ I see what drugs are in the store and the different names of them. ➢ I want to add and delete drug information such as drug name or price of each drug. As orders management:
I want to see order creation date
I want to see the information of the drug and also the customer information in the order
According to a recent survey of pharmacies, It is difficult for pharmacies to manage their drugs as well as their orders and Staff, especially in medium to large drugstore chains for the following reasons: ➢ The amount of medicine is too many different names and many specific types of treatment for other diseases. ➢ Staff in medium to large systems are many, difficult to manage, besides there will be cases where these pharmacists leave work and new Staff come back to work, it will be very difficult to manage if it happens often. ➢ Customers often buy many products at the same time. It will be tough for them if they have to wait for the staff to calculate, not to mention that a customer shop is crowded and they buy many medicinal products, they will wait a long time, and their experience at the store will not be satisfactory. they will complain about their uncomfortable experience. ❖ Because of the above inadequacy, the store decided to create a management system to better manage its drugs and employees as well as increase a better customer experience. Attract more new customers, increase store revenue
➢ Relationship diagram:
Figure 2 Information of customer Order table: This table contains the primary keys and two foreign keys including customer_id, and staff id. Contain table attributes like Description and Date orders. Figure 3 Information of orders Orders Details table: This is the intermediate table connecting the order table and the drug table. this table has orders_id, drug_id, both are primary key and foreign key from drug and orders. There is also an attribute that is the quantity of medicine in an order.
Figure 4 Information of orders details Drug table: This table contains the primary key and Drug_Name, Price is attributes like information and price of the drug. Figure 5 Information of drug Staff table: this table contains primary key and full name, gender, age, mail, address,Phone number. These contain table attributes provide information about the Staff.
Figure 8 Information of inventory ◆ Explaning Relationship: Relationships of Customer table and Order table: Figure 9 Relationshop of Customer table and Orders table
Figure 12 Relationship of Branch table, Inventory table and drug
Because a Branch Contains many drugs, 1 Drug is located in many branches. ➢ One - many relationships. Figure 13 Relationship of Branch table, staff table Two tables are linked by Branch_ID because one staff works only in a branch and a branch may have many staff. ➢ The relationship is one – much ⚫ Data type:
Figure 16 Inventory table
Figure 19 Customer table
Figure 21 Database diagram Powered by TCPDF (www.tcpdf.org)Powered by TCPDF (www.tcpdf.org)