user.js 465 B

123456789101112131415161718
  1. /*
  2. This is a combination model/migration/database table definition. See:
  3. http://sequelizejs.com/docs/1.7.8/models#definition
  4. for more information.
  5. This particular model is for users
  6. */
  7. module.exports = function(sequelize, DataTypes) {
  8. return sequelize.define("User", {
  9. name: DataTypes.STRING,
  10. username: DataTypes.STRING,
  11. password: DataTypes.STRING,
  12. bio: DataTypes.STRING,
  13. twitter_handle: DataTypes.STRING,
  14. site: DataTypes.STRING
  15. });
  16. }