OnlineSalesAutoCrop/Api/OnlineSalesAutoCrop.CoreAPI.Models/Objects/Systems/User.cs

82 lines
2.5 KiB
C#
Raw Normal View History

2026-08-09 18:20:12 +06:00
using DocumentFormat.OpenXml.Office2010.ExcelAc;
using System;
using System.Collections.Generic;
2026-06-14 12:46:29 +06:00
namespace OnlineSalesAutoCrop.CoreAPI.Models.Objects.Systems
{
public class User
{
public const int SuperUser_Id = -9;
public const string SuperUser_LoginId = "superuser";
2026-06-15 18:26:58 +06:00
public int UserId { get; set; }
2026-06-14 12:46:29 +06:00
public string LoginId { get; set; }
2026-06-15 18:26:58 +06:00
public string Password { get; set; }
2026-06-14 12:46:29 +06:00
public DateTime? LogoutTime { get; set; }
public string UserName { get; set; }
public EnumStatus Status { get; set; }
public EnumAccessStatus AccessStatus { get; set; }
public bool NeverExpires { get; set; }
public string LastPasswords { get; set; }
public DateTime? LastPassChgDate { get; set; }
public string EmailAddress { get; set; }
public string AuthKey { get; set; }
public string AuthValue { get; set; }
public string MobileNo { get; set; }
public string UnsuccessfulMsg { get; set; }
public string ThemeName { get; set; }
public string SchemeName { get; set; }
public string MenuLayout { get; set; }
public bool IsLocked { get; set; }
2026-06-15 18:26:58 +06:00
2026-07-06 17:23:05 +06:00
public UserPlatFormType? UserPlatFormType { get; set; }
public UserRoleTypeEnum? UserRoleType { get; set; }
public string? EmployeeNumber { get; set; }
public string? DesignationCode { get; set; }
public string? DesignationName { get; set; }
public EnumLoginStatus LoginStatus { get; set; }
2026-08-09 18:20:12 +06:00
public DateTime? NextLoginTime { get; set; }
public int NotificationCount { get; set; }
public List<string> ModuleIds { get; set; } = new List<string>();
public List<int> TeamSpaceIds { get; set; } = new List<int>();
2026-06-15 18:26:58 +06:00
}
2026-06-14 12:46:29 +06:00
public class LoginHistory
{
public int SlNo { get; set; }
public string LoginIp { get; set; }
public DateTime LoginTime { get; set; }
public string LogoutIp { get; set; }
public DateTime? LogoutTime { get; set; }
}
public class AccessLog
{
2026-06-15 18:26:58 +06:00
public int AccessLogId { get; set; }
public int UserId { get; set; }
2026-06-14 12:46:29 +06:00
public string LoginId { get; set; }
public DateTime LoginTime { get; set; }
public string LoginIp { get; set; }
public DateTime? LogoutTime { get; set; }
public string LogoutIp { get; set; }
2026-06-15 18:26:58 +06:00
public EnumLoginStatus LoginStatus { get; set; }
}
2026-06-14 12:46:29 +06:00
public class UserForceLogout
{
public int UserId { get; set; }
public string LoginId { get; set; }
public string UserName { get; set; }
}
public class UserBasicInfo
{
public int UserId { get; set; }
public string LoginId { get; set; }
public string UserName { get; set; }
public string Designation { get; set; }
}
}