text: /* jshint indent: 2 */
  
  module.exports = function(sequelize, DataTypes) {
    return sequelize.define('comments', {
      id: {
        type: DataTypes.INTEGER(11),
        allowNull: false,
        primaryKey: true,
        autoIncrement: true
      },
      commented_type: {
        type: DataTypes.STRING(30),
        allowNull: false,
        defaultValue: ''
      },
      commented_id: {
        type: DataTypes.INTEGER(11),
        allowNull: false,
        defaultValue: '0'
      },
      author_id: {
        type: DataTypes.INTEGER(11),
        allowNull: false,
        defaultValue: '0'
      },
      comments: {
        type: DataTypes.TEXT,
        allowNull: true
      },
      created_on: {
        type: DataTypes.DATE,
        allowNull: false
      },
      updated_on: {
        type: DataTypes.DATE,
        allowNull: false
      }
    }, {
      tableName: 'comments'
    });
  };
  