first commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using Fitness_core_BE.Models.Enums;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Fitness_core_BE.Models
|
||||
{
|
||||
public class WalletLedgerEntry
|
||||
{
|
||||
[Key]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public Guid FKWalletId { get; set; }
|
||||
[ForeignKey("FKWalletId")]
|
||||
public virtual ClientWallet Wallet { get; set; }
|
||||
|
||||
public WalletEntryType EntryType { get; set; }
|
||||
public decimal Amount { get; set; }
|
||||
|
||||
public Guid? RelatedCustomerInvoiceId { get; set; }
|
||||
[ForeignKey("RelatedCustomerInvoiceId")]
|
||||
public virtual CustomerInvoice? RelatedCustomerInvoice { get; set; }
|
||||
|
||||
public string? Description { get; set; }
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user