Files
2026-06-02 20:48:16 +03:30

53 lines
1.7 KiB
C#

using Complex.Domain.Commons;
namespace Complex.Domain.Entities
{
[Auditable]
public class Unit : BaseEntity<Guid>
{
public Guid ComplexId { set; get; }
public string UnitName { set; get; }
public virtual ComplexEntity Complex { set; get; }
/// <summary>
/// ساکن
/// </summary>
public string? OwnerId { set; get; }
/// <summary>
/// ساکن
/// </summary>
public virtual Person? Owner { set; get; }
/// <summary>
/// شماره مستاجر
/// </summary>
public string? TenantId { set; get; }
/// <summary>
/// مستاجر
/// </summary>
public virtual Person? Tenant { set; get; }
public bool IsActive { set; get; }
/// <summary>
/// متراژ کل
/// </summary>
public int? AreaMeter { set; get; }
/// <summary>
/// بدهی از قبل
/// </summary>
//public int? RemainingAmount { set; get; }
//public string? LastPaymentDate { set; get; }
public string? EmergencyTels { set; get; }
public int? ParkingAreaMeter { set; get; }
/// <summary>
/// متراژ حیاط
/// </summary>
public int? YardMeter { set; get; }
public string? PublicState { set; get; }
public int? StateId { set; get; }
public virtual UnitState State { set; get; }
public int? Floor { set; get; }
//public string? UnitId { set; get; }
public string? ManagerDescription { set; get; }
public virtual ICollection<CostCycle> CostCycles { set; get; }
}
}