using System.ComponentModel.DataAnnotations;

namespace AspNetCoreMVC.Models
{
    public class User
    {
        [Required]
        public int Id { get; set; }

        [StringLength(100, MinimumLength = 2)]
        [Required] 
        public string Name { get; set; }

        public string Phone { get; set; }
        public string Address { get; set; }
    }
}
