text: import mongoose from "mongoose";
  
  const RoutineSchema = mongoose.Schema({
    name: {
      type: String,
      required: true,
    },
    isActive: {
      type: Boolean,
      default: false,
    },
    routines: {
      type: Array,
      default: [],
    },
    user: {
      type: mongoose.Schema.Types.ObjectId,
      ref: "users",
    },
    date: {
      type: Date,
      default: Date.now,
    },
  });
  
  const Routine = mongoose.model("routine", RoutineSchema);
  
  export default Routine;
  