How to Design a Database for AirBNB

  Рет қаралды 7,118

Database Star

Database Star

Күн бұрын

Пікірлер: 68
@DatabaseStar
@DatabaseStar Ай бұрын
Bonus PDF: This ERD, descriptions of each table and column with sample data, and SQL scripts to create all of the tables on your own database: www.databasestar.com/dbdesign/?
@endurancethemartian
@endurancethemartian 11 ай бұрын
Wow what a video. I haven't seen someone explain DBA so eloquently.
@DatabaseStar
@DatabaseStar 11 ай бұрын
Thanks! Glad you liked it!
@mehboob_h
@mehboob_h 11 ай бұрын
Amazing video. A great example of solving a real world database design problem. Excellent
@DatabaseStar
@DatabaseStar 11 ай бұрын
Glad it was helpful!
@yudi6451
@yudi6451 10 ай бұрын
Wow Amazing, i learn so much in 19minute and its using real world example. Keep this series going. Excellent
@DatabaseStar
@DatabaseStar 10 ай бұрын
Thanks! I'm glad it was helpful. I've started to do real-world examples in my database design videos, so it's good to hear it's been useful.
@VincentCheng1658
@VincentCheng1658 7 ай бұрын
You're talented and dedicated one, Ben, glad to have you here!
@DatabaseStar
@DatabaseStar 7 ай бұрын
Thanks for the kind words!
@shibinabraham7819
@shibinabraham7819 10 ай бұрын
You are truly a master at work and explanation. hats off to you!
@DatabaseStar
@DatabaseStar 10 ай бұрын
Wow, thank you!
@shibinabraham7819
@shibinabraham7819 10 ай бұрын
Thank you for your response. For the benefit of others, would it be possible for you to explain how to use look up tales for joins (Using Key Value Pair)?@@DatabaseStar
@DatabaseStar
@DatabaseStar 10 ай бұрын
Good idea, I can make a video for that
@shibinabraham7819
@shibinabraham7819 10 ай бұрын
@@DatabaseStar Thank you very much, looking forward to it. Especially the Key: Value Join(as a composite key) is a very tricky one. Please include that for sure.
@lyricass7810
@lyricass7810 11 ай бұрын
I was waiting for this video from last 2 months thanks for uploading sir.
@DatabaseStar
@DatabaseStar 11 ай бұрын
Glad you like it!
@lyricass7810
@lyricass7810 10 ай бұрын
​@@DatabaseStarhello sir, can you tell me how you made data dictionary for your airbnb database design? can you tell me which data dictionary tool is good for mysql, it would be nice if the data dictionary also has a column called "referenced table", please let me know sir, thank you..
@sobeck6900
@sobeck6900 11 ай бұрын
Wow, such a fantastic video and way of presenting! You really stepped up your game with this one.
@DatabaseStar
@DatabaseStar 11 ай бұрын
Thanks a lot! I wanted to try a different approach, with an example, so I’m glad you like it.
@sobeck6900
@sobeck6900 11 ай бұрын
@@DatabaseStar yea, this kind of approach when you crop the image for each step from real sites is really brilliant
@sobeck6900
@sobeck6900 11 ай бұрын
@@DatabaseStarIt feels so 'real life' because, typically, when I need to design a database, I first receive the UI from Figma and then create ER diagrams based on that UI
@fd4242
@fd4242 7 ай бұрын
Excellent. Thanks for making and sharing this video.
@DatabaseStar
@DatabaseStar 7 ай бұрын
No problem, glad it helped!
@mohammadjaradat7885
@mohammadjaradat7885 11 ай бұрын
Amazing, One of most entertaining and educated video ,keep going 👍👍
@DatabaseStar
@DatabaseStar 11 ай бұрын
Thanks a lot!
@muhammadsalmanagustian75
@muhammadsalmanagustian75 11 ай бұрын
Very informative and helpful. keep going Database Star!
@DatabaseStar
@DatabaseStar 11 ай бұрын
Thanks, will do!
@shahnawazk
@shahnawazk 11 ай бұрын
Very informative and helpful. Thanks and keep it up!
@DatabaseStar
@DatabaseStar 11 ай бұрын
Thanks!
@juliomuhlbauer
@juliomuhlbauer 9 ай бұрын
I was looking for this some months ago. Amazing!
@DatabaseStar
@DatabaseStar 8 ай бұрын
Glad it helped!
@lyricass7810
@lyricass7810 10 ай бұрын
hello sir, can you tell me how you made data dictionary for your airbnb database design? can you tell me which data dictionary tool is good for mysql, it would be nice if the data dictionary also has a column called "referenced table", please let me know sir, thank you.. another doubt of mine is, what should i do if i need to create a seperate table for host, what will change if i create a seperate table for host. if seperate table is created for host, what tables should it be linked to ? what are the new tables that might arise due to seperate table for host.
@DatabaseStar
@DatabaseStar 10 ай бұрын
I don't think I understand your first question. How did I make a data dictionary for an AirBNB design? This video shows exactly how I did it. I used a tool called LucidChart for this video, which I think is pretty good. But you can use Visio or Google Drawings or the built-in modelling tool in MySQL Workbench.
@DatabaseStar
@DatabaseStar 10 ай бұрын
If you want to create a separate table for host, you would have to work out what a host is related to, and how. A host would be related to a property. They may also have reviews (if users can review the host).
@lyricass7810
@lyricass7810 10 ай бұрын
@@DatabaseStar sorry i forgot that you used lucid chart lol sorry sir.
@Sdirimohamedsalah
@Sdirimohamedsalah 7 ай бұрын
Great tutorial! I'm working on the same topic with a little bit more specificity. Honestly, my brain feels fried trying to find a good solution to make it translatable. Do you have any ideas aside from adding postfix fields like description_En, description_FR, etc.? Is there a better approach for solving this problem and translate the entier content of a database ?
@DatabaseStar
@DatabaseStar 7 ай бұрын
Glad it was helpful! I think it would be better to have a separate table for the descriptions in each language, as there can be many of them. Perhaps there's a new table called description_intl (or another name that you think is better) and it can have a description ID as the PK, an ID as the FK to the main table, and then a column for the language, and then the text of the description.
@maneaabdullah6059
@maneaabdullah6059 11 ай бұрын
Amazing, keep going 👍👍
@DatabaseStar
@DatabaseStar 11 ай бұрын
Thanks!
@haidertest1809
@haidertest1809 11 ай бұрын
Hi Ben, Great and straight to the point video as always. Can you please make a video for a MySQLdatabase design for a user and vendor relationship application as following. Vendor can have multiple orders from users. User can book multiple vendors. User can leave reviews for each vendor etc. I would like to see to your approach on that.
@DatabaseStar
@DatabaseStar 11 ай бұрын
Thanks! Sure, I can make a video on that.
@haidertest1809
@haidertest1809 11 ай бұрын
Thanks a Ton@@DatabaseStar
@abhinaysadineni1151
@abhinaysadineni1151 8 ай бұрын
Can also let us know to store the nightly price per each date in the database? I have seen this feature in airbnb
@DatabaseStar
@DatabaseStar 8 ай бұрын
Yeah you could expand this to have different prices for different dates or date ranges.
@reuelcazaubon
@reuelcazaubon 3 ай бұрын
What books would you recommend for database design?
@DatabaseStar
@DatabaseStar 3 ай бұрын
The one that comes to mind is Database Design for Mere Mortals. I've started reading it but haven't finished it yet.
@reuelcazaubon
@reuelcazaubon 3 ай бұрын
@@DatabaseStar I started as well but never finished.
@Code-sz9db
@Code-sz9db 5 ай бұрын
Noice vid! In the video you kind of removed the image table by mistake. It's not included in the pdf too. Thanks for the video!
@DatabaseStar
@DatabaseStar 5 ай бұрын
Good pickup! It should be there, I don't know why I removed it.
@sujaritnrc
@sujaritnrc 11 ай бұрын
I live your tutorial. Real world example. If you have time pls share how to design noSQL like Firebase.
@DatabaseStar
@DatabaseStar 11 ай бұрын
Thanks! Good idea.
@Dev_dkap
@Dev_dkap 3 ай бұрын
What about property availability? Where is that captured?
@DatabaseStar
@DatabaseStar 3 ай бұрын
The availability can be calculated by working out the dates where there are no bookings - using the checkin_date and checkout_date of a property.
@hhgforfhuv
@hhgforfhuv 11 ай бұрын
Nice and helpful video. Thanks a lot. Can you make video about designing the database of sports aggregator application like flashscore? I think it will be interesting
@DatabaseStar
@DatabaseStar 11 ай бұрын
Thanks! Sure I can do that. I’ve never heard of flashscore but I can look into it.
@hhgforfhuv
@hhgforfhuv 11 ай бұрын
@@DatabaseStar will be great! Thanks
@Im_Ashwin.M
@Im_Ashwin.M 6 ай бұрын
Very helpful videos. Can you make video about airline PNR database. A PNR can have 1. passenger name (first name, last name, title) 2. flight details (airlineCode, flight number, startCity, endCity, startTime, endTime) 3. phone (cityCode, number) 4. email 5. remarks 6. Special service requests (requestCode, status, remark)
@DatabaseStar
@DatabaseStar 6 ай бұрын
Good idea!
@recapMate
@recapMate 8 ай бұрын
Why having the total_price field in bookings table when u can compute it?
@DatabaseStar
@DatabaseStar 8 ай бұрын
Good point! Generally I don't add computed fields to this table, but I did for this instance because it's a value at a point in time and includes a range of other values that could change over time. But you could also not store it and compute it instead.
@LekkyDev
@LekkyDev 7 ай бұрын
Property image got removed. why?
@DatabaseStar
@DatabaseStar 7 ай бұрын
What do you mean the property image got removed?
@LekkyDev
@LekkyDev 7 ай бұрын
@@DatabaseStar Sorry i meant image table. @3:28 there was an image table but no more there at the end.
@nigelnyakudya2262
@nigelnyakudya2262 23 күн бұрын
beautiful content, make one for business like shopee.
@DatabaseStar
@DatabaseStar 23 күн бұрын
Thanks! I have one for an ecommerce store where I used ASOS.
@nigelnyakudya2262
@nigelnyakudya2262 23 күн бұрын
@DatabaseStar link please
@AndrulisTravel
@AndrulisTravel 11 ай бұрын
Nice
@DatabaseStar
@DatabaseStar 11 ай бұрын
Thanks!
I Critique a Database Design: My Honest Review
11:02
Database Star
Рет қаралды 3,2 М.
eCommerce Product Database Design: Step-By-Step
30:42
Database Star
Рет қаралды 26 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 92 М.
How to Design a Database for Instagram
9:26
Database Star
Рет қаралды 40 М.
Build an IMDb Database with SQL
37:09
Database Star
Рет қаралды 1,2 М.
SQL with DBeaver: Importing CSV Files to Create Databases
13:54
Database Design for an Online Course Website
10:38
Database Star
Рет қаралды 6 М.
How to Design a Database
10:57
Database Star
Рет қаралды 77 М.
Database Design for a Hotel Management System
12:14
Database Star
Рет қаралды 17 М.
Database Design for Custom Fields
18:39
Database Star
Рет қаралды 29 М.
Learn Database Normalization - 1NF, 2NF, 3NF, 4NF, 5NF
28:34
Decomplexify
Рет қаралды 2,1 МЛН
Database Design for Chat Application
10:01
Database Star
Рет қаралды 67 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН