Files
Complex/Complex.Domain/Entities/Person.cs
2026-06-02 20:48:16 +03:30

33 lines
994 B
C#

using Complex.Domain.Commons;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Complex.Domain.Entities
{
[Auditable]
public class Person : BaseEntity<string>
{
//[Key]
//public string MobileNumber { set; get; }
public ICollection<UserToken> UserTokens { get; set; }
public string? FirstName { get; set; }
public string? LastName { get; set; }
public byte? Gender { set;get; }
//public int? MobileCode { set;get; }
public byte[]? Avatar { set; get; }
public bool IsActive { set; get; } = true;
}
public class ComplexPerson : BaseEntity<int>
{
public Guid ComplexId { set; get; }
//public virtual ComplexEntity Complex { set; get; }
public string? PersonMobileNumberId { set; get; }
public Person? PersonMobileNumber { set; get; }
}
}