У нас вы можете посмотреть бесплатно The Blueprint of Truth: Mastering the Database Schema или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Imagine for a moment that you walk into the world’s biggest library. It has millions of books. You walk up to the librarian and say, "I’m looking for the biography of Steve Jobs."The librarian smiles, points to a massive pile of books in the middle of the floor—a pile ten stories high—and says, "It’s in there somewhere. Good luck."There are no shelves. No categories. No Dewey Decimal System. Just a mountain of paper.How long would it take you to find that book? Days? Years?Now, imagine a different library. You ask for the same book. The librarian types into a computer, pauses for a second, and says, "Aisle 4, Shelf B, Slot 12." You have the book in your hands in three minutes.What is the difference between these two libraries? It isn't the books. The content is exactly the same. The difference is the structure. The difference is the rulesIn the world of data, that structure has a name. It is called a Database Schema.Today, we are going to open the hood of modern technology and look at the engine that keeps our digital lives running. We aren't just going to talk about data; we are going to talk about the blueprint that gives data its meaning. By the end of this talk, you won’t just know what a schema is—you’ll know how to design the foundation of a digital world.II. What is a Schema? The Blueprint (2:00 - 3:30)So, let’s get technical for a moment, but keep it simple.A Database Schema is the logical configuration of all or part of a database. Think of it as a blueprint for a house.ShutterstockIf you are building a house, you don't just start nailing wood together. You have a plan. The plan says: "The kitchen goes here. The bathroom goes here. The plumbing connects the two." A schema does the exact same thing for data. It defines: What data we are storing. How that data is organized. How the different pieces of data talk to each other. It does not contain the data itself. The blueprint of a house is not the house. It's the rules for the house. A schema is the skeleton; the data is the flesh. III. The Core Elements: Tables and Attributes (3:30 - 5:00) Now, let's break this skeleton down. If you look at a schema, what are you actually looking at? You are mostly looking at Tables. Imagine an Excel spreadsheet. That’s a table. In a database schema, we give that table a specific name and a specific job. Let’s build a hypothetical app right now—let’s say we are building "Uber for Dog Walking." We’ll call it DogWalkr. What tables do we need? We need a Users table (for the humans). We need a Dogs table (for the pets). We need a Walks table (to track the appointments). Inside these tables, we have Fields or Columns. These are the specific attributes. For the Users table, we might have: Name Email Phone Number But here is where the schema gets strict. A good schema enforces Data Types. The "Name" field? That must be text. The "Phone Number"? That must be integers. The "Date of Birth"? That must be a date format. Why do we do this? To prevent chaos. If someone tries to type "Banana" into the "Phone Number" field, the database shouts, "Error!" The schema is the bouncer at the club, ensuring only the right type of data gets in. IV. The Glue: Keys and Relationships (5:00 - 7:00) (Slow down here. This is the most critical part for listeners to understand) Now, having separate tables is nice, but it’s useless if they don't talk to each other. This is where the magic happens. This is where we get into Relationships. To connect tables, we use two special tools: The Primary Key and the Foreign Key. The Primary Key: This is a unique ID badge for every single row. In our "Users" table, every person gets a unique ID number. User 001, User 002. No two users can have the same ID. It distinguishes John Smith from New York from John Smith from London. The Foreign Key: This is how we link them. Let’s look at our Dogs table. We have a dog named "Rex." But who owns Rex? We don't type "John Smith" next to Rex. Why? Because what if John changes his name? What if there are ten John Smiths? Instead, inside the Dogs table, we put John’s Primary Key (User ID 001). In the Dogs table, that ID is called a Foreign Key. It acts like a signpost that points back to the Users table. It says, "If you want to know who owns this dog, go look at User #001." This creates a relationship. One-to-One: One user has one profile settings page. One-to-Many: One user can own many dogs. (This is the most common). Many-to-Many: Many walkers can walk many dogs. The schema visualizes these lines connecting the tables. It looks like a spiderweb of logic. V. The Three Layers of Schema (7:00 - 8:30) Now, before you go out and start coding, you need to know that schemas are designed in stages. You don't just jump to the code. Conceptual Schema: This is the napkin drawing. You sit with the business owner and draw boxes. "We need users, we need products, we need orders." No technical details. Just concepts Logical Schema: Now we get serious.