- Replace TenantRepository with TenantManager (ASP.NET Identity style) - Change TenantId from long to int (auto-increment) - Add TenantStore with CRUD operations - Update TenantService, UserService, RoleService to use TenantManager - Add Tenant entity with TenantStatus enum - Update DTOs and controllers for int tenant IDs
14 lines
408 B
C#
14 lines
408 B
C#
using Microsoft.AspNetCore.Identity;
|
|
|
|
namespace Fengling.Console.Models.Entities;
|
|
|
|
public class ApplicationUser : IdentityUser<long>
|
|
{
|
|
public string? RealName { get; set; }
|
|
public string? Phone { get; set; }
|
|
public int TenantId { get; set; }
|
|
public DateTime CreatedTime { get; set; } = DateTime.UtcNow;
|
|
public DateTime? UpdatedTime { get; set; }
|
|
public bool IsDeleted { get; set; }
|
|
}
|