const mongoose = require("mongoose"); const UserSchema = new mongoose.Schema({ name: String, email: String, age: Number, }); // Prevents overwriting the model when tests run multiple times const User = mongoose.models.User || mongoose.model("User", UserSchema); module.exports = User;