Skip to content

Commit

Permalink
lb model Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rmg committed Apr 20, 2017
1 parent 25a6737 commit 89fc033
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions loopback-blog/common/models/comment.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

module.exports = function(Comment) {

};
19 changes: 19 additions & 0 deletions loopback-blog/common/models/comment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Comment",
"plural": "comments",
"base": "PersistedModel",
"idInjection": true,
"options": {
"validateUpsert": true
},
"properties": {
"body": {
"type": "string",
"required": true
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
4 changes: 4 additions & 0 deletions loopback-blog/server/model-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@
"Post": {
"dataSource": null,
"public": true
},
"Comment": {
"dataSource": null,
"public": true
}
}

0 comments on commit 89fc033

Please sign in to comment.