Schemas and Constraints

Recap and Feedback


In this part, you turned the conceptual design from the previous part into a concrete relational schema. You mapped the ER diagram into tables, wrote CREATE TABLE statements with sensible data types, added constraints to let the database enforce design decisions, and verified that the schema actually supported the expected queries.

You also practiced the same implementation skills on three different domains — the course platform, the recipe app, and the library — just as the last part used those same domains for subject analysis. Along the way, this part discussed migrations that help make schema work survive over time as the project evolves.

The part ended by walking one small feature — card reviews — through the full chain from idea to migration to application. The project now records how well each card has been remembered and surfaces that history on the deck detail page. The reviews feature is small on purpose; it is the seed of the summary-query work the next part builds.

Recap Quiz

The recap quiz below is a short sequence of questions drawn from the main ideas of this part. Complete it before the feedback form.

Loading Exercise...

Feedback

Next, please take a moment to reflect on your work in this part and provide feedback. Your input helps us improve the course materials.

Loading Exercise...