DEV Community

honorezemagho
honorezemagho

Posted on

5

Simple Flight Database: Database Design

Database Design is the process of defining how a database will be structured. This primarily includes tables, their relationships, and the columns each table contains.

Today we are going to design the database of a Car Rental Service.
To design a database first we need to make user stories.

1. User Stories

According to Wikipedia, In software development and product management, a user story is an informal, natural language description of one or more features of a software system. User stories are often written from the perspective of an end-user or user of a system.

For our Simple Flight Database, these are user stories.
a) An airplane is assigned to several flights. A flight is assigned to only one airplane.
b) A pilot can perform several flights. A flight is performed by several(normally at least two) pilots.

2. Entity Relationship Diagram

Simple Flight Database

3. Relational Model

Relational Model

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (2)

Collapse
 
dana-fullstack-dev profile image
dana

Hi...
i was build web application online database design tool
i think you can use this tool for build Simple Flight Database

Regards

Collapse
 
dynobird_com profile image
Dynobird database designer

👍

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay