Milestone P2 proves Notes persist in PostgreSQL with TypeORM entities, a reviewed migration, a seeder, and a User↔Note relation with synchronize left false.
In simpler words
Replace in-memory habits with entities, migrations, and seeds — then run the Week 2 grader.
Maps to Week 2 SQL + TypeORM. Use W3Schools SQL/PostgreSQL under /resources if you need query refreshers.
Add Note + User entities and a migration with FKs/indexes
Keep synchronize: false in runtime and CLI DataSource
Seed users/notes safely and load authors without N+1 on list
How to work this milestone
Definition
A milestone is an auto-checked Notes API stage in apps/notes-practice: read the official Nest chapter, inspect the monorepo reference, implement the stage, then run the grader.
In simpler words
Literacy quiz (≥80%) still matters. The milestone command proves you can ship the week’s code.
Official tutorial order: docs/academy/fe-to-api/README.md (Week 2 — Requests, validation, TypeORM).
Official docs: Nest TypeORM technique — https://docs.nestjs.com/techniques/database