Files
2025-06-03 17:27:51 +08:00

55 lines
1.4 KiB
C#

using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Data.SqlTypes;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace DynStatDisk.App.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 = false, 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; }
}
}