using System.ComponentModel.DataAnnotations;

namespace JobsMedical.Web.Models;

/// <summary>A doctor expressing interest in a shift. MVP = lightweight "interested" + contact handoff.</summary>
public class Application
{
    public int Id { get; set; }

    public int ShiftId { get; set; }
    public Shift Shift { get; set; } = null!;

    public int DoctorId { get; set; }                // User.Id of the doctor
    public User Doctor { get; set; } = null!;

    public ApplicationStatus Status { get; set; } = ApplicationStatus.Interested;

    [MaxLength(500)]
    public string? Message { get; set; }             // پیام اختیاری پزشک

    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
}
