text: const mongoose = require("mongoose");
  
  const classroomSchema = mongoose.Schema(
    {
      name: {
        type: String,
        required: true,
      },
      description: {
        type: String,
      },
      code: {
        type: String,
        required: true,
      },
      teacherPassword: {
        type: String,
        required: true,
      },
      head: {
        type: Object,
      },
      announcements: [
        {
          type: mongoose.Schema.Types.ObjectId,
          ref: "Announcement",
        },
      ],
      faculties: [
        {
          type: mongoose.Schema.Types.ObjectId,
          ref: "User",
        },
      ],
      students: [
        {
          type: mongoose.Schema.Types.ObjectId,
          ref: "User",
        },
      ],
      lectures: [
        {
          type: mongoose.Schema.Types.ObjectId,
          ref: "Lecture",
        },
      ],
    },
    { timestamps: true }
  );
  
  module.exports = mongoose.model("Classroom", classroomSchema);
  