Answered step by step
Verified Expert Solution
Question
1 Approved Answer
COMP 3 2 7 8 B Introduction to Database Management Systems Assignment 1 . ER - Modeling Due Date: 2 0 2 4 Feb 1
COMPB Introduction to Database Management Systems
Assignment ERModeling
Due Date: Feb Monday: pm
The ABC company provides rental service of portable
power banks to its registered members. You are a database
designer of the ABC company, and you are designing the
database to support a system with the following functions:
Membership System
Each member is required to provide their
name, email, and contact number in the
registration form. The system will
automatically generate a unique member ID
upon registration.
Power Bank Management System
There are charging stations, each equipped with a unique station ID and
contains a certain number of charging slots.
Each charging slot is assigned a unique slot ID exclusive to that particular
charging station.
The company possesses numerous power banks, each distinguished by a
unique pbID.
Any power bank can be plugged into any available charging slot within a
charging station.
Power Bank Rental System
A member can initiate multiple rental transactions, each
involving the rental of one power bank.
Each rental transaction is assigned a unique transaction
ID capturing information such as which member
renting which power bank.
The transaction can record which charging slot the user
retrieved from and the retrieval datetime, as well as
which charging slot the user returned to and the return
datetime.
Additionally, the transaction includes details of the
payment amount.
Coupon System
ABC Company issues coupons to its members, each with a
unique coupon ID and an expiration date. There are two types
of coupons: Free Rental Coupons and Discount Coupons.
Free Rental Tickets: Each ticket can be used to redeem one
free rental transaction.
Merchants Discounts:
i These coupons are not tied to the rental of power
banks but offer discounts accepted by one or more
partner merchants.
ii ABC Company collaborates with various partner
merchants, each having a unique merchant ID Some
of these merchants also maintain charging stations.
Reservation System
Members can reserve a power bank at any available charging station with a
reservation interface that operates as follows:
Members can search for a service area using a hierarchical structure,
eventually selecting a location this is the lowestlevel service area without
any subservice area.
Each location may host zero to many charging stations.
Members choose a charging station with an available power bank and
proceed to make a reservation.
Each reservation is assigned a unique reservation ID and records the
datetime of the reservation.
Assgnment tasks
Task Please draw an ER diagram to capture all the requirements above.
If there is any information about the data model that is not listed in the
specification, please make a reasonable assumption and list your assumption in
your design.
Marks will be deducted if unnecessary components are added to the tables.
Please follow the problem specification when you decide on the name of the
components.
You are encouraged to draw the ER diagram using any kind of editor, this can
help us to read and understand your data model. If you choose to draw the ER
diagram by penpencil please scan your work and submit a PDF file. We may
ask you to resubmit a clearer version in case we cannot read the handwriting.
Task Please translate your ER diagram into relational table schemas.
For each relation, underline the primary key and specify all the foreign keys if
any.
You only need to give the table schema in text form. You do not need to draw the
schema and do not need to provide the data typeSQL to create the tables.
Enjoy this assignment as a practice related to Chapter
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started