text: // See http://docs.sequelizejs.com/en/latest/docs/models-definition/
  // for more of what you can do here.
  const Sequelize = require('sequelize');
  const DataTypes = Sequelize.DataTypes;
  
  module.exports = function (app) {
    const sequelizeClient = app.get('sequelizeClient');
    const diskon = sequelizeClient.define('diskon', {
      diskon: {
        type: DataTypes.INTEGER,
        allowNull: false
      }
    }, {
      hooks: {
        beforeCount(options) {
          options.raw = true;
        }
      }
    });
  
    diskon.associate = function (models) { // eslint-disable-line no-unused-vars
      // Define associations here
      // See http://docs.sequelizejs.com/en/latest/docs/associations/
    };
  
    return diskon;
  };
  