# NexusUser

- File ID: file:xcxh5w:nexususer-cs
- Path: NexusReader.Domain/Entities/NexusUser.cs
- Role: entity
- Layer: domain

## Purpose

Domain entity representing an application user, extending ASP.NET IdentityUser with multi-tenant, subscription and usage tracking plus navigation collections for related domain data.

## Key Details

NexusUser extends IdentityUser and embeds multi-tenancy (TenantId default 'global'), subscription linkage (SubscriptionPlanId + navigation), AI token accounting (AITokenLimit/AITokensUsed/LastAiActionDate) and collections for owned ebooks and quiz results; no runtime methods are defined in this file.

## Symbols

- NexusUser: Domain entity representing an application user, extending ASP.NET IdentityUser with multi-tenant, subscription and usage tracking plus navigation collections for related domain data.
- NexusUser: Represents a user in the NexusReader domain with tenant, subscription and AI-usage metadata plus relationships to ebooks and quiz results.

## Dependencies

- No resolved dependencies.

## Calls

- No resolved calls.

## Unresolved References

- dependency-target: Microsoft.AspNetCore.Identity.IdentityUser
- dependency-target: SubscriptionPlan (NexusReader.Domain.Entities)
- dependency-target: Ebook (NexusReader.Domain.Entities)
- dependency-target: QuizResult (NexusReader.Domain.Entities)

## Coverage

- Symbols: 2
- Executable symbols: 0
- Executable symbols with control flow: 0
- Grounded edges: 2
- Unresolved references: 4
- Control-flow fragments: 0
- Unresolved jumps: 0
- Unsupported constructs: 0
- Control-flow coverage: 100%
- Required diagrams: 1
- Generated diagrams: 1

## Diagrams

### NexusUser Neighborhood

```mermaid
flowchart LR
    class_q7xqjm_nexususer("NexusUser")
    file_xcxh5w_nexususer_cs("NexusUser")
    type_1fmha7h_nexususer[/"NexusUser"/]
```

## Diagram Validation

- Status: pass
