Created
October 3, 2014 22:30
-
-
Save dmaii/91ab74a5ea3a2ba56b39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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