init
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
namespace TrainingPlanner.Domain;
|
||||
|
||||
public class Client
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string TrainerId { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Notes { get; set; } = string.Empty;
|
||||
public string Goal { get; set; } = string.Empty;
|
||||
public string TrainingSchedule { get; set; } = string.Empty;
|
||||
public string HealthStatus { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace TrainingPlanner.Domain;
|
||||
|
||||
public class ExerciseGroup
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string TrainerId { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace TrainingPlanner.Domain;
|
||||
|
||||
public class LibraryExercise
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string TrainerId { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string VideoUrl { get; set; } = string.Empty;
|
||||
public int? GroupId { get; set; }
|
||||
public ExerciseGroup? Group { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace TrainingPlanner.Domain;
|
||||
|
||||
public class TrainingPlan
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int ClientId { get; set; }
|
||||
public string TrainerId { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public DateTime CreatedAtUtc { get; set; }
|
||||
public DateTime UpdatedAtUtc { get; set; }
|
||||
public int Version { get; set; }
|
||||
public List<TrainingWeek> Weeks { get; set; } = [];
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace TrainingPlanner.Domain;
|
||||
|
||||
public class TrainingWeek
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int TrainingPlanId { get; set; }
|
||||
public int Position { get; set; }
|
||||
public List<Workout> Workouts { get; set; } = [];
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace TrainingPlanner.Domain;
|
||||
|
||||
public class Workout
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int TrainingWeekId { get; set; }
|
||||
public int Position { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Duration { get; set; } = string.Empty;
|
||||
public List<WorkoutBlock> Blocks { get; set; } = [];
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace TrainingPlanner.Domain;
|
||||
|
||||
public class WorkoutBlock
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int WorkoutId { get; set; }
|
||||
public int Position { get; set; }
|
||||
public int SetsCount { get; set; }
|
||||
public decimal RestMinutes { get; set; }
|
||||
public List<WorkoutExercise> Exercises { get; set; } = [];
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
namespace TrainingPlanner.Domain;
|
||||
|
||||
public class WorkoutExercise
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int WorkoutBlockId { get; set; }
|
||||
public int Position { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Repetitions { get; set; } = string.Empty;
|
||||
public string Weight { get; set; } = string.Empty;
|
||||
public string WarmupSets { get; set; } = string.Empty;
|
||||
public string Notes { get; set; } = string.Empty;
|
||||
public decimal? IntensityPercent { get; set; }
|
||||
public string VideoUrl { get; set; } = string.Empty;
|
||||
public bool RequiresVideo { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user