text: const mongoose = require("mongoose");
  const Schema = mongoose.Schema;
  
  let Course = require("../Course/Course.model");
  let Section = require("../Section/Section.model");
  
  //Define collection and schema for User
  let User = new Schema({
    first_name: String,
    last_name: String,
    user_id: String,
    email: { type: String, unique: true },
    temp_password: String,
    password: String,
    connect_sid: {
      type: String,
      default: "",
    },
    is_admin: {
      type: Boolean,
      default: false,
    },
    instructor_courses: [
      {
        type: mongoose.Schema.Types.ObjectId,
        ref: "Course",
      },
    ],
    ta_sections: [
      {
        type: mongoose.Schema.Types.ObjectId,
        ref: "Section",
      },
    ],
    student_sections: [
      {
        type: mongoose.Schema.Types.ObjectId,
        ref: "Section",
      },
    ],
    archived_instructor_courses: [
      {
        type: mongoose.Schema.Types.ObjectId,
        ref: "Course",
      },
    ],
    archived_ta_sections: [
      {
        type: mongoose.Schema.Types.ObjectId,
        ref: "Section",
      },
    ],
    archived_student_sections: [
      {
        type: mongoose.Schema.Types.ObjectId,
        ref: "Section",
      },
    ],
    dark_mode: {
      type: Boolean,
      default: false,
    },
  });
  
  module.exports = mongoose.model("User", User);
  