feat(core): add base entity and password hashing abstractions

This commit is contained in:
Stevan Freeborn
2026-02-03 04:38:40 -06:00
parent 12ae1dc33a
commit e66911810f
3 changed files with 26 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
namespace FiscalOS.Core.Data;
public abstract class Entity
{
public Guid Id { get; init; }
public DateTimeOffset CreatedAt { get; private set; }
public DateTimeOffset UpdatedAt { get; private set; }
public void SetCreatedAt(DateTimeOffset createdAt)
{
CreatedAt = createdAt;
}
public void SetUpdatedAt(DateTimeOffset updatedAt)
{
UpdatedAt = updatedAt;
}
}
@@ -0,0 +1,7 @@
namespace FiscalOS.Core.Identity;
public interface IPasswordHasher
{
string Hash(string password);
bool Verify(string providedPassword, string hashedPassword);
}
+1
View File
@@ -0,0 +1 @@
global using FiscalOS.Core.Data;