Files
CapMachine/CapMachine.Model/User.cs
2024-12-18 15:50:21 +08:00

47 lines
1.1 KiB
C#

using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Model
{
/// <summary>
/// 用户信息
/// </summary>
[Table(Name = "User")]
public class User
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// Name
/// </summary>
[Column(Name = "Name", IsNullable = false, StringLength = 100)]
public string? Name { get; set; }
/// <summary>
/// 密码
/// </summary>
[Column(Name = "Password", IsNullable = false, StringLength = 50)]
public string? Password { get; set; }
/// <summary>
/// 等级
/// </summary>
[Column(Name = "Level", IsNullable = false, StringLength = 50)]
public string? Level { get; set; }
/// <summary>
/// 是否启用
/// </summary>
[Column(Name = "IsEnable")]
public bool IsEnable { get; set; }
}
}