Open whuang8 opened 7 years ago
Add an attribute to indicate if user is staff to the course_user pivot
@whuang8 Thought of a simpler way: just have course add a new Pivot<User, Course> called staff. i.e. course('CS 408').staff = ['tom', 'rick', 'harry'] or so.
course
Pivot<User, Course>
staff
course('CS 408').staff = ['tom', 'rick', 'harry']
Task
Add an attribute to indicate if user is staff to the course_user pivot