29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Fitness_core_BE.Models
|
|
{
|
|
public class CustomerWorkout
|
|
{
|
|
[Key]
|
|
public Guid CustomerWorkoutId { get; set; }
|
|
|
|
// Tenant-bucket entity: this FK holds a TenantCustomerLinkId (not the central
|
|
// Customer.CusId directly) -- see Models/TenantCustomerLink.cs.
|
|
public Guid FKCustomerId { get; set; }
|
|
[ForeignKey("FKCustomerId")]
|
|
public virtual TenantCustomerLink? TenantCustomerLink { get; set; }
|
|
|
|
public Guid FKWorkoutPlanId { get; set; }
|
|
[ForeignKey("FKWorkoutPlanId")]
|
|
public virtual WorkoutPlan? WorkoutPlan { get; set; }
|
|
|
|
public bool IsActive { get; set; } = true;
|
|
public DateTime AssignedDate { get; set; } = DateTime.UtcNow;
|
|
public DateTime? CompletedDate { get; set; }
|
|
public bool IsFollowing { get; set; } = false;
|
|
public string? Notes { get; set; }
|
|
public virtual ICollection<CustomerWorkoutExerciseCompletion> ExerciseCompletions { get; set; } = new List<CustomerWorkoutExerciseCompletion>();
|
|
}
|
|
}
|