title: Sequelize schema for PostgreSQL: How to accurately define a schema in a model?
body: <p>I searched throughout the net and have not been able to determine how to add a schema to this sequelize model below. The following code does not kick back errors, however when I inspect the postgres DB, the only schema is the default one for public.      </p>
  
  <pre><code>// The model definition is done in /path/to/models/project.js
  module.exports = function(sequelize, DataTypes) {
    return sequelize.define("project", {
      name: DataTypes.STRING,
      description: DataTypes.TEXT,
    },
      define: {
          schema: "prefix"
      },
      classMethods: {
        method1: function() {},
        method2: function() {}
    },
      instanceMethods: {
        method3: function() {}
    })
  </code></pre>
  
  <p>How should the script be revised to accurately define a schema? </p>
  
  <p><strong>EDIT</strong></p>
  
  <p>In my case, the final answer was </p>
  
  <pre><code> database_name.sequelize.createSchema('prefix').then(() =&gt; {...});
  </code></pre>
  
  <p>in my ./models/index.js file the database object is as follows:</p>
  
  <pre><code>database_name = {
      Sequelize: Sequelize,
      sequelize: sq,
      table_1: sq.import(__dirname + '/file_folder')
   };
  
  module.exports = database_name;
  </code></pre>