using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using MyPortal.Database.Interfaces;

namespace MyPortal.Database.Models.Entity
{
    [Table("AttendanceCodeTypes")]
    public class AttendanceCodeType : BaseTypes.Entity, IReadOnlyEntity
    {
        public AttendanceCodeType()
        {
            Codes = new HashSet<AttendanceCode>();
        }

        [Column(Order = 2)]
        [Required]
        [StringLength(256)]
        public string Description { get; set; }

        public virtual ICollection<AttendanceCode> Codes { get; set; }
    }
}