using System.ComponentModel.DataAnnotations;
using MyPortal.Database.Models.Entity;
using MyPortal.Logic.Models.Structures;

namespace MyPortal.Logic.Models.Data.People
{
    public class EthnicityModel : LookupItemModel
    {
        public EthnicityModel(Ethnicity model) : base(model)
        {
            Code = model.Code;
        }

        [Required] [StringLength(10)] public string Code { get; set; }
    }
}