2023-11-14 01:25:25 +00:00
|
|
|
using BotSharp.Abstraction.Users.Enums;
|
|
|
|
|
|
2023-06-11 23:46:02 +00:00
|
|
|
namespace BotSharp.Abstraction.Users.Models;
|
|
|
|
|
|
|
|
|
|
public class User
|
|
|
|
|
{
|
|
|
|
|
public string Id { get; set; } = string.Empty;
|
2024-01-05 03:20:50 +00:00
|
|
|
public string UserName { get; set; } = string.Empty;
|
2023-06-11 23:46:02 +00:00
|
|
|
public string FirstName { get; set; } = string.Empty;
|
2024-05-31 03:24:34 +00:00
|
|
|
public string? LastName { get; set; }
|
|
|
|
|
public string? Email { get; set; }
|
|
|
|
|
public string? Phone { get; set; }
|
2023-06-11 23:46:02 +00:00
|
|
|
public string Salt { get; set; } = string.Empty;
|
|
|
|
|
public string Password { get; set; } = string.Empty;
|
2024-09-21 07:12:08 +00:00
|
|
|
public string Source { get; set; } = UserSource.Internal;
|
2023-09-07 22:04:34 +00:00
|
|
|
public string? ExternalId { get; set; }
|
2024-09-19 00:49:32 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// internal, client, affiliate
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Type { get; set; } = UserType.Client;
|
|
|
|
|
public string Role { get; set; } = UserRole.User;
|
2024-05-26 01:34:29 +00:00
|
|
|
public string? VerificationCode { get; set; }
|
|
|
|
|
public bool Verified { get; set; }
|
2024-09-21 07:12:08 +00:00
|
|
|
public string? AffiliateId { get; set; }
|
|
|
|
|
public bool IsDisable { get; set; }
|
2023-06-11 23:46:02 +00:00
|
|
|
public DateTime UpdatedTime { get; set; } = DateTime.UtcNow;
|
|
|
|
|
public DateTime CreatedTime { get; set; } = DateTime.UtcNow;
|
|
|
|
|
}
|