Skip to content

Instantly share code, notes, and snippets.

@Turbiani
Created August 11, 2018 01:35
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/48f9a74d2434d0323f5edde59709954e to your computer and use it in GitHub Desktop.
Save Turbiani/48f9a74d2434d0323f5edde59709954e to your computer and use it in GitHub Desktop.
Post entity
const uuid = require('uuid/v4');
const Entity = require('./EntityBase');
class Post extends Entity {
constructor(title, description, postedBy) {
super(uuid());
this.title = title;
this.description = description;
this.postedBy = postedBy;
}
}
module.exports = Post;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment