using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Entities
{
    /// <summary>
    /// define a mathematical chapter or thematic
    /// properties :
    ///     Id : identifier in the database
    ///     Name : name of the chapter
    /// </summary>
    [Table("Chapter")]
    public class ChapterEntity
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        [Required]
        public string Name { get; set; } = null!;
    }
}
