using PARR.Domain.Constants;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PARR.Domain.Entities.Schedule
{
    /// <summary>
    /// Расписание ЕСПП: Повторять задачу
    /// </summary>
    [Table("EsppSchTypeSchedules", Schema = DatabaseSchemas.Schedule)]
    public class EsppSchTypeSchedule
    {
        [Key]
        public int Id { get; set; }

        public required string Name { get; set; }

        public required string Description { get; set; }

        public ICollection<EsppSchTypeConfig> EsppSchTypeConfigs { get; set; } = new HashSet<EsppSchTypeConfig>();
    }
}
