text: import mongoose from "../lib/mongoose";
  
  const roomSchema = new mongoose.Schema({
    name: {
      type: String,
      required: true,
      unique: true,
    },
    category: {
      type: mongoose.Schema.Types.ObjectId,
      ref: "Category",
    },
    createdBy: {
      type: mongoose.Schema.Types.ObjectId,
      ref: "User",
    },
  });
  
  const Room = mongoose.model("Room", roomSchema);
  
  export default Room;
  