Data Schema
6 min read.
Validate a record live, see the same schema in SQL, JSON Schema, Pydantic, and Protobuf, walk a backward-compatible migration, and use the schema to constrain an LLM's structured output.
Think of it this way: A schema is the blank form with rules printed on it: this box takes a number, this one a valid email, this one only "admin/user/guest". Fill it wrong and it's rejected at the door.
Valid. Every field matches the schema.
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Fact or dimension?
Sort each table into its place in a star schema.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
Fact table
Drop items hereDimension table
Drop items hereQuiz
20 questionsWhat does a schema constraint like CHECK (age >= 0) provide?
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.