using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Fitness_core_BE.Models { public class WorkoutItem { [Key] public Guid WorkoutItemId { get; set; } public string ExerciseDay { get; set; } = string.Empty; public string? Description { get; set; } public string? Exercises { get; set; } // JSON: {"Push-ups": "3 sets x 10 reps", "Squats": "4 sets x 15 reps"} public string? HowToDo { get; set; } // Structured JSON public string? DoURL { get; set; } public Guid FKWorkoutPlanId { get; set; } [ForeignKey("FKWorkoutPlanId")] public virtual WorkoutPlan? WorkoutPlan { get; set; } public string? Duration { get; set; } public string? WormUp { get; set; } public string? Cooldown { get; set; } public bool IsActive { get; set; } = true; public DateTime CreateDate { get; set; } = DateTime.UtcNow; public DateTime? UpdatedAt { get; set; } public virtual ICollection WorkoutExercises { get; set; } = new List(); } }