using System.ComponentModel.DataAnnotations;

namespace ProjeLibrary.Model
{
    public class User
    {
        [Key]
        public int Id { get; set; }

        [Required]
        [StringLength(50)]

        public string Name { get; set; } = string.Empty;

        [Required]
        [StringLength(50)]
        public string SurName { get; set; } = string.Empty;

        [Required]
        public string UserName { get; set; } = string.Empty;

        [Required]
        public string Password { get; set; } = string.Empty;

        public string Email { get; set; } = string.Empty;

        public bool IsActive { get; set; }

    }
}
