refactor(core): move identity models from API to Core
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
namespace FiscalOS.API.Identity;
|
||||
|
||||
internal sealed class RefreshToken
|
||||
{
|
||||
public Guid Id { get; init; }
|
||||
|
||||
public Guid UserId { get; init; }
|
||||
public User User { get; init; } = new();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace FiscalOS.Core.Identity;
|
||||
|
||||
public sealed class RefreshToken : Entity
|
||||
{
|
||||
public Guid UserId { get; init; }
|
||||
public User User { get; init; } = new();
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
namespace FiscalOS.API.Identity;
|
||||
namespace FiscalOS.Core.Identity;
|
||||
|
||||
internal sealed class User
|
||||
public sealed class User : Entity
|
||||
{
|
||||
public Guid Id { get; init; }
|
||||
public string Username { get; init; } = string.Empty;
|
||||
public string HashedPassword { get; init; } = string.Empty;
|
||||
|
||||
public ICollection<RefreshToken> RefreshTokens { get; init; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user