using Microsoft.AspNetCore.Identity;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Kimuser.Domain
{
    public class User: IdentityUser<int>
    {
        public DateTimeOffset CreatedTime { get; set; }

        public DateTimeOffset UpdatedTime { get; set; }

        public string Address { get; set; }


        public bool IsDeleted { get; set; }

        [MaxLength(256)]
        public string Password { get; set; }

        /// <summary>
        /// Họ và tên
        /// </summary>
        [MaxLength(256)]
        public string FullName { get; set; }

        /// <summary>
        /// Giới tính
        /// </summary>
        public Gender? Gender { get; set; }

        /// <summary>
        /// Liên hệ facebook
        /// </summary>
        public string FacebookContact { get; set; }

        /// <summary>
        /// Liên hệ zalo
        /// </summary>
        public string ZaloContact { get; set; }

        /// <summary>
        /// Ngày sinh
        /// </summary>
        public DateTimeOffset? DateOfBirth { get; set; }
    }

    public enum Gender
    {
        [Description("Nam")]
        Male = 10,
        [Description("Nũ")]
        Female = 20,
        [Description("Khác")]
        Other = 30
    }
}
