diff --git a/sails-blog/api/models/Post.js b/sails-blog/api/models/Post.js new file mode 100644 index 0000000..82a0b67 --- /dev/null +++ b/sails-blog/api/models/Post.js @@ -0,0 +1,17 @@ +/** + * Post.js + * + * @description :: TODO: You might write a short summary of how this model works and what it represents here. + * @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models + */ + +module.exports = { + + attributes: { + + title : { type: 'string' }, + + body : { type: 'text' } + } +}; +