FalconSSO/FAuth.Database/Tables/FUser.cs

47 lines
1.3 KiB
C#
Raw Normal View History

2020-03-30 16:10:51 +08:00
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
2020-03-30 16:10:51 +08:00
namespace FAuth.DataBase.Tables
{
/// <summary>
/// 用户信息
/// </summary>
[Table("FUser")]
2020-03-30 16:10:51 +08:00
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>
2020-04-13 08:35:54 +08:00
/// 账号状态
/// </summary>
public FUserStatusEnum Status { get; set; }
/// <summary>
/// 上次登录时间
/// </summary>
public DateTimeOffset? LastLoginDatetime { get; set; }
2020-04-13 08:35:54 +08:00
/// <summary>
/// 上次登出时间
/// </summary>
public DateTimeOffset? LastLogoutDatetime { get; set; }
2020-03-30 16:10:51 +08:00
}
}