using System;
using System.Collections.Generic;

namespace DAL.New_Models;

public partial class TbSysUser
{
    /// <summary>
    /// ID
    /// </summary>
    public int Id { get; set; }

    public int? HotelId { get; set; }

    /// <summary>
    /// 登录账号
    /// </summary>
    public string Account { get; set; } = null!;

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

    /// <summary>
    /// 姓名
    /// </summary>
    public string? Name { get; set; }

    public int? DistrictId { get; set; }

    /// <summary>
    /// 所属部门
    /// </summary>
    public int? DepartmentId { get; set; }

    public int? PositionId { get; set; }

    public int? RoleId { get; set; }

    public string? Sex { get; set; }

    public string? Phone { get; set; }

    /// <summary>
    /// 邮件
    /// </summary>
    public string? Email { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int Sort { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }

    /// <summary>
    /// 启用
    /// </summary>
    public bool ActiveIndicator { get; set; }

    /// <summary>
    /// 创建人
    /// </summary>
    public string CreatedBy { get; set; } = null!;

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreatedDate { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    public string ModifiedBy { get; set; } = null!;

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime ModifiedDate { get; set; }

    /// <summary>
    /// 所属分组ID
    /// </summary>
    public int? GroupId { get; set; }

    public string? LoginIp { get; set; }

    public int? SysHotelGroupId { get; set; }

    public string? Password2 { get; set; }

    public DateTime? LastModifiedTime { get; set; }

    public bool? IsDeleted { get; set; }

    public virtual TbSysHotel? Department { get; set; }

    public virtual TbSysDistrict? District { get; set; }

    public virtual TbSysRole? Role { get; set; }

    public virtual ICollection<TbSysHotel> Hotels { get; set; } = new List<TbSysHotel>();
}
