If you only care about grades for the intersection of students and subjects, you can put the grade on the student_subject pivot table.
If you have marking periods, it gets a bit more complicated.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I'm looking to design a report card system purely as a learning tool, but I'm stumped on defining the database relationships. Naturally I have Students and Subjects. Do I need a Grades table as well? How should I define their relationships?
TIA
Please or to participate in this conversation.