251029
This commit is contained in:
52
FATrace.Model/TbUser.cs
Normal file
52
FATrace.Model/TbUser.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
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 = 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user