Files
FATrace/FATrace.Model/TbUser.cs
2026-01-19 12:40:45 +08:00

53 lines
1.4 KiB
C#

using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FATrace.Model
{
/// <summary>
/// 用户登录
/// </summary>
[Table(Name = "dbo.TbUser")]
public class TbUser
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
///// <summary>
///// 机器名称
///// </summary>
//[Column(Name = "MachineName", IsNullable = true, StringLength = 20)]
//public string MachineName { get; set; }
/// <summary>
/// 用户名称
/// </summary>
[Column(Name = "UserName", IsNullable = false, StringLength = 20)]
public string UserName { get; set; }
/// <summary>
/// 密码
/// </summary>
[Column(Name = "Password", IsNullable = false, StringLength = 20)]
public string Password { get; set; }
/// <summary>
/// 等级
/// </summary>
[Column(Name = "AccessLevel", IsNullable = false, StringLength = 20)]
public string AccessLevel { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }
}
}