feat(giving): add GivingCategory, OfferingSession, Giving entities + EF config
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using ROLAC.API.Entities.Base;
|
||||
|
||||
namespace ROLAC.API.Entities;
|
||||
|
||||
public class Giving : AuditableEntity
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int? MemberId { get; set; }
|
||||
public int GivingCategoryId { get; set; }
|
||||
public int? OfferingSessionId { get; set; }
|
||||
public decimal Amount { get; set; }
|
||||
public string PaymentMethod { get; set; } = "Cash"; // Cash|Check|Zelle|PayPal|Other
|
||||
public string? CheckNumber { get; set; }
|
||||
public string? ZelleReferenceCode { get; set; }
|
||||
public string? PayPalTransactionId{ get; set; }
|
||||
public DateOnly GivingDate { get; set; }
|
||||
public bool IsAnonymous { get; set; }
|
||||
public string? Notes { get; set; }
|
||||
|
||||
public Member? Member { get; set; }
|
||||
public GivingCategory? GivingCategory { get; set; }
|
||||
public OfferingSession? OfferingSession { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using ROLAC.API.Entities.Base;
|
||||
|
||||
namespace ROLAC.API.Entities;
|
||||
|
||||
public class GivingCategory : AuditableEntity
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name_en { get; set; } = null!;
|
||||
public string? Name_zh { get; set; }
|
||||
public string? Description_en { get; set; }
|
||||
public string? Description_zh { get; set; }
|
||||
public bool IsActive { get; set; } = true;
|
||||
public int SortOrder { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using ROLAC.API.Entities.Base;
|
||||
|
||||
namespace ROLAC.API.Entities;
|
||||
|
||||
public class OfferingSession : AuditableEntity
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public DateOnly SessionDate { get; set; }
|
||||
public string Status { get; set; } = "Draft"; // Draft | Submitted | Reconciled
|
||||
public decimal CashTotal { get; set; }
|
||||
public decimal CheckTotal { get; set; }
|
||||
public decimal SystemTotal { get; set; }
|
||||
public decimal Difference { get; set; }
|
||||
public string? Notes { get; set; }
|
||||
public DateTimeOffset? SubmittedAt { get; set; }
|
||||
public string? SubmittedBy { get; set; }
|
||||
public DateTimeOffset? ReconciledAt { get; set; }
|
||||
public string? ReconciledBy { get; set; }
|
||||
|
||||
public List<Giving> Givings { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user