Last active
August 11, 2018 01:33
-
-
Save Turbiani/391f61578d78620935d51011de7708ad to your computer and use it in GitHub Desktop.
User Entity
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
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