text: // Addresses-model.js - A mongoose model
  // 
  // See http://mongoosejs.com/docs/models.html
  // for more of what you can do here.
  module.exports = function (app) {
    const mongooseClient = app.get('mongooseClient');
    const { Schema } = mongooseClient;
    const addresses = new Schema({
      number: { type: String, required: true },
      street: { type: String, required: true },
      city: { type: String, required: true },
      zipcode: { type: String, required: true },
      userId: { type: Schema.Types.ObjectId, ref: 'users', required: true },
      createdAt: { type: Date, default: Date.now },
      updatedAt: { type: Date, default: Date.now }
    });
  
    return mongooseClient.model('addresses', addresses);
  };
  