Skip to content

Instantly share code, notes, and snippets.

@Turbiani
Last active August 11, 2018 01:33
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 Turbiani/391f61578d78620935d51011de7708ad to your computer and use it in GitHub Desktop.
Save Turbiani/391f61578d78620935d51011de7708ad to your computer and use it in GitHub Desktop.
User Entity
const uuid = require('uuid/v4');
const Entity = require('./EntityBase');
class User extends Entity {
constructor(name, email, password) {
super(uuid());
this.name = name;
this.email = email;
this.password = password;
}
}
module.exports = User;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment