# 20260510171941_AddEbookLastChapterIndex.Designer

- File ID: file:la4sdl:20260510171941-addebooklastchapterindex-designer
- Path: NexusReader.Data/Migrations/20260510171941_AddEbookLastChapterIndex.Designer.cs
- Role: database-config
- Layer: data

## Purpose

EF Core migration designer file that captures the target model snapshot for the AddEbookLastChapterIndex migration; used by EF Core to recreate the model/state for migrations and tooling.

## Key Details

Auto-generated EF Core migration designer that sets Postgres vector extension, identity defaults, defines schema for identity and domain entities, configures relationships and indexes, and seeds SubscriptionPlan records (Free, Basic, Pro, Enterprise).

## Symbols

- AddEbookLastChapterIndex: EF Core migration designer file that captures the target model snapshot for the AddEbookLastChapterIndex migration; used by EF Core to recreate the model/state for migrations and tooling.
- BuildTargetModel(): Builds the EF Core model snapshot: configures entity types, properties, indexes, relationships, annotations and seed data for the target database model.
- AddEbookLastChapterIndex: Partial EF Core Migration designer class representing the AddEbookLastChapterIndex migration and its model snapshot.

## Dependencies

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

## Calls

- No resolved calls.

## Coverage

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

## Control Flow Fragments

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

## Diagrams

### 20260510171941_AddEbookLastChapterIndex.Designer Neighborhood

```mermaid
flowchart LR
    class_1ojuflh_addebooklastchapterindex("AddEbookLastChapterIndex")
    file_la4sdl_20260510171941_addebooklastchapterindex_designer("20260510171941_AddEbookLastChapterIndex.Designer")
    method_1febov1_buildtargetmodel[["BuildTargetModel()"]]
    file_1b03oou_subscriptionplan_cs[/"SubscriptionPlan"/]
    file_1d4ycw2_semanticknowledgecache_cs[/"SemanticKnowledgeCache"/]
    file_1m6x5qy_knowledgeunitlink_cs[/"KnowledgeUnitLink"/]
    file_1pacvtg_appdbcontext_cs[/"AppDbContext"/]
    file_h6a0xu_knowledgeunit_cs[/"KnowledgeUnit"/]
    file_lcvwj6_ebook_cs[/"Ebook"/]
    file_xcxh5w_nexususer_cs[/"NexusUser"/]
    type_1fj6zpl_addebooklastchapterindex[/"AddEbookLastChapterIndex"/]
    file_la4sdl_20260510171941_addebooklastchapterindex_designer -->|SubscriptionPlan| file_1b03oou_subscriptionplan_cs
    file_la4sdl_20260510171941_addebooklastchapterindex_designer -->|SemanticKnowledgeCache| file_1d4ycw2_semanticknowledgecache_cs
    file_la4sdl_20260510171941_addebooklastchapterindex_designer -->|KnowledgeUnitLink| file_1m6x5qy_knowledgeunitlink_cs
    file_la4sdl_20260510171941_addebooklastchapterindex_designer -->|AppDbContext| file_1pacvtg_appdbcontext_cs
    file_la4sdl_20260510171941_addebooklastchapterindex_designer -->|KnowledgeUnit| file_h6a0xu_knowledgeunit_cs
    file_la4sdl_20260510171941_addebooklastchapterindex_designer -->|Ebook| file_lcvwj6_ebook_cs
    file_la4sdl_20260510171941_addebooklastchapterindex_designer -->|NexusUser| file_xcxh5w_nexususer_cs
```

### 20260510171941_AddEbookLastChapterIndex.Designer Execution Overview

```mermaid
flowchart TD
    class_1ojuflh_addebooklastchapterindex("AddEbookLastChapterIndex")
    method_1febov1_buildtargetmodel[["BuildTargetModel()"]]
    class_1ojuflh_addebooklastchapterindex -->|contains| method_1febov1_buildtargetmodel
```

## Diagram Validation

- Status: pass
