User.cs 882 Bytes
using FreeSql.DataAnnotations;
using HHECS.DataContract;

namespace HHECS.RobotTool.Model
{
    /// <summary>
    /// 用户表
    /// </summary>
    [Index($"idx_{nameof(User)}_{nameof(Account)}", $"{nameof(Account)}", true)]
    public class User : BaseEntityCU<int>
    {
        /// <summary>
        /// 账户
        /// </summary>
        public string Account { get; set; } = null!;

        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; } = null!;

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; } = null!;

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enable { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; } = null!;
    }
}