# 20260428185239_IncreaseHashLength.Designer

- File ID: file:qoj05g:20260428185239-increasehashlength-designer-cs
- Path: NexusReader.Data/Migrations/20260428185239_IncreaseHashLength.Designer.cs
- Role: database-config
- Layer: data

## Purpose

EF Core migration designer for the IncreaseHashLength migration; describes the target EF Core model (entities, properties, indexes, relationships) used by migrations and tooling.

## Key Details

Defines EF Core model shape for this migration. Notable: SemanticKnowledgeCache.ContentHash is configured with max length 128 (lines 277-305) and is the primary key/unique index; standard ASP.NET Identity tables and Ebook->User relationships are present. The class is auto-generated designer code and is not application logic.

## Symbols

- IncreaseHashLength: EF Core migration designer for the IncreaseHashLength migration; describes the target EF Core model (entities, properties, indexes, relationships) used by migrations and tooling.
- BuildTargetModel(): Populates the EF Core ModelBuilder with entity configurations, annotations, columns, indexes and relationships representing the target schema for this migration.
- IncreaseHashLength: Partial migration class representing the IncreaseHashLength EF Core migration and holding the generated BuildTargetModel.

## Dependencies

- imports NexusReader.Data/Persistence/AppDbContext.cs
- imports NexusReader.Domain/Entities/Ebook.cs
- imports NexusReader.Domain/Entities/NexusUser.cs
- imports NexusReader.Domain/Entities/SemanticKnowledgeCache.cs

## Calls

- No resolved calls.

## Unresolved References

- interaction-target: NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder) (external Npgsql EF provider)

## Coverage

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

## Control Flow Fragments

- BuildTargetModel: 21 nodes, 20 edges, 0 jumps, 0 unsupported constructs

## Diagrams

### 20260428185239_IncreaseHashLength.Designer Neighborhood

```mermaid
flowchart LR
    class_mi743e_increasehashlength("IncreaseHashLength")
    file_qoj05g_20260428185239_increasehashlength_designer_cs("20260428185239_IncreaseHashLength.Designer")
    method_1wohrks_buildtargetmodel[["BuildTargetModel()"]]
    file_1d4ycw2_semanticknowledgecache_cs[/"SemanticKnowledgeCache"/]
    file_1pacvtg_appdbcontext_cs[/"AppDbContext"/]
    file_lcvwj6_ebook_cs[/"Ebook"/]
    file_xcxh5w_nexususer_cs[/"NexusUser"/]
    type_gbavgv_increasehashlength[/"IncreaseHashLength"/]
    file_qoj05g_20260428185239_increasehashlength_designer_cs -->|SemanticKnowledgeCache| file_1d4ycw2_semanticknowledgecache_cs
    file_qoj05g_20260428185239_increasehashlength_designer_cs -->|AppDbContext| file_1pacvtg_appdbcontext_cs
    file_qoj05g_20260428185239_increasehashlength_designer_cs -->|Ebook| file_lcvwj6_ebook_cs
    file_qoj05g_20260428185239_increasehashlength_designer_cs -->|NexusUser| file_xcxh5w_nexususer_cs
```

### 20260428185239_IncreaseHashLength.Designer Execution Overview

```mermaid
flowchart TD
    class_mi743e_increasehashlength("IncreaseHashLength")
    method_1wohrks_buildtargetmodel[["BuildTargetModel()"]]
    unresolved_unresolved_1041pkd_interaction_target{"Unresolved: NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder) (external Npgsql EF provider)"}
    class_mi743e_increasehashlength -->|contains| method_1wohrks_buildtargetmodel
    class_mi743e_increasehashlength -->|unresolved interaction| unresolved_unresolved_1041pkd_interaction_target
```

## Diagram Validation

- Status: pass
