Exercise 1: TEXT vs. DateTime — Possible Solution ==================================================================== WHAT ACTUALLY CHANGES ------------------------------ In the sibling course, expiry_date is stored as a plain TEXT column — SQLite has no native date/time type, so the value is just a string that happens to look like a date. Comparing two expiry dates, or comparing one against "right now," means comparing those strings character by character (lexicographically), which only gives the correct answer if every stored value uses exactly the same, consistently formatted, zero-padded shape. In this course, expiryDate is a genuine DateTime field. Prisma's own query engine understands it as an actual date/time value, not just text that happens to look like one, and every date comparison made through Prisma Client's query methods (gte, lte, and the rest) is evaluated as a real date comparison rather than a raw string comparison. WHY THIS MATTERS BEYOND THIS CHAPTER ------------------------------ This exact distinction is what Chapter 6 (Expiry Alerts) builds on directly. The sibling course has to handle its own TEXT-based date comparisons carefully to avoid a real correctness gotcha; this course's own version of the identical feature is built on a field type that doesn't have that specific failure mode built into how the data is stored in the first place. WHY THIS WORKS AS AN ANSWER ------------------------------ It correctly names the real difference (text comparison vs. a typed date comparison) rather than describing it as just a cosmetic label change, and it connects the difference forward to the specific later chapter where it actually matters, rather than treating it as an isolated fact about Chapter 2 alone.