53 lines
1.4 KiB
C#
53 lines
1.4 KiB
C#
|
|
namespace CMSMicroservice.Domain.Entities.Network;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// تعادلهای هفتگی شبکه باینری
|
||
|
|
/// </summary>
|
||
|
|
public class NetworkWeeklyBalance : BaseAuditableEntity
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// شناسه کاربر
|
||
|
|
/// </summary>
|
||
|
|
public long UserId { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// User Navigation Property
|
||
|
|
/// </summary>
|
||
|
|
public virtual User User { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// شماره هفته (مثال: "2025-W48")
|
||
|
|
/// </summary>
|
||
|
|
public string WeekNumber { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// تعداد تعادل شاخه چپ در این هفته
|
||
|
|
/// </summary>
|
||
|
|
public int LeftLegBalances { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// تعداد تعادل شاخه راست در این هفته
|
||
|
|
/// </summary>
|
||
|
|
public int RightLegBalances { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// امتیاز کاربر: MIN(LeftLegBalances, RightLegBalances)
|
||
|
|
/// </summary>
|
||
|
|
public int TotalBalances { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// مبلغی که از این کاربر به استخر هفتگی اضافه شد (ریال)
|
||
|
|
/// </summary>
|
||
|
|
public long WeeklyPoolContribution { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// زمان محاسبه توسط Worker
|
||
|
|
/// </summary>
|
||
|
|
public DateTime? CalculatedAt { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// آیا منقضی شده (بعد از توزیع کمیسیون)
|
||
|
|
/// </summary>
|
||
|
|
public bool IsExpired { get; set; }
|
||
|
|
}
|