diff options
Diffstat (limited to 'src/models/posts.model.js')
-rw-r--r-- | src/models/posts.model.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/models/posts.model.js b/src/models/posts.model.js index e46117c..a48d2f6 100644 --- a/src/models/posts.model.js +++ b/src/models/posts.model.js @@ -6,6 +6,10 @@ const DataTypes = Sequelize.DataTypes; module.exports = function (app) { const sequelizeClient = app.get('sequelizeClient'); const posts = sequelizeClient.define('posts', { + userId: { + type: DataTypes.INTEGER, + allowNull: false + }, text: { type: DataTypes.STRING, allowNull: false |