# 20260513183726_FixKnowledgeUnitEbookId.Designer

- File ID: file:sl1mo0:20260513183726-fixknowledgeunitebookid-designer-
- Path: NexusReader.Data/Persistence/Migrations/20260513183726_FixKnowledgeUnitEbookId.Designer.cs
- Role: database-config
- Layer: data

## Purpose

EF Core migration designer file that describes the target EF model for the migration 'FixKnowledgeUnitEbookId'; it encodes entity mappings, indices, relationships, extension usage and seed data used by the migration snapshot.

## Key Details

BuildTargetModel configures Postgres 'vector' extension, identity default columns, declares entity schemas (properties, indices, keys), establishes FK relationships with explicit delete behaviors and navigation properties, and seeds SubscriptionPlan table with four rows. KnowledgeUnit.EbookId is mapped as a uuid (Guid) and indexed (lines 253, 277).

## Symbols

- FixKnowledgeUnitEbookId: EF Core migration designer file that describes the target EF model for the migration 'FixKnowledgeUnitEbookId'; it encodes entity mappings, indices, relationships, extension usage and seed data used by the migration snapshot.
- BuildTargetModel(): Constructs the EF Core model snapshot for this migration: annotations, DB extensions, entities, properties, indices, relationships and seed data.
- FixKnowledgeUnitEbookId: Partial migration class representing the migration snapshot and model-building logic for 'FixKnowledgeUnitEbookId'.

## Dependencies

- imports NexusReader.Data/Persistence/AppDbContext.cs

## Calls

- No resolved calls.

## Unresolved References

- dependency-target: NexusReader.Domain/Entities (referenced entity types: Author, Ebook, KnowledgeUnit, KnowledgeUnitLink, NexusUser, SubscriptionPlan, QuizResult, SemanticKnowledgeCache)

## Coverage

- Symbols: 3
- Executable symbols: 1
- Executable symbols with control flow: 1
- Grounded edges: 4
- 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: 23 nodes, 22 edges, 0 jumps, 0 unsupported constructs

## Diagrams

### 20260513183726_FixKnowledgeUnitEbookId.Designer Neighborhood

```mermaid
flowchart LR
    class_181ukvc_fixknowledgeunitebookid("FixKnowledgeUnitEbookId")
    file_sl1mo0_20260513183726_fixknowledgeunitebookid_designer_("20260513183726_FixKnowledgeUnitEbookId.Designer")
    method_16euo54_buildtargetmodel[["BuildTargetModel()"]]
    file_1pacvtg_appdbcontext_cs[/"AppDbContext"/]
    type_1sj29na_fixknowledgeunitebookid[/"FixKnowledgeUnitEbookId"/]
    file_sl1mo0_20260513183726_fixknowledgeunitebookid_designer_ -->|AppDbContext| file_1pacvtg_appdbcontext_cs
```

### 20260513183726_FixKnowledgeUnitEbookId.Designer Execution Overview

```mermaid
flowchart TD
    class_181ukvc_fixknowledgeunitebookid("FixKnowledgeUnitEbookId")
    method_16euo54_buildtargetmodel[["BuildTargetModel()"]]
    class_181ukvc_fixknowledgeunitebookid -->|contains| method_16euo54_buildtargetmodel
```

## Diagram Validation

- Status: pass
