Skip to content

Instantly share code, notes, and snippets.

@jkarsrud
Created May 21, 2013 12:51
Show Gist options
  • Save jkarsrud/5619548 to your computer and use it in GitHub Desktop.
Save jkarsrud/5619548 to your computer and use it in GitHub Desktop.
Sequelize model definition
module.exports = function(sequelize, DataType) {
return sequelize.define('Project', {
id: {type: DataType.INTEGER, autoIncrement: true, primaryKey: true},
name: { type: DataType.STRING, allowNull: false},
description: DataType.TEXT
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment