I know most people here don't like sequelize but I have to use it for an assignment.If I have 4 tables Students Assignments Grades CohortsAnd every student, assignment, grade is assigned 1 cohort.And every grade is assigned to 1 student and 1 assignment (via a combination of id and cohortID)How exactly would I relate these using hasOne/hasMany/etc.?I had this working well before I realized I needed distinct groups of students/assignments/grades so the application can be used for more then 1 class.
Submitted September 08, 2020 at 04:45PM by minion213484
No comments:
Post a Comment