first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
using F9WebAiTest.Domain.Common;
|
||||
|
||||
namespace F9WebAiTest.Domain.Entities;
|
||||
|
||||
/// <summary>职工/用户</summary>
|
||||
[Table(Name = "Employees")]
|
||||
[Index("IX_Employees_Username", "Username", IsUnique = true)]
|
||||
public class Employee : BaseEntity
|
||||
{
|
||||
public string Username { get; set; } // 登录账号
|
||||
public string Password { get; set; } // 密码哈希
|
||||
public string RealName { get; set; } // 真实姓名
|
||||
public string Nickname { get; set; } = "";
|
||||
public string Avatar { get; set; } = "";
|
||||
public string Gender { get; set; } = "男";
|
||||
public string Phone { get; set; } = "";
|
||||
public string Email { get; set; } = "";
|
||||
public long DepartmentId { get; set; }
|
||||
public int Status { get; set; } = 1; // 1 在职 0 离职/禁用
|
||||
public string Remark { get; set; } = "";
|
||||
}
|
||||
Reference in New Issue
Block a user