Skip to content

Instantly share code, notes, and snippets.

@royib
Last active October 17, 2019 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save royib/9e5a7f854a2243b2f481e4a734c47cae to your computer and use it in GitHub Desktop.
Save royib/9e5a7f854a2243b2f481e4a734c47cae to your computer and use it in GitHub Desktop.
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