Skip to content

Commit

Permalink
Auth is not for jsonapi
Browse files Browse the repository at this point in the history
  • Loading branch information
Thundernerd committed Aug 25, 2024
1 parent 9348dc2 commit 875da46
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 31 deletions.
43 changes: 14 additions & 29 deletions Data/Entities/Auth.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace TNRD.Zeepkist.GTR.Database.Data.Entities;

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

#region Generated Properties
[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.DateTimeOffset DateCreated { get; set; }
[global::JsonApiDotNetCore.Resources.Annotations.AttrAttribute] public global::System.DateTimeOffset? DateUpdated { get; set; }

public int Id { get; set; }
public int? IdUser { get; set; }
public string? AccessToken { get; set; }
public long? AccessTokenExpiry { get; set; }
public string? RefreshToken { get; set; }
public long? RefreshTokenExpiry { get; set; }
public int? Type { get; set; }
public global::System.DateTimeOffset DateCreated { get; set; }
public global::System.DateTimeOffset? DateUpdated { get; set; }

#endregion

#region Generated Relationships
[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 { }
}
string global::JsonApiDotNetCore.Resources.IIdentifiable.LocalId
{
get => null;
set { }
}
int global::JsonApiDotNetCore.Resources.IIdentifiable<int>.Id
{
get => Id;
set { }
}
#endregion
public virtual global::TNRD.Zeepkist.GTR.Database.Data.Entities.User? User { get; set; }

#endregion
}
2 changes: 1 addition & 1 deletion Data/Entities/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public User()
#endregion

#region Generated Relationships
[global::JsonApiDotNetCore.Resources.Annotations.HasManyAttribute] public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.Auth> Auths { get; set; }
public virtual global::System.Collections.Generic.ICollection<TNRD.Zeepkist.GTR.Database.Data.Entities.Auth> Auths { get; set; }
[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.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; }
Expand Down
2 changes: 1 addition & 1 deletion Zeepkist.GTR.Database.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<AssemblyName>TNRD.Zeepkist.GTR.Database</AssemblyName>
<RootNamespace>TNRD.Zeepkist.GTR.Database</RootNamespace>
<Version>5.1.1</Version>
<Version>5.1.2</Version>
<LangVersion>default</LangVersion>
</PropertyGroup>

Expand Down

0 comments on commit 875da46

Please sign in to comment.