27 lines
1.0 KiB
C#
27 lines
1.0 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; }
|
||
|
|
//User Collection Navigation Reference
|
||
|
|
public virtual ICollection<User> Users { get; set; }
|
||
|
|
//UserAddress Collection Navigation Reference
|
||
|
|
public virtual ICollection<UserAddress> UserAddresss { get; set; }
|
||
|
|
//UserOrder Collection Navigation Reference
|
||
|
|
public virtual ICollection<UserOrder> UserOrders { get; set; }
|
||
|
|
//UserRole Collection Navigation Reference
|
||
|
|
public virtual ICollection<UserRole> UserRoles { get; set; }
|
||
|
|
}
|