first commit
This commit is contained in:
41
Complex.Domain/Entities/Transaction.cs
Normal file
41
Complex.Domain/Entities/Transaction.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using Complex.Domain.Commons;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Complex.Domain.Entities
|
||||
{
|
||||
[Auditable]
|
||||
public class Transaction : BaseEntity<long>
|
||||
{
|
||||
public int? TransactionTitleId { set; get; }
|
||||
public IncomeCostTitle? TransactionTitle { set; get; }
|
||||
[MaxLength(10)]
|
||||
public string TransactionPersianDate { set; get; }
|
||||
public DateTime TransactionDate { set; get; }
|
||||
public long Amount { set; get; } = 0;
|
||||
public string? Description { set; get; }
|
||||
public Guid? CostCycleId { set; get; }
|
||||
//افزونگی برای شارژ
|
||||
//public Guid ChargeTypeId { set; get; }
|
||||
/// <summary>
|
||||
/// null یعنی شارژ
|
||||
/// </summary>
|
||||
//public int? ChargeTypeId { set; get; }
|
||||
public virtual CostCycle? CostCycle { set; get; }
|
||||
public Guid? UnitId { set; get; }
|
||||
public virtual Unit? Unit { set; get; }
|
||||
//public string? TrackingCode { set; get; }
|
||||
//public long Remaining { set; get; } = 0;
|
||||
|
||||
/// <summary>
|
||||
///شماره فیش. اگر با فیش چیزی واریز شده است
|
||||
/// </summary>
|
||||
public string? FicheId { set; get; }
|
||||
|
||||
public Guid ComplexId { set; get; }
|
||||
public long UnitCostId { set; get; }
|
||||
public virtual UnitCost? UnitCost { set; get; }
|
||||
public string PersonId { set; get; }
|
||||
public Person Person { set; get; }
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user