Skip to content

Instantly share code, notes, and snippets.

@dmaii
Created October 3, 2014 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmaii/91ab74a5ea3a2ba56b39 to your computer and use it in GitHub Desktop.
Save dmaii/91ab74a5ea3a2ba56b39 to your computer and use it in GitHub Desktop.
module.exports = function(sequelize, DataTypes) {
var options, schema;
schema = {
reference_id: {
type: DataTypes.INTEGER,
allowNull: false
},
name: {
type: DataTypes.TEXT
}
};
options = {
paranoid: true,
tableName: 'teams'
};
return sequelize.define('Team', schema, options);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment