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,8 @@
using skydiveLogs_api.Domain;
namespace skydiveLogs_api.DomainService.Repositories
{
public interface IStatsByAircraftRepository : IStatsRepository<StatsByAircraft>
{
}
}

View File

@@ -0,0 +1,8 @@
using skydiveLogs_api.Domain;
namespace skydiveLogs_api.DomainService.Repositories
{
public interface IStatsByDzRepository : IStatsRepository<StatsByDz>
{
}
}

View File

@@ -0,0 +1,8 @@
using skydiveLogs_api.Domain;
namespace skydiveLogs_api.DomainService.Repositories
{
public interface IStatsByGearRepository : IStatsRepository<StatsByGear>
{
}
}

View File

@@ -0,0 +1,8 @@
using skydiveLogs_api.Domain;
namespace skydiveLogs_api.DomainService.Repositories
{
public interface IStatsByJumpTypeRepository : IStatsRepository<StatsByJumpType>
{
}
}

View File

@@ -0,0 +1,8 @@
using skydiveLogs_api.Domain;
namespace skydiveLogs_api.DomainService.Repositories
{
public interface IStatsByYearByJumpTypeRepository : IStatsRepository<StatsByYearByJumpType>
{
}
}

View File

@@ -0,0 +1,8 @@
using skydiveLogs_api.Domain;
namespace skydiveLogs_api.DomainService.Repositories
{
public interface IStatsByYearRepository : IStatsRepository<StatsByYear>
{
}
}

View File

@@ -0,0 +1,8 @@
using skydiveLogs_api.Domain;
namespace skydiveLogs_api.DomainService.Repositories
{
public interface IStatsForLastMonthByDzRepository : IStatsRepository<StatsForLastMonthByDz>
{
}
}

View File

@@ -0,0 +1,8 @@
using skydiveLogs_api.Domain;
namespace skydiveLogs_api.DomainService.Repositories
{
public interface IStatsForLastMonthByJumpTypeRepository : IStatsRepository<StatsForLastMonthByJumpType>
{
}
}

View File

@@ -0,0 +1,8 @@
using skydiveLogs_api.Domain;
namespace skydiveLogs_api.DomainService.Repositories
{
public interface IStatsForLastYearByDzRepository : IStatsRepository<StatsForLastYearByDz>
{
}
}

View File

@@ -0,0 +1,8 @@
using skydiveLogs_api.Domain;
namespace skydiveLogs_api.DomainService.Repositories
{
public interface IStatsForLastYearByJumpTypeRepository : IStatsRepository<StatsForLastYearByJumpType>
{
}
}

View File

@@ -0,0 +1,20 @@
using skydiveLogs_api.Domain;
using System.Collections.Generic;
namespace skydiveLogs_api.DomainService.Repositories
{
public interface IStatsRepository<T>
{
#region Public Methods
IEnumerable<T> GetAll(User user);
int Add(IEnumerable<T> newEntity);
bool Update(IEnumerable<T> updatedEntity, User user);
bool Delete(User user);
#endregion Public Methods
}
}

View File

@@ -1,13 +0,0 @@
using skydiveLogs_api.Domain;
namespace skydiveLogs_api.DomainService.Repositories
{
public interface IUserStatsRepository : IRepository<UserStats>
{
#region Public Methods
UserStats GetAll(User user);
#endregion Public Methods
}
}