2025-09-27 08:46:36 +03:30
|
|
|
namespace CMSMicroservice.Domain.Entities;
|
|
|
|
|
//کاربر
|
|
|
|
|
public class User : BaseAuditableEntity
|
|
|
|
|
{
|
|
|
|
|
//نام
|
|
|
|
|
public string? FirstName { get; set; }
|
|
|
|
|
//نام خانوادگی
|
|
|
|
|
public string? LastName { get; set; }
|
|
|
|
|
//شماره موبایل
|
|
|
|
|
public string Mobile { get; set; }
|
|
|
|
|
//کد ملی
|
|
|
|
|
public string? NationalCode { get; set; }
|
|
|
|
|
//آدرس آواتار
|
|
|
|
|
public string? AvatarPath { get; set; }
|
|
|
|
|
//شناسه والد
|
|
|
|
|
public long? ParentId { get; set; }
|
|
|
|
|
//User Navigation Property
|
|
|
|
|
public virtual User? Parent { get; set; }
|
2025-09-27 23:48:41 +03:30
|
|
|
//کد ارجاع
|
|
|
|
|
public string ReferralCode { get; set; }
|
|
|
|
|
//موبایل فعال شده؟
|
|
|
|
|
public bool IsMobileVerified { get; set; }
|
|
|
|
|
//تاریخ فعال سازی موبایل
|
|
|
|
|
public DateTime? MobileVerifiedAt { get; set; }
|
2025-09-28 06:30:13 +03:30
|
|
|
//قوانین پذیرفته شده؟
|
|
|
|
|
public bool IsRulesAccepted { get; set; }
|
|
|
|
|
//تاریخ پذیرش قوانین
|
|
|
|
|
public DateTime? RulesAcceptedAt { get; set; }
|
2025-10-13 08:19:47 +03:30
|
|
|
//اعلان ایمیل
|
|
|
|
|
public bool EmailNotifications { get; set; }
|
|
|
|
|
//اعلان پیامک
|
|
|
|
|
public bool SmsNotifications { get; set; }
|
|
|
|
|
//اعلان پوش
|
|
|
|
|
public bool PushNotifications { get; set; }
|
|
|
|
|
//تاریخ تولد
|
|
|
|
|
public DateTime? BirthDate { get; set; }
|
2025-09-27 08:46:36 +03:30
|
|
|
//UserAddress Collection Navigation Reference
|
|
|
|
|
public virtual ICollection<UserAddress> UserAddresss { get; set; }
|
|
|
|
|
//UserRole Collection Navigation Reference
|
|
|
|
|
public virtual ICollection<UserRole> UserRoles { get; set; }
|
2025-10-13 08:19:47 +03:30
|
|
|
//UserOrder Collection Navigation Reference
|
|
|
|
|
public virtual ICollection<UserOrder> UserOrders { get; set; }
|
2025-09-27 23:48:41 +03:30
|
|
|
//User Collection Navigation Reference
|
|
|
|
|
public virtual ICollection<User> Users { get; set; }
|
2025-09-27 08:46:36 +03:30
|
|
|
}
|