first commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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<WorkoutExercise> WorkoutExercises { get; set; } = new List<WorkoutExercise>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user