Last active
October 17, 2019 19:48
-
-
Save royib/9e5a7f854a2243b2f481e4a734c47cae to your computer and use it in GitHub Desktop.
Node Clean Architecture – Entities And Use Cases - Entities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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