using System.ComponentModel.DataAnnotations;

namespace turf_tasker.Models;

public enum LawnCareEventType
{
    Mowing,
    Watering,
    Fertilizing,
    Aeration,
    WeedControl,
    Other
}

public enum MowingPattern
{
    Vertical,
    Horizontal,
    Diagonal,
    [Display(Name = "Opposite Diagonal")]
    OppositeDiagonal
}

public class LawnCareEvent
{
    [Key]
    public int Id { get; set; }

    [Required]
    [Display(Name = "Activity Type")]
    public LawnCareEventType EventType { get; set; }

    // --- THIS IS THE LINE TO CHECK ---
    // Make sure this property exists and is spelled correctly.
    [Required]
    [DataType(DataType.Date)]
    [Display(Name = "Date")]
    public DateTime EventDate { get; set; }
    // ---------------------------------

    [Display(Name = "Mowing Pattern")]
    public MowingPattern? MowingPattern { get; set; }

    [StringLength(500)]
    public string? Notes { get; set; }
}