0% found this document useful (0 votes)
18 views

Parking Management System

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)
18 views

Parking Management System

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/ 7

Parking Space Management System

The parking management system has been created to make it easier to manage
and run a parking facility. Its main goal is to handle parking space allocation, vehicle
tracking, ticket issuance, and payment management in an efficient manner. The system
aims to streamline the process of assigning parking spots, keep track of vehicles,
provide parking tickets, and handle payment transactions effectively.

I. Key Features
Parking Space Management - Ability to add and delete parking space.

Ticket Management - Generating ticket for vehicles upon entry to the


parking space, can record entry and exit time for each vehicle. Tracking the
payment status of tickets (paid, unpaid, pending).

Payment Management- Process payment for parking tickets, can record


payment details such as payment amount.

Vehicle management - Adding and managing vehicle records in the


system like storing vehicle information such as Vehicle type and vehicle’s plate number
which is the vehicle ID.

Extended parking - Calculating and applying additional charges for


extended parking (updating the exit time and total charges accordingly.
II. Entity Relationship Diagram
Entities

Parking Space
● Represents specific parking spot in the facility

Attributes
● Space_ID - identifier for each parking space
● Space_Type - Type of the Parking spaces
● Initial_ParkingCharge - The initial charge for parking in the space
● Extended_ParkingCharge - Additional charge for parking beyond a certain time
limit.
● Extended_ParkingTime- The
Tickets

● Represents parking tickets issued to a vehicle.

Attributes
● Ticket_ID - unique identifier for each parking tickets
Vehicle

● Represents the vehicle that can be parked in the parking spaces.

Attributes
● Vehicle_ID - identifier for each vehicle
● Vehicle_Type - Specify the type of vehicle such as 2 or 4 wheelers.
Pays
● Relationship between two entities Vehicle and Tickets

Attributes
● Amount_Paid - Indicates the amount paid for the parking fee
● Payment_Status - represents the status of the payment for a specific ticket and
vehicle association.
● Exit_Time - Time of exit from the parking space
Avails
● Relationship between two entities Vehicle and Tickets

Attributes
● Entry_Time - Time of entry into the parking space

Connections between the entities

● Space and Tickets

○ This connection allows a parking space to be associated with multiple tickets,


indicating that multiple tickets can be linked to a single parking space. (1:N
relationship).

● Vehicle_Pays_Ticket

○ It's a relationship between tickets and a vehicle, including payment details, and
Exit_Time attribute to indicate the time which vehicle associated with the ticket
exited the parking space and how much the vehicle needs to pay. (1:1
relationship)

● Vehicle_Avails_Ticket

○ These connections indicate that a ticket can be linked to a single vehicle through
both payment and availability aspects. (1:1 relationship)

III. Relational Mapping


IV. Data Dictionary

Space

Attribute Name Data Type Data Format Description Example

Space_ID int NNNNNNNNNN Identifier for each


parking space 1234567890

Space_Type String NNNNNN Type of the Parking


spaces 2 Wheelers, 4 wheelers

Initial_ParkingChar REAL NNNNN The initial charge for


ge parking in the space
₱ 100

Extended_Parking REAL NNNN Additional charge for


Charge parking beyond a certain ₱ 50
time limit.

Extended_Parking Int NN
Time
4

Ticket

Attribute Name Data Type Data Format Description Example

Ticket_ID int NNNN Unique identifier for


each parking tickets
10

Vehicle

Attribute Name Data Type Data Format Description Example

Vehicle_ID string NNNNN Identifier for each


vehicle HUS-275

Vehicle_Type string NNNNNNNN Specify the type of


vehicle 2 wheelers, 4 wheelers
Pays

Attribute Name Data Type Data Format Description Example

Amount_Paid REAL NNNNNNNN Indicates the amount


paid for the parking fee
₱200.0

Payment_Status string NNNN Represents the status of


the payment for a
specific ticket and Paid, Unpaid
vehicle association.

Exit_Time string YYYY-MM-DD Date and Time of exit 2023-09-07


HH:MM:SS from the parking space 02: 00: 00

Avails

Attribute Name Data Type Data Format Description Example

Entry_Time string YYYY-MM-DD Date and Time of entry


HH:MM:SS into the parking space 2023-09-07
02: 00: 00
V. SQL DDL

CREATE TABLE Space (


Space_ID INTEGER PRIMARY KEY,
Space_type TEXT,
Initial_ParkingCharge REAL,
Extended_ParkingCharge REAL,
Extended_ParkingTime INTEGER
);

CREATE TABLE Ticket (


Ticket_ID INTEGER PRIMARY KEY AUTOINCREMENT,
Space_ID INTEGER,
FOREIGN KEY (Space_ID) REFERENCES Space(Space_ID)
);

CREATE TABLE Vehicle (


Vehicle_Type TEXT,
Vehicle_ID TEXT PRIMARY KEY
);

CREATE TABLE Pays (


Ticket_ID INTEGER,
Vehicle_ID TEXT,
Amount_Paid REAL,
Payment_Status TEXT,
Exit_Time TEXT,
PRIMARY KEY (Ticket_ID, Vehicle_ID),
FOREIGN KEY (TicketID) REFERENCES Ticket(TicketID),
FOREIGN KEY (Vehicle_ID) REFERENCES Vehicle(Vehicle_ID)
);

CREATE TABLE Avails (


Ticket_ID TEXT,
Vehicle_ID TEXT,
Entry_Time TEXT,
PRIMARY KEY (Ticket_ID, Vehicle_ID),
FOREIGN KEY (Ticket_ID) REFERENCES Ticket(Ticket_ID),
FOREIGN KEY (Vehicle_ID) REFERENCES Vehicle(Vehicle_ID)
);

You might also like