Files
CMS/src/CMSMicroservice.Domain/Entities/User.cs

50 lines
1.9 KiB
C#
Raw Normal View History

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; }
//UserAddress Collection Navigation Reference
public virtual ICollection<UserAddress> UserAddresss { get; set; }
//UserRole Collection Navigation Reference
public virtual ICollection<UserRole> UserRoles { get; set; }
//User Collection Navigation Reference
public virtual ICollection<User> Users { get; set; }
//UserWallet Collection Navigation Reference
public virtual ICollection<UserWallet> UserWallets { get; set; }
//UserCarts Collection Navigation Reference
public virtual ICollection<UserCarts> UserCartss { get; set; }
//UserOrder Collection Navigation Reference
public virtual ICollection<UserOrder> UserOrders { get; set; }
}