refactor(core): move identity models from API to Core

This commit is contained in:
Stevan Freeborn
2026-02-02 04:45:56 -06:00
parent 81e5b9ed6a
commit 7a7ab90155
3 changed files with 10 additions and 12 deletions
@@ -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; } = [];
}