29 lines
1.0 KiB
C#
29 lines
1.0 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Fitness_core_BE.Models
|
|
{
|
|
public class WorkoutPlan
|
|
{
|
|
[Key]
|
|
public Guid WorkoutPlanId { get; set; }
|
|
public string WorkoutPlanName { get; set; }
|
|
public string? Description { get; set; }
|
|
public bool IsTemplate { get; set; } = false;
|
|
|
|
public Guid FKWorkoutCategoryId { get; set; }
|
|
[ForeignKey("FKWorkoutCategoryId")]
|
|
public virtual WorkoutCategory WorkoutCategory { get; set; }
|
|
|
|
public Guid? FKClientId { get; set; }
|
|
[ForeignKey("FKClientId")]
|
|
public virtual Client? Client { get; set; }
|
|
|
|
public bool IsActive { get; set; } = true;
|
|
public DateTime CreateDate { get; set; } = DateTime.UtcNow;
|
|
|
|
public virtual ICollection<WorkoutItem> WorkoutItems { get; set; } = new List<WorkoutItem>();
|
|
public virtual ICollection<CustomerWorkout> CustomerWorkouts { get; set; } = new List<CustomerWorkout>();
|
|
}
|
|
}
|