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

namespace PARR.Domain.Entities
{
    [Table("DistributionPeriodTypes", Schema = DatabaseSchemas.Schedule)]
    public class DistributionPeriodType
    {
        [Key]
        public required string Type { get; set; }

        public required string Description { get; set; }

        public ICollection<DistributionPeriod> Periods { get; set; } = new HashSet<DistributionPeriod>();
    }
}
