Question: Instructions Using the information provided: 1 . EER Diagram: Create an ER and EER diagram that includes the entities, attributes, and hierarchical relationships within the

Instructions
Using the information provided:
1. EER Diagram: Create an ER and EER diagram that includes the entities, attributes, and hierarchical relationships within the Pharmacy Management System. Be sure to represent:
- Special izations (e.g., Regular Customer and Prescription Customer under Customer, Prescription Medication and Over-the-Counter Medication under Medication),
- Relationships, with clear cardinalities,
- Attributes, with primary keys and foreign keys.
2. Database Schema: Based on the EER diagram, design a database schema for the system. Include:
- Tables for each entity and specialization,
- Columns for each attribute, with data types and constraints (e.g., primary keys, foreign keys, NOT NULL constraints),
- Relationships, with primary and foreign key linkages.
1. Librarian
- Attributes:
- librarianId (Primary Key): Unique identifier for each librarian.
- name: Full name of the librarian.
- contactNumber: Contact phone number.
- email: Email address for communication.
- address: Residential address.
- dateoffire: Date the librarian was hired.
- Methods:
- Manage librarians: Adding, updating, and removing librarian details.
- Manage login credentials for librarians and members.
- Relationship:
- Librarian-Manages-Material: A librarian manages various types of materials in the library.
2. Library
- Attributes:
- libraryID (Primary Key): Unique identifier for the library.
- name: Name of the library.
- location: Physical location of the library.
- contactNumber: Library's contact number.
- operatingHours: Hours during which the library is open. - totalMaterials: Number of materials available in the library.
- Relationship:
- Library-Has-Materials: The library contains various materials that can be borrowed or accessed by members.
3. Member (Superclass)
- Attributes:
- memberID (Primary Key): Unique ID for each member.
- name: Member's full name.
- contactNumber: Phone number for contact.
- email: Email address for notifications.
- membershipType: Indicates if the member is a "Student" or "Staff."
- books Issued: Number of books currently issued to the member.
- accountstatus: Shows if the member account is active or suspended.
- Methods:
- Register and manage account details.
- View account information and issued books.
- Specializations:
- Student
- Attributes: enrollmentNumber, finemount (for outstanding fines).
- Methods: Pay fine.
- Staff
- Attributes: staffid, department, designation.
- Relationship:
- Library-Membership: Members are registered with the library, giving them access to resources.
4. Material (Superclass)
- Attributes:
- materialID (Primary Key): Unique identifier for each material.
- title: Title of the material.
- publicationYear: Year of publication.
- isavailable: Boolean indicating availability.
- borrowedCount: Count of times the material has been issued. - Methods:
- Manage materials: Adding, updating, deleting materials.
- Check availability.
- Specializations:
- Book: Attributes include author, ISBN, genre.
- QuestionPaper: Attributes include subject, coursecode, semester.
- CD/DVD: Attributes include duration, type (e.g., Educational, Entertainment),1 icense Type.
- Relationship:
- Material-IssuedTo-Member: Tracks materials borrowed by members, with issue and return functions.
Guest
- Attributes:
- guestId (Primary Key): Unique identifier for each guest.
- name: Full name.
- contactNumber: Contact number.
- email: Email address.
- requestDate: Date when the guest requested registration.
- Methods:
- Request membership.
- Search for materials in the library.
- Relationship:
- Guest-Requests-Membership: Guest users can apply to become members for greater access. Key Relationships and Operations
- Relationships:
- Librarian-Manages-Material: Librarians are responsible for adding, updating, and deleting materials.
- Library-Has-Materials: The library contains various materials.
- Library-Membership: Indicates that members are associated with the library and can access resources.
- Material-IssuedTo-Member: Members can borrow materials, and the library tracks each material's issue and return status.
- Guest-Requests-Membership: Guests can request membership to access library resources fully.
- Operations:
- Authentication and Registration: Members can register and authenticate to gain access. Librarians manage these processes.
- Material Management: Librarians can add, delete, and update materials in the system.
- Borrowing and Returning: Members can search for, issue, and return materials in the library, facilitated by librarians.
- Account Management: Members can check their accounts and view issued materials, while librarians handle member-related inquiries.
Instructions Using the information provided: 1 .

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!