using System.ComponentModel.DataAnnotations;

namespace WorkManagementTool.Data.Entities
{
    public class SchoolSubject
    {
        public int Id { get; set; }
        //[Required]
        //[MaxLength(100, ErrorMessage = "Name must be less than 100 caracters")]
        //[MinLength(1, ErrorMessage = "Name must containes more than 1 caracters")]
        public string Name { get; set; } = null!;
        [MaxLength(500, ErrorMessage = "Description must be less than 500 caracters")]
        public string? Description { get; set; }
        public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
        public bool Deleted { get; set; } = false;
        public ApplicationUser CreatedBy { get; set; } = null!;
        public List<Homework>? Homeworks { get; set; }
    }
}
