- Convert Tenant to anemia model with long Id (no strong-typed ID) - Add ApplicationUser, ApplicationRole to Platform.Domain (inherit Identity) - Add TenantInfo value object for user-tenant redundancy - Implement TenantManager/TenantStore in Platform.Infrastructure - Update PlatformDbContext to inherit IdentityDbContext - Migrate AuthService and Console to use Platform entities - Remove old TenantRepository (replaced by TenantManager) - Update AGENTS.md documentation
15 lines
512 B
C#
15 lines
512 B
C#
using Fengling.Platform.Domain.AggregatesModel.TenantAggregate;
|
|
using Microsoft.AspNetCore.Identity;
|
|
|
|
namespace Fengling.Platform.Domain.AggregatesModel.UserAggregate;
|
|
|
|
public class ApplicationUser : IdentityUser<long>
|
|
{
|
|
public string? RealName { get; set; }
|
|
public string? Phone { get; set; }
|
|
public TenantInfo TenantInfo { get; set; } = null!;
|
|
public DateTime CreatedTime { get; set; } = DateTime.UtcNow;
|
|
public DateTime? UpdatedTime { get; set; }
|
|
public bool IsDeleted { get; set; }
|
|
}
|