Skip to content

Instantly share code, notes, and snippets.

@Turbiani
Created August 11, 2018 01:34
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/b462748718fb3847597f0a1fad2f7630 to your computer and use it in GitHub Desktop.
Save Turbiani/b462748718fb3847597f0a1fad2f7630 to your computer and use it in GitHub Desktop.
Comment 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