first commit

This commit is contained in:
Dhananjaya99
2026-09-28 11:44:26 +05:30
parent 721743ae6b
commit bffc9b1686
424 changed files with 46474 additions and 0 deletions
+28
View File
@@ -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>();
}
}