2020-03-30 16:10:51 +08:00
|
|
|
|
using System;
|
2020-04-10 18:15:11 +08:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2020-03-30 16:10:51 +08:00
|
|
|
|
|
|
|
|
|
namespace FAuth.DataBase.Tables
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 用户信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class FUser
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 用户流水编号
|
|
|
|
|
/// </summary>
|
2020-04-10 18:15:11 +08:00
|
|
|
|
[Key]
|
2020-03-30 16:10:51 +08:00
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 用户登录名
|
|
|
|
|
/// </summary>
|
2020-04-10 18:15:11 +08:00
|
|
|
|
[Required, MaxLength(20)]
|
2020-03-30 16:10:51 +08:00
|
|
|
|
public string UserName { get; set; }
|
|
|
|
|
/// <summary>
|
2020-04-10 18:15:11 +08:00
|
|
|
|
/// 用户姓名
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required, MaxLength(20)]
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
/// <summary>
|
2020-03-30 16:10:51 +08:00
|
|
|
|
/// 登录密码
|
|
|
|
|
/// </summary>
|
2020-04-10 18:15:11 +08:00
|
|
|
|
[Required, MaxLength(20)]
|
2020-03-30 16:10:51 +08:00
|
|
|
|
public string Password { get; set; }
|
2020-04-10 18:15:11 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 上次登录时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTimeOffset? LastLoginDatetime { get; set; }
|
2020-03-30 16:10:51 +08:00
|
|
|
|
}
|
|
|
|
|
}
|