# 20260513181743_AddEbookReadyFlag.Designer

- File ID: file:jl4svh:20260513181743-addebookreadyflag-designer-cs
- Path: NexusReader.Data/Persistence/Migrations/20260513181743_AddEbookReadyFlag.Designer.cs
- Role: database-config
- Layer: data

## Purpose

EF Core migration designer snapshot that builds the target model for the migration AddEbookReadyFlag; it defines tables, columns, indexes, relationships, Postgres extensions and seed data used to represent the current schema in code.

## Key Details

This migration snapshot configures a Postgres vector extension, vector-typed columns for semantic search, identity tables, and seeds four subscription plans; notably the Ebook entity includes an IsReadyForReading boolean property (migration name AddEbookReadyFlag aligns with this addition).

## Symbols

- AddEbookReadyFlag: EF Core migration designer snapshot that builds the target model for the migration AddEbookReadyFlag; it defines tables, columns, indexes, relationships, Postgres extensions and seed data used to represent the current schema in code.
- BuildTargetModel(): Constructs the EF Core model snapshot for this migration: configures Postgres extensions, identity defaults, all entity types, properties, indexes, foreign keys, navigations and seed data.
- AddEbookReadyFlag: Partial migration class representing the AddEbookReadyFlag migration (contains BuildTargetModel snapshot).

## Dependencies

- imports NexusReader.Data/Persistence/AppDbContext.cs

## Calls

- No resolved calls.

## Unresolved References

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

## 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: 21 nodes, 20 edges, 0 jumps, 0 unsupported constructs

## Diagrams

### 20260513181743_AddEbookReadyFlag.Designer Neighborhood

```mermaid
flowchart LR
    class_4p0c5r_addebookreadyflag("AddEbookReadyFlag")
    file_jl4svh_20260513181743_addebookreadyflag_designer_cs("20260513181743_AddEbookReadyFlag.Designer")
    method_16i3kbl_buildtargetmodel[["BuildTargetModel()"]]
    file_1pacvtg_appdbcontext_cs[/"AppDbContext"/]
    type_1l23zuf_addebookreadyflag[/"AddEbookReadyFlag"/]
    file_jl4svh_20260513181743_addebookreadyflag_designer_cs -->|AppDbContext| file_1pacvtg_appdbcontext_cs
```

### 20260513181743_AddEbookReadyFlag.Designer Execution Overview

```mermaid
flowchart TD
    class_4p0c5r_addebookreadyflag("AddEbookReadyFlag")
    method_16i3kbl_buildtargetmodel[["BuildTargetModel()"]]
    class_4p0c5r_addebookreadyflag -->|contains| method_16i3kbl_buildtargetmodel
```

## Diagram Validation

- Status: pass
