54 lines
2.1 KiB
C#
54 lines
2.1 KiB
C#
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; }
|
|
//کد ارجاع
|
|
public string ReferralCode { get; set; }
|
|
//موبایل فعال شده؟
|
|
public bool IsMobileVerified { get; set; }
|
|
//تاریخ فعال سازی موبایل
|
|
public DateTime? MobileVerifiedAt { get; set; }
|
|
//قوانین پذیرفته شده؟
|
|
public bool IsRulesAccepted { get; set; }
|
|
//تاریخ پذیرش قوانین
|
|
public DateTime? RulesAcceptedAt { get; set; }
|
|
//اعلان ایمیل
|
|
public bool EmailNotifications { get; set; }
|
|
//اعلان پیامک
|
|
public bool SmsNotifications { get; set; }
|
|
//اعلان پوش
|
|
public bool PushNotifications { get; set; }
|
|
//تاریخ تولد
|
|
public DateTime? BirthDate { get; set; }
|
|
//پسوورد هش کاربر
|
|
public string? HashPassword { get; set; }
|
|
//UserAddress Collection Navigation Reference
|
|
public virtual ICollection<UserAddress> UserAddresss { get; set; }
|
|
//UserRole Collection Navigation Reference
|
|
public virtual ICollection<UserRole> UserRoles { get; set; }
|
|
//UserCarts Collection Navigation Reference
|
|
public virtual ICollection<UserCarts> UserCartss { get; set; }
|
|
//User Collection Navigation Reference
|
|
public virtual ICollection<User> Users { get; set; }
|
|
//UserContract Collection Navigation Reference
|
|
public virtual ICollection<UserContract> UserContracts { get; set; }
|
|
//UserOrder Collection Navigation Reference
|
|
public virtual ICollection<UserOrder> UserOrders { get; set; }
|
|
//UserWallet Collection Navigation Reference
|
|
public virtual ICollection<UserWallet> UserWallets { get; set; }
|
|
}
|