text: const mongoose = require('mongoose');
  var mongoosePaginate = require('mongoose-paginate')
  const mongooseDateFormat = require('mongoose-date-format');
  
  var Schema = mongoose.Schema;
  
  const midsoleSchema = new Schema({
      transaction_date : {type: Date, default: Date.now},
      code : {type: String, required: true,  trim:true,
        index: {
          unique: true,
          collation: { locale: 'en', strength: 2 }
        }
      },
      description : {type: String, required: true,  trim:true,
        index: {
          unique: true,
          collation: { locale: 'en', strength: 2 }
        }
      }
    }, {collection : 'tbl_param_midsole'});
    
  
    midsoleSchema.plugin(mongoosePaginate)
    midsoleSchema.plugin(mongooseDateFormat)
  
    module.exports = mongoose.model('MidsoleModel', midsoleSchema);