using System;
using System.ComponentModel.DataAnnotations;

namespace Entities.DTO
{
    public class ClassDto
    {
        public Guid Id { get; set; }

        public Guid GradeId { get; set; }

        public GradeDto Grade { get; set; }

        [Required(ErrorMessage = "班级名称是必填项。")]
        [StringLength(30, ErrorMessage = "班级名称不能超过 30 个字符。")]
        public string ClassName { get; set; }

        public byte Index { get; set; }

        public Guid? HeadTeacherId { get; set; }

        public DateTime CreatedAt { get; set; }
        public DateTime UpdatedAt { get; set; }
    }
}
