feat(expense-snapshot): add ExpenseSnapshot + ExpenseSnapshotLine entities

This commit is contained in:
Chris Chen
2026-06-25 14:55:50 -07:00
parent 5d03e42302
commit c5405a95c3
2 changed files with 40 additions and 0 deletions
@@ -0,0 +1,18 @@
using ROLAC.API.Entities.Base;
namespace ROLAC.API.Entities;
/// <summary>One category line of an <see cref="ExpenseSnapshot"/>, mirroring <see cref="ExpenseLine"/>.</summary>
public class ExpenseSnapshotLine : AuditableEntity
{
public int Id { get; set; }
public int SnapshotId { get; set; }
public int CategoryGroupId { get; set; }
public int SubCategoryId { get; set; }
public string? FunctionalClass { get; set; } // null = inherit Ministry.DefaultFunctionalClass
public decimal Amount { get; set; }
public string? Description { get; set; }
public ExpenseSnapshot? Snapshot { get; set; }
public ExpenseCategoryGroup? CategoryGroup { get; set; }
public ExpenseSubCategory? SubCategory { get; set; }
}