using System.ComponentModel.DataAnnotations;

namespace JobsMedical.Web.Models;

/// <summary>
/// A healthcare staff role the platform serves. The taxonomy spans all of کادر درمان —
/// doctors, nurses, midwives, technicians — not just GPs. Used to tag shifts/openings and
/// to match people to opportunities.
/// </summary>
public class Role
{
    public int Id { get; set; }

    [Required, MaxLength(100)]
    public string Name { get; set; } = "";        // مثل «پزشک عمومی»، «پرستار»، «ماما»

    [MaxLength(50)]
    public string Category { get; set; } = "";     // گروه: پزشک / پرستار / ماما / تکنسین

    public int SortOrder { get; set; }

    public bool IsActive { get; set; } = true;

    public ICollection<Shift> Shifts { get; set; } = new List<Shift>();
}
