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

const eventSchema = new Schema({
    title: { type: String, required: true },
    location: String,
    date: String,
    url: String,
    hostId: { type: Schema.Types.ObjectId, ref: 'User', required: true },
    guestsIds: [{ type: Schema.Types.ObjectId, ref: 'User' }],
    needs: [{ name: String, quantity: Number, category: String }],
    comments: String,
    createdAt: { type: Date, default: Date.now }
});

module.exports = Mongoose.models.Event || Mongoose.model('Event', eventSchema);<commit_msg>Add new column status to event model<commit_after>const Mongoose = require('mongoose'),
    Schema = Mongoose.Schema;

const eventSchema = new Schema({
    title: { type: String, required: true },
    location: String,
    date: String,
    url: String,
    hostId: { type: Schema.Types.ObjectId, ref: 'User', required: true },
    guestsIds: [{ type: Schema.Types.ObjectId, ref: 'User' }],
    needs: [{ name: String, quantity: Number, category: String, status: Number }],
    comments: String,
    createdAt: { type: Date, default: Date.now }
});

module.exports = Mongoose.models.Event || Mongoose.model('Event', eventSchema);
{'fraction_non_alphanumeric': 0.14930270713699753, 'fraction_numerical': 0.0, 'mean_word_length': 4.020576131687243, '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': '5083698', 'n_tokens_mistral': 365, 'n_tokens_neox': 368, 'n_words': 107}