using System.ComponentModel.DataAnnotations.Schema; namespace Distribution.Models { public class StoreCreditMovement : Template { public Guid FK_StoreId { get; set; } [ForeignKey("FK_StoreId")] public Store? Store { get; set; } public StoreCreditMovementDirection Direction { get; set; } public decimal Amount { get; set; } public Guid? FK_InvoiceId { get; set; } [ForeignKey("FK_InvoiceId")] public Invoice? Invoice { get; set; } public Guid? FK_PaymentId { get; set; } [ForeignKey("FK_PaymentId")] public Payment? Payment { get; set; } public DateTime OccurredAt { get; set; } = DateTime.Now; public Guid? RecordedBy { get; set; } public string? Notes { get; set; } } }