19 lines
689 B
C#
19 lines
689 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Fitness_core_BE.Models
|
|
{
|
|
public class CustomerWorkoutExerciseCompletion
|
|
{
|
|
[Key]
|
|
public Guid CustomerWorkoutExerciseCompletionId { get; set; }
|
|
public Guid FKCustomerWorkoutId { get; set; }
|
|
[ForeignKey("FKCustomerWorkoutId")]
|
|
public virtual CustomerWorkout? CustomerWorkout { get; set; }
|
|
public Guid FKWorkoutExerciseId { get; set; }
|
|
[ForeignKey("FKWorkoutExerciseId")]
|
|
public virtual WorkoutExercise? WorkoutExercise { get; set; }
|
|
public DateTime CompletedDate { get; set; } = DateTime.UtcNow;
|
|
}
|
|
}
|