不要怂,就是干,撸起袖子干!

import.ejs 368 Bytes
// in your server file - e.g. app.js
var Project = sequelize.import(__dirname + "/path/to/models/project")

// /path/to/models/project.js
// as you might notice, the DataTypes are the very same as explained above
module.exports = function(sequelize, DataTypes) {
  return sequelize.define("Project", {
    name: DataTypes.STRING,
    description: DataTypes.TEXT
  })
}