<commit_before>const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const itemSchema = new Schema({
    name: {
        type: String,
        required: true
    },
    attributes: [{ type: String }],
    stores: [{
        type: Schema.Types.ObjectId,
        ref: 'Store'
    }]
});

//method for best price

module.exports = mongoose.model('Item', itemSchema);<commit_msg>update item schema - rename 'name' to 'item'<commit_after>const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const itemSchema = new Schema({
    item: {
        type: String,
        required: true
    },
    attributes: [{ type: String }],
    stores: [{
        type: Schema.Types.ObjectId,
        ref: 'Store'
    }]
});

//method for best price

module.exports = mongoose.model('Item', itemSchema);
{'fraction_non_alphanumeric': 0.1411042944785276, 'fraction_numerical': 0.0, 'mean_word_length': 2.8309859154929575, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6168633', 'n_tokens_mistral': 245, 'n_tokens_neox': 251, 'n_words': 65}