Split tables for the stats (#6)

Reviewed-on: #6
Co-authored-by: sandre <perso@sebastienandre.com>
Co-committed-by: sandre <perso@sebastienandre.com>
This commit was merged in pull request #6.
This commit is contained in:
2026-01-26 13:38:07 +00:00
committed by sandre
parent 677e74df10
commit b25e947d62
59 changed files with 1956 additions and 373 deletions

View File

@@ -0,0 +1,13 @@
namespace skydiveLogs_api.Domain
{
public class StatsByAircraft
{
public string Aircraft { get; set; }
public int Nb { get; set; }
public int Id { get; set; }
public User User { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
namespace skydiveLogs_api.Domain
{
public class StatsByDz
{
public string DropZone { get; set; }
public int Nb { get; set; }
public int Id { get; set; }
public User User { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
namespace skydiveLogs_api.Domain
{
public class StatsByGear
{
public string Gear { get; set; }
public int Nb { get; set; }
public int Id { get; set; }
public User User { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
namespace skydiveLogs_api.Domain
{
public class StatsByJumpType
{
public string JumpType { get; set; }
public int Nb { get; set; }
public int Id { get; set; }
public User User { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
namespace skydiveLogs_api.Domain
{
public class StatsByYear
{
public string Year { get; set; }
public int Nb { get; set; }
public int Id { get; set; }
public User User { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using System.Collections.Generic;
namespace skydiveLogs_api.Domain
{
public class StatsByYearByJumpType
{
public string Year { get; set; }
public string JumpType { get; set; }
public int Nb { get; set; }
public int Id { get; set; }
public User User { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
namespace skydiveLogs_api.Domain
{
public class StatsForLastMonthByDz
{
public string DropZone { get; set; }
public int Nb { get; set; }
public int Id { get; set; }
public User User { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
namespace skydiveLogs_api.Domain
{
public class StatsForLastMonthByJumpType
{
public string JumpType { get; set; }
public int Nb { get; set; }
public int Id { get; set; }
public User User { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
namespace skydiveLogs_api.Domain
{
public class StatsForLastYearByDz
{
public string DropZone { get; set; }
public int Nb { get; set; }
public int Id { get; set; }
public User User { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
namespace skydiveLogs_api.Domain
{
public class StatsForLastYearByJumpType
{
public string JumpType { get; set; }
public int Nb { get; set; }
public int Id { get; set; }
public User User { get; set; }
}
}

View File

@@ -1,42 +0,0 @@
using System.Collections.Generic;
namespace skydiveLogs_api.Domain
{
public class UserStats
{
#region Public Constructors
public UserStats()
{
ByAircraft = new List<Statistic>();
ByDz = new List<Statistic>();
ByGear = new List<Statistic>();
ByJumpType = new List<Statistic>();
ByYear = new List<Statistic>();
ForLastMonthByDz = new List<Statistic>();
ForLastMonthByJumpType = new List<Statistic>();
ForLastYearByDz = new List<Statistic>();
ForLastYearByJumpType = new List<Statistic>();
ByYearByJumpType = new List<Statistic>();
}
#endregion Public Constructors
#region Public Properties
public IEnumerable<Statistic> ByAircraft { get; set; }
public IEnumerable<Statistic> ByDz { get; set; }
public IEnumerable<Statistic> ByGear { get; set; }
public IEnumerable<Statistic> ByJumpType { get; set; }
public IEnumerable<Statistic> ByYear { get; set; }
public IEnumerable<Statistic> ForLastMonthByDz { get; set; }
public IEnumerable<Statistic> ForLastMonthByJumpType { get; set; }
public IEnumerable<Statistic> ForLastYearByDz { get; set; }
public IEnumerable<Statistic> ForLastYearByJumpType { get; set; }
public IEnumerable<Statistic> ByYearByJumpType { get; set; }
public int Id { get; set; }
public User User { get; set; }
#endregion Public Properties
}
}