import mongoose from "mongoose";

const MessageSchema = new mongoose.Schema({
  project: { type: String, required: true }, // new field to identify project
  name: { type: String, default: "Guest" },
  email: { type: String },
  message: { type: String, required: true },
}, { timestamps: true });

const Message = mongoose.models.Message || mongoose.model("Message", MessageSchema);

export default Message;
