El escenario
A journaling application needs a relational schema to track users, their journals and entries, tags, and file attachments.
Qué hay en este dibujo
Lee las decisiones que hay detrás.
01
Composite primary key in EntryTag models many-to-many between entries and tags.
02
Attachments reference entries directly for one-to-many attachments.
03
User ownership cascades through journals to entries instead of direct user-entry link.
When to reuse: any personal journaling, note-taking, or content-collection app needing tags and attachments.