22 lines
635 B
C#
22 lines
635 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Fitness_core_BE.Models
|
|
{
|
|
public class ClientWallet
|
|
{
|
|
[Key]
|
|
public Guid Id { get; set; }
|
|
|
|
public Guid FKClientId { get; set; }
|
|
[ForeignKey("FKClientId")]
|
|
public virtual Client Client { get; set; }
|
|
|
|
public decimal Balance { get; set; } = 0;
|
|
public string Currency { get; set; } = "LKR";
|
|
public DateTime? LastPayoutDate { get; set; }
|
|
|
|
public virtual ICollection<WalletLedgerEntry> LedgerEntries { get; set; } = new List<WalletLedgerEntry>();
|
|
}
|
|
}
|