- 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
421 B
C#
14 lines
421 B
C#
using Microsoft.AspNetCore.Identity;
|
|
|
|
namespace Fengling.Console.Models.Entities;
|
|
|
|
public class ApplicationRole : IdentityRole<long>
|
|
{
|
|
public string? Description { get; set; }
|
|
public DateTime CreatedTime { get; set; } = DateTime.UtcNow;
|
|
public int? TenantId { get; set; }
|
|
public bool IsSystem { get; set; }
|
|
public string? DisplayName { get; set; }
|
|
public List<string>? Permissions { get; set; }
|
|
}
|