title: Message.Create is not a function sequelize cli
body: <p>I have installed mysql sequelize in my project then I creadted Message Model using sequelize command  which create model and migration file .I also given the db credentials in config.json file.Now I am trying to insert record in my db but getting this error here is my model file </p>
  
  <hr>
  
  <blockquote>
    <p>DO i need to make db connection explicitly or it auto picks the
    credential from config.json file to make connection ?</p>
  </blockquote>
  
  <hr>
  
  <p><strong>models/messages.js</strong> </p>
  
  <pre><code>'use strict';
  module.exports = (sequelize, DataTypes) =&gt; {
  var Messages = sequelize.define('Messages', {
   room: DataTypes.STRING,
  nickname: DataTypes.STRING,
  message: DataTypes.STRING,
  receiver: DataTypes.STRING
   }, {
  classMethods: {
    associate: function(models) {
      // associations can be defined here
    }
  }
  });
   return Messages;
  };
  </code></pre>
  
  <p>here is config.json file 
  <strong>config/config.json</strong></p>
  
  <pre><code>{
  "development": {
  "username": "root",
  "password": "asad",
  "database": "chat",
  "host": "127.0.0.1",
  "dialect": "mysql"
  },
  "test": {
  "username": "root",
  "password": null,
  "database": "database_test",
  "host": "127.0.0.1",
  "dialect": "mysql"
   },
  "production": {
  "username": "root",
  "password": null,
  "database": "database_production",
  "host": "127.0.0.1",
  "dialect": "mysql"
   }
  }
  </code></pre>
  
  <p>and here is my server file to save record
  <strong>app.js file</strong> </p>
  
  <pre><code> var express = require('express');
   var router = express.Router();
    var app = express();
   var server = require('http').createServer(app);
   server.listen(4000);
   var Messages=require('../models/Messages.js');
  
  router.post('/', function(req, res, next) {
    var a =req.body;
  
   Messages.create(a).then(() =&gt; {
  
    console.log('success ')
  
  })
   })
  </code></pre>