diff --git a/loopback-blog/common/models/post.json b/loopback-blog/common/models/post.json index e939910..31bba9a 100644 --- a/loopback-blog/common/models/post.json +++ b/loopback-blog/common/models/post.json @@ -17,7 +17,13 @@ } }, "validations": [], - "relations": {}, + "relations": { + "author": { + "type": "belongsTo", + "model": "Author", + "foreignKey": "" + } + }, "acls": [], "methods": {} }