DEV Community

Database Design Tutorial for Beginners

Will Vincent on May 27, 2020

Databases are at the heart of every web application. Their design, or schema, is literally the blueprint for how all information is stored, updated...
Collapse
 
toonarmycaptain profile image
toonarmycaptain • Edited

Not to nitpick...but lots of people have more than one passport. There are countries that issue you multiple passports to allow you to use one to go to country A, and another to go to country B, which won't let you in with a stamp from country A in your passport.
Also the more common case where a person has passports from multiple countries (eg citizen of multiple countries).

Also, technically, some counties allow infants to travel on a parent's passport (or they used to), although I don't think that data would be stored anywhere, I'd only seen it written in by hand by the passport owner.

^^^^^^^^^^^^
This really shows how hard databases/user data can be, and that many assumptions (eg name/date of birth format/nature) have a lot of exceptions!

Collapse
 
wsvincent profile image
Will Vincent

True, I appreciate the perspective as this is a blindspot for me as an American where "most" people have a single passport. Not that we can fly anywhere these days anyway :)

Collapse
 
toonarmycaptain profile image
toonarmycaptain

Ha. From what I understand, most Americans don't have a single passport. Nope, we can't, but neither can anyone where I come from either...they're trying to keep their zero cases zero.

Collapse
 
mdhesari profile image
Mohammad Fazel

Great article! Not only great for django, also it's beneficial to everyone in general.

Collapse
 
wsvincent profile image
Will Vincent

Thanks!

Collapse
 
dyagzy profile image
dyagzy

Very insightful article. Though I was looking forward to the example of the one to one and many to many relationships, but the article ended without this.
Overall, this is a well simplified article on database designs

Collapse
 
sm0ke profile image
Sm0ke

Hello Vincent,
Thanks for your content. Can we talk in private?
Keep up the good writing :)

Collapse
 
wsvincent profile image
Will Vincent

You're welcome to email me at will@learndjango.com

Collapse
 
sm0ke profile image
Sm0ke

Thank you! :)

Collapse
 
drodol profile image
David R

Hi William! I just read the free chapters of your Django book and was instantly hooked! I bought it!

Collapse
 
wsvincent profile image
Will Vincent

Awesome! If you have any feedback as you go through, feel free to email me at will@learndjango.com.

Collapse
 
pmallol profile image
Paula Mallol

Super useful information, very concise and to the point. Thanks!