26 lines
935 B
C#
26 lines
935 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Fitness_core_BE.Models
|
|
{
|
|
public class WorkoutExercise
|
|
{
|
|
[Key]
|
|
public Guid WorkoutExerciseId { get; set; }
|
|
public Guid FKWorkoutItemId { get; set; }
|
|
[ForeignKey("FKWorkoutItemId")]
|
|
public virtual WorkoutItem? WorkoutItem { get; set; }
|
|
public string Name { get; set; } = string.Empty;
|
|
public string? MuscleGroup { get; set; }
|
|
public int? Sets { get; set; }
|
|
public string? Reps { get; set; }
|
|
public string? Description { get; set; }
|
|
public string? BreathIn { get; set; }
|
|
public string? BreathOut { get; set; }
|
|
public string? VideoUrl { get; set; }
|
|
public int SortOrder { get; set; }
|
|
public bool IsActive { get; set; } = true;
|
|
public DateTime CreateDate { get; set; } = DateTime.UtcNow;
|
|
}
|
|
}
|