FalconSSO/FAuth/DataBase/Tables/FUser.cs

37 lines
939 B
C#
Raw Normal View History

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