Node Clean Architecture – Entities And Use Cases - Entities
module.exports = class Student { | |
constructor(id = null, firstName, lastName, email, Enrollments) { | |
this.id = id; | |
this.firstName = firstName; | |
this.lastName = lastName; | |
this.email = email; | |
this.Enrollments = Enrollments; | |
} | |
}; | |
module.exports = class Course { | |
constructor(id = null, Name) { | |
this.id = id; | |
this.Name = Name; | |
} | |
}; | |
module.exports = class Enrollment { | |
constructor(Course, Grade) { | |
this.Course = Course; | |
this.Grade = Grade; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment