V1版本
This commit is contained in:
46
CapMachine.Model/User.cs
Normal file
46
CapMachine.Model/User.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user