using planli.backend.Enums;
using System.ComponentModel.DataAnnotations;

namespace planli.backend.planli.db.Model
{
    public class ToDo
    {
        [Key]
        public int Id { get; set; }
        
        [Required]
        public required string Title { get; set; }

        [Required]
        public required string Description { get; set; }

        [Required]
        public required DateOnly CreatedAt { get; set; }

        [Required]
        public required ToDoPriority Priority { get; set; }

        [Required]
        public required CurrentToDoStatus Status { get; set; }
        
        [Required]
        public required bool IsRecurring { get; set; }

        public Recurrence? Recurrence { get; set; }

        [Required]
        public int BoardId { get; set; }

        [Required]
        public Board Board { get; set; }

        [Required]
        public int UserId { get; set; }

        [Required]
        public User User { get; set; }

    }
}
