home
diamond Go Premium
Data Engineering Path  ·  Data Modelling
PARKING SYSTEM CASE STUDY

Table parking_lots { lot_id int [pk, increment] name varchar [not null] address varchar total_capacity int }

Table parking_floors { floor_id int [pk, increment] lot_id int [ref: > parking_lots.lot_id] floor_number int [not null] capacity int }

Table parking_spots { spot_id int [pk, increment] floor_id int [ref: > parking_floors.floor_id] spot_number varchar [not null] spot_type varchar [not null] // HANDICAPPED, COMPACT, LARGE, EV, MOTORCYCLE status varchar [not null] // AVAILABLE, OCCUPIED }

Table tickets { ticket_id int [pk, increment] spot_id int [ref: > parking_spots.spot_id] license_plate varchar [not null] entry_time timestamp [not null] exit_time timestamp amount_charged decimal status varchar [not null] // ACTIVE, PAID, EXPIRED }

Table payments { payment_id int [pk, increment] ticket_id int [ref: > tickets.ticket_id] transaction_ref varchar [unique, not null] amount decimal [not null] payment_method varchar [not null] // CREDIT_CARD, CASH_KIOSK, MOBILE_PAY payment_time timestamp [not null] }

Table parking_rates { rate_id int [pk, increment] lot_id int [ref: > parking_lots.lot_id] spot_type varchar [not null] hourly_rate decimal [not null] weekend_multiplier decimal [default: 1.0] }

lock

This content is reserved for Premium Members.

Upgrade to Premium

Entity Details

Create New Item

help

Submit Technical Query

Have a question or run into an issue? Describe it below, upload an optional screenshot, and our engineering team will answer it!

image Attach image (optional)

Submit Feedback

build Free Developer Utility Free Tool
gavel

Privacy & Legal Disclaimer

1. Client-Side Browser Processing

All utility tools on DeepEngineerHub (including Image to PDF, Text Formatters, JSON Converters, and Encryptors) execute 100% locally within your client browser using WebAssembly and JavaScript. No uploaded images, text, or documents are transmitted, collected, or stored on remote servers.

2. Limitation of Liability ("As-Is" Provision)

Tools and services are provided free of charge for convenience and educational purposes "as-is" without warranties of any kind. DeepEngineerHub shall not be held liable for any data loss, formatting inconsistencies, or indirect damages resulting from tool usage.

3. Open Source & Third-Party Software

Certain utilities utilize open-source client libraries (such as jsPDF, Mermaid.js, Pyodide) licensed under MIT, Apache, or BSD open licenses. All intellectual property remains with their respective copyright holders.