feat: implement multi-tenancy support across knowledge services and normalize TenantId to string type.

This commit is contained in:
2026-05-03 17:52:12 +02:00
parent eac0e9057e
commit e21c24b66d
16 changed files with 334 additions and 94 deletions
+4 -1
View File
@@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Identity;
using System.ComponentModel.DataAnnotations;
namespace NexusReader.Domain.Entities;
@@ -20,7 +21,9 @@ public class NexusUser : IdentityUser
/// <summary>
/// Unique identifier for the tenant (SaaS multi-tenancy support).
/// </summary>
public Guid TenantId { get; set; }
[Required]
[MaxLength(128)]
public string TenantId { get; set; } = "global";
/// <summary>
/// Current subscription plan (e.g., "Free", "Pro", "Enterprise").