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