The content in this video has been seen in an earlier video but is still worth discussing itself. When you’re building an API it may be useful to have descriptive models that are similar, but not used for the same things. For example, your BaseUser model may have a username, email, and date of birth and your UserInDB model may have all of these fields but also a `hashed_password` field. Your UserIn model may have a plain text password. Your UserOut model may have only the fields described in your BaseUser model.
In this video you’ll see a basic introduction about how to incorporate this sort of model inheritance.
GitHub:
1 view
12
6
4 months ago 00:54:36 1
Fixing up a Straight-Six BMW E46 325i Touring - Project Cologne: Part 2
5 months ago 00:22:22 1
Dying Light - M1 Apple Silicon - MacBook Air 2020
5 months ago 00:01:02 1
САМАЯ ЛУЧШАЯ СБОРКА ДЛЯ РАДМИР РП КРМП ДЛЯ СЛАБЫХ ПК И ЛОВЛИ | СБОРКА РАДМИР РП КРМП ОБНОВЛЕНИЕ 6.7
5 months ago 00:10:43 1
dnhkng GlaDOS - Your Own, Personal, Free & Totally Unhinged AI Companion!
5 months ago 00:02:12 1
ISO 20022: The New Age of Payments & What it Means for Digital Currency
5 months ago 00:09:03 1
Решение задач Codewars JS | Junior, Middle, Senior | ЧАСТЬ 5
5 months ago 00:03:14 1
Alina Zagitova & Nathan Chen || Anything You Can Do, I Can Do Better!
5 months ago 00:11:23 1
Why I Quit The FIRE Movement
5 months ago 00:19:02 1
50 Easy Habits That Will Change Your Life Forever
5 months ago 00:01:31 1
FastTrack programos: Full-Stack ir Python
5 months ago 00:15:07 1
Решение задач codewars js | Junior, Middle, Senior | ЧАСТЬ 4
5 months ago 00:21:01 1
Решение задач codewars js | Junior, Middle, Senior | ЧАСТЬ 3
5 months ago 00:14:39 1
Решение задач codewars js | Junior, Middle, Senior | ЧАСТЬ 2
5 months ago 00:19:50 1
Решение задач codewars js | Junior, Middle, Senior