# 20260510171941_AddEbookLastChapterIndex

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

## Purpose

An Entity Framework Core migration that adds an integer LastChapterIndex column (default 0) to the Ebooks table, and can remove it on rollback.

## Key Details

Adds a non-nullable integer LastChapterIndex column to the Ebooks table with default 0; Down removes it. Located in Data.Migrations namespace as an EF Core Migration.

## Symbols

- AddEbookLastChapterIndex: An Entity Framework Core migration that adds an integer LastChapterIndex column (default 0) to the Ebooks table, and can remove it on rollback.
- Up(): Applies the migration: adds LastChapterIndex (integer, non-nullable, default 0) to the Ebooks table.
- Down(): Reverts the migration: drops the LastChapterIndex column from the Ebooks table.
- AddEbookLastChapterIndex: EF Core migration class representing the schema change that adds/removes LastChapterIndex on Ebooks.

## Dependencies

- No resolved dependencies.

## Calls

- No resolved calls.

## Coverage

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

## Control Flow Fragments

- Up: 4 nodes, 3 edges, 0 jumps, 0 unsupported constructs
- Down: 3 nodes, 2 edges, 0 jumps, 0 unsupported constructs

## Diagrams

### 20260510171941_AddEbookLastChapterIndex Neighborhood

```mermaid
flowchart LR
    class_1kl84eu_addebooklastchapterindex("AddEbookLastChapterIndex")
    file_12mya84_20260510171941_addebooklastchapterindex_cs("20260510171941_AddEbookLastChapterIndex")
    method_10r2ds4_down[["Down()"]]
    method_1lw55w9_up[["Up()"]]
    type_1obfu5w_addebooklastchapterindex[/"AddEbookLastChapterIndex"/]
```

### 20260510171941_AddEbookLastChapterIndex Execution Overview

```mermaid
flowchart TD
    class_1kl84eu_addebooklastchapterindex("AddEbookLastChapterIndex")
    method_10r2ds4_down[["Down()"]]
    method_1lw55w9_up[["Up()"]]
    class_1kl84eu_addebooklastchapterindex -->|contains| method_10r2ds4_down
    class_1kl84eu_addebooklastchapterindex -->|contains| method_1lw55w9_up
```

## Diagram Validation

- Status: pass
