using Newtonsoft.Json;
using PropertyChanged;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BDU.Models
{
    [AddINotifyPropertyChangedInterface]
    public class UserModel
    {
        public UserModel()
        {

        }

        public UserModel(UserModel source)
        {
            UserId = source.UserId;
            UserName = source.UserName;
            UserAccount = source.UserAccount;
            PassWord = source.PassWord;
            Role = source.Role;
        }

        public Guid UserId { get; set; } = Guid.NewGuid();

        public string UserName { get; set; } = "";

        public string UserAccount { get; set; } = "";

        public string PassWord { get; set; }

        /// <summary>
        /// 0：用户；1：管理员；2：超级管理员
        /// </summary>
        public int Role { get; set; } = 0;

        public DateTime LoginTime { get; set; }

        public int LoginCount { get; set; }
    }
}
