Skip to content

Commit

Permalink
Merge pull request #1 from donderjoekel/feature/v16_refactor
Browse files Browse the repository at this point in the history
feature/v16 refactor
  • Loading branch information
Thundernerd authored Aug 1, 2024
2 parents 30692cf + cfa30a5 commit 0925ceb
Show file tree
Hide file tree
Showing 253 changed files with 1,808 additions and 6,147 deletions.
50 changes: 28 additions & 22 deletions Data/Entities/Auth.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System;
using System.Collections.Generic;

namespace TNRD.Zeepkist.GTR.Database.Data.Entities;

public partial class Auth
: IEntity, global::JsonApiDotNetCore.Resources.IIdentifiable<int>
{
public Auth()
{
Expand All @@ -12,29 +10,37 @@ public Auth()
}

#region Generated Properties
public int Id { get; set; }

public int? User { get; set; }

public string? AccessToken { get; set; }

public string? AccessTokenExpiry { get; set; }

public string? RefreshToken { get; set; }

public string? RefreshTokenExpiry { get; set; }

public int? Type { get; set; }

public DateTime DateCreated { get; set; }

public DateTime DateUpdated { get; set; }

[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public int Id { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public int? IdUser { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public string? AccessToken { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public long? AccessTokenExpiry { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public string? RefreshToken { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public long? RefreshTokenExpiry { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public int? Type { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public global::System.DateTime DateCreated { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public global::System.DateTime? DateUpdated { get; set; }
#endregion

#region Generated Relationships
public virtual User? User1 { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasOneAttribute] public virtual global::TNRD.Zeepkist.GTR.Database.Data.Entities.User? User { get; set; }
#endregion

#region Generated IIdentifiable Properties
string global::JsonApiDotNetCore.Resources.IIdentifiable.StringId
{
get => Id.ToString();
set { }

Check warning on line 32 in Data/Entities/Auth.cs

View workflow job for this annotation

GitHub Actions / publish

Nullability of reference types in type of parameter 'value' doesn't match implemented member 'void IIdentifiable.StringId.set' (possibly because of nullability attributes).
}
string global::JsonApiDotNetCore.Resources.IIdentifiable.LocalId
{
get => null;
set { }

Check warning on line 37 in Data/Entities/Auth.cs

View workflow job for this annotation

GitHub Actions / publish

Nullability of reference types in type of parameter 'value' doesn't match implemented member 'void IIdentifiable.LocalId.set' (possibly because of nullability attributes).
}
int global::JsonApiDotNetCore.Resources.IIdentifiable<int>.Id
{
get => Id;
set { }
}
#endregion

}
41 changes: 25 additions & 16 deletions Data/Entities/Favorite.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System;
using System.Collections.Generic;

namespace TNRD.Zeepkist.GTR.Database.Data.Entities;

public partial class Favorite
: IEntity, global::JsonApiDotNetCore.Resources.IIdentifiable<int>
{
public Favorite()
{
Expand All @@ -12,23 +10,34 @@ public Favorite()
}

#region Generated Properties
public int Id { get; set; }

public int User { get; set; }

public DateTime DateCreated { get; set; }

public DateTime? DateUpdated { get; set; }

public int Level { get; set; }

[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public int Id { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public int IdUser { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public global::System.DateTime DateCreated { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public global::System.DateTime? DateUpdated { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public int IdLevel { get; set; }
#endregion

#region Generated Relationships
public virtual LevelMetadata LevelLevelMetadata { get; set; } = null!;

public virtual User User1 { get; set; } = null!;
[global::JsonApiDotNetCore.Resources.Annotations.HasOneAttribute] public virtual global::TNRD.Zeepkist.GTR.Database.Data.Entities.Level Level { get; set; } = null!;
[global::JsonApiDotNetCore.Resources.Annotations.HasOneAttribute] public virtual global::TNRD.Zeepkist.GTR.Database.Data.Entities.User User { get; set; } = null!;
#endregion

#region Generated IIdentifiable Properties
string global::JsonApiDotNetCore.Resources.IIdentifiable.StringId
{
get => Id.ToString();
set { }

Check warning on line 29 in Data/Entities/Favorite.cs

View workflow job for this annotation

GitHub Actions / publish

Nullability of reference types in type of parameter 'value' doesn't match implemented member 'void IIdentifiable.StringId.set' (possibly because of nullability attributes).
}
string global::JsonApiDotNetCore.Resources.IIdentifiable.LocalId
{
get => null;
set { }

Check warning on line 34 in Data/Entities/Favorite.cs

View workflow job for this annotation

GitHub Actions / publish

Nullability of reference types in type of parameter 'value' doesn't match implemented member 'void IIdentifiable.LocalId.set' (possibly because of nullability attributes).
}
int global::JsonApiDotNetCore.Resources.IIdentifiable<int>.Id
{
get => Id;
set { }
}
#endregion

}
88 changes: 88 additions & 0 deletions Data/Entities/Level.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
namespace TNRD.Zeepkist.GTR.Database.Data.Entities;

public partial class Level
: IEntity, global::JsonApiDotNetCore.Resources.IIdentifiable<int>
{
public Level()
{
#region Generated Constructor
Favorites = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.Favorite>();
LevelItems = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.LevelItem>();
LevelMetadata = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.LevelMetadata>();
LevelPoints = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.LevelPoints>();
PersonalBestDailies = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.PersonalBestDaily>();
PersonalBestGlobals = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.PersonalBestGlobal>();
PersonalBestMonthlies = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.PersonalBestMonthly>();
PersonalBestQuarterlies = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.PersonalBestQuarterly>();
PersonalBestWeeklies = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.PersonalBestWeekly>();
PersonalBestYearlies = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.PersonalBestYearly>();
Records = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.Record>();
StatsDailies = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.StatsDaily>();
StatsGlobals = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.StatsGlobal>();
StatsMonthlies = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.StatsMonthly>();
StatsQuarterlies = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.StatsQuarterly>();
StatsWeeklies = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.StatsWeekly>();
StatsYearlies = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.StatsYearly>();
Upvotes = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.Upvote>();
WorldRecordDailies = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.WorldRecordDaily>();
WorldRecordGlobals = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.WorldRecordGlobal>();
WorldRecordMonthlies = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.WorldRecordMonthly>();
WorldRecordQuarterlies = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.WorldRecordQuarterly>();
WorldRecordWeeklies = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.WorldRecordWeekly>();
WorldRecordYearlies = new global::System.Collections.Generic.HashSet<TNRD.Zeepkist.GTR.Database.Data.Entities.WorldRecordYearly>();
#endregion
}

#region Generated Properties
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public int Id { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public string Hash { get; set; } = null!;
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public global::System.DateTime DateCreated { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public global::System.DateTime? DateUpdated { get; set; }
#endregion

#region Generated Relationships
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.Favorite> Favorites { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.LevelItem> LevelItems { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.LevelMetadata> LevelMetadata { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.LevelPoints> LevelPoints { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.PersonalBestDaily> PersonalBestDailies { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.PersonalBestGlobal> PersonalBestGlobals { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.PersonalBestMonthly> PersonalBestMonthlies { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.PersonalBestQuarterly> PersonalBestQuarterlies { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.PersonalBestWeekly> PersonalBestWeeklies { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.PersonalBestYearly> PersonalBestYearlies { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.Record> Records { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.StatsDaily> StatsDailies { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.StatsGlobal> StatsGlobals { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.StatsMonthly> StatsMonthlies { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.StatsQuarterly> StatsQuarterlies { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.StatsWeekly> StatsWeeklies { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.StatsYearly> StatsYearlies { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.Upvote> Upvotes { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.WorldRecordDaily> WorldRecordDailies { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.WorldRecordGlobal> WorldRecordGlobals { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.WorldRecordMonthly> WorldRecordMonthlies { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.WorldRecordQuarterly> WorldRecordQuarterlies { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.WorldRecordWeekly> WorldRecordWeeklies { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.WorldRecordYearly> WorldRecordYearlies { get; set; }
#endregion

#region Generated IIdentifiable Properties
string global::JsonApiDotNetCore.Resources.IIdentifiable.StringId
{
get => Id.ToString();
set { }
}
string global::JsonApiDotNetCore.Resources.IIdentifiable.LocalId
{
get => null;
set { }
}
int global::JsonApiDotNetCore.Resources.IIdentifiable<int>.Id
{
get => Id;
set { }
}
#endregion

}
72 changes: 36 additions & 36 deletions Data/Entities/LevelItem.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System;
using System.Collections.Generic;

namespace TNRD.Zeepkist.GTR.Database.Data.Entities;

public partial class LevelItem
: IEntity, global::JsonApiDotNetCore.Resources.IIdentifiable<int>
{
public LevelItem()
{
Expand All @@ -12,43 +10,45 @@ public LevelItem()
}

#region Generated Properties
public int Id { get; set; }

public string Name { get; set; } = null!;

public string ImageUrl { get; set; } = null!;

public DateTime CreatedAt { get; set; }

public DateTime UpdatedAt { get; set; }

public decimal WorkshopId { get; set; }

public decimal AuthorId { get; set; }

public string FileHash { get; set; } = null!;

public string FileUrl { get; set; } = null!;

public string FileAuthor { get; set; } = null!;

public string FileUid { get; set; } = null!;

public int? ReplacedBy { get; set; }

public bool Deleted { get; set; }

public int MetadataId { get; set; }

public DateTime DateCreated { get; set; }

public DateTime? DateUpdated { get; set; }

[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public int Id { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public int IdLevel { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public decimal WorkshopId { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public decimal AuthorId { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public string Name { get; set; } = null!;
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public string ImageUrl { get; set; } = null!;
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public string FileAuthor { get; set; } = null!;
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public string FileUid { get; set; } = null!;
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public float ValidationTimeAuthor { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public float ValidationTimeGold { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public float ValidationTimeSilver { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public float ValidationTimeBronze { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public bool Deleted { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public global::System.DateTime CreatedAt { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public global::System.DateTime UpdatedAt { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public global::System.DateTime DateCreated { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public global::System.DateTime? DateUpdated { get; set; }
#endregion

#region Generated Relationships
public virtual LevelMetadata MetadataLevelMetadata { get; set; } = null!;
[global::JsonApiDotNetCore.Resources.Annotations.HasOneAttribute] public virtual global::TNRD.Zeepkist.GTR.Database.Data.Entities.Level Level { get; set; } = null!;
#endregion

#region Generated IIdentifiable Properties
string global::JsonApiDotNetCore.Resources.IIdentifiable.StringId
{
get => Id.ToString();
set { }
}
string global::JsonApiDotNetCore.Resources.IIdentifiable.LocalId
{
get => null;
set { }
}
int global::JsonApiDotNetCore.Resources.IIdentifiable<int>.Id
{
get => Id;
set { }
}
#endregion

}
Loading

0 comments on commit 0925ceb

Please sign in to comment.