first commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user