using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities.Auditing;
using ContractService.Authorization.Users;
using ContractService.Client;
using ContractService.Configuration;
using ContractService.LawFirm;
namespace ContractService.Lawyer
{
///
/// 律师信息
///
[Table("Ls_Lawyers")]
public class LawyerInfo:FullAuditedEntity
{
///
/// 律师编号
///
[MaxLength(50)]
public string Code { get; set; }
///
/// 律师姓名
///
[MaxLength(50)]
public string Name { get; set; }
///
/// 律师简介
///
[MaxLength(500)]
public string Profile { get; set; }
///
/// 电子邮箱
///
[MaxLength(50)]
public string Email { get; set; }
///
/// 出生日期
///
public DateTime? Birthday { get; set; }
///
/// 身份证号
///
[MaxLength(20)]
public string IdCard { get; set; }
///
/// 联系号码
///
[MaxLength(20)]
public string PhoneNumber { get; set; }
///
/// 备用号码
///
[MaxLength(20)]
public string PhoneNumber2 { get; set; }
///
/// 系统登陆账号
///
[MaxLength(20)]
public string UserName { get; set; }
///
/// 律所信息
///
[MaxLength(IwbConsts.PrimaryKey)]
public string LawFirmNo { get; set; }
[ForeignKey("LawFirmNo")]
public LawFirmInfo LawFirmInfo { get; set; }
///
/// 组织信息
///
[MaxLength(IwbConsts.PrimaryKey)]
public string OrganizationNo { get; set; }
[ForeignKey("OrganizationNo")]
public OrganizationInfo OrganizationInfo { get; set; }
[MaxLength(1000)]
public string Remark { get; set; }
[NotMapped]
public bool IsMaster { get; set; }
}
}