Files
hamkadr/src/JobsMedical.Web/Models/DoctorProfile.cs
T

32 lines
1.0 KiB
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
namespace JobsMedical.Web.Models;
/// <summary>Profile for a doctor. Trust signal is the نظام پزشکی (medical council) number.</summary>
public class DoctorProfile
{
public int Id { get; set; }
public int UserId { get; set; }
public User User { get; set; } = null!;
public int? RoleId { get; set; } // نقش این فرد (پزشک/پرستار/ماما/...)
public Role? Role { get; set; }
[MaxLength(20)]
public string? LicenseNo { get; set; } // شماره نظام پزشکی/پرستاری
[MaxLength(100)]
public string Specialty { get; set; } = "پزشک عمومی"; // جزئیات تخصص (اختیاری)
public int? CityId { get; set; }
public City? City { get; set; }
public int YearsExperience { get; set; }
[MaxLength(1000)]
public string? Bio { get; set; }
public bool IsVerified { get; set; } // تأیید نظام پزشکی توسط ادمین
}