{"path":"NexusReader.Data/Migrations/20260510171941_AddEbookLastChapterIndex.cs","purpose":"An Entity Framework Core migration that adds an integer LastChapterIndex column (default 0) to the Ebooks table, and can remove it on rollback.","classification":{"role":"database-config","layer":"data","confidence":0.8,"evidence":["Namespace NexusReader.Data.Migrations","Class derives from Migration and overrides Up/Down","Uses migrationBuilder.AddColumn / DropColumn to modify database schema"]},"className":"AddEbookLastChapterIndex","methods":[{"name":"Up","line":11,"endLine":19,"signature":"(migrationBuilder: MigrationBuilder) -> void","purpose":"Applies the migration: adds LastChapterIndex (integer, non-nullable, default 0) to the Ebooks table.","calls":[],"actions":[{"id":"persistence-migration_13","kind":"mapping","label":"Add column LastChapterIndex to Ebooks","line":13,"detail":"migrationBuilder.AddColumn<int>(name: \"LastChapterIndex\", table: \"Ebooks\", type: \"integer\", nullable: false, defaultValue: 0)","visibility":"detail-only","confidence":0.7},{"id":"schema-change_13","kind":"mapping","label":"Creates non-nullable integer column with default","line":13,"detail":"new column ensures existing rows receive defaultValue 0","visibility":"detail-only","confidence":0.7}]},{"name":"Down","line":22,"endLine":27,"signature":"(migrationBuilder: MigrationBuilder) -> void","purpose":"Reverts the migration: drops the LastChapterIndex column from the Ebooks table.","calls":[],"actions":[{"id":"persistence-migration_24","kind":"mapping","label":"Drop column LastChapterIndex from Ebooks","line":24,"detail":"migrationBuilder.DropColumn(name: \"LastChapterIndex\", table: \"Ebooks\")","visibility":"detail-only","confidence":0.7}]}],"types":[{"name":"AddEbookLastChapterIndex","kind":"model","line":8,"purpose":"EF Core migration class representing the schema change that adds/removes LastChapterIndex on Ebooks.","fields":[]}],"serviceRegistrations":[],"startupActions":[],"dependencies":[],"patterns":["Migration"],"domainConcepts":["Ebook"],"keyDetails":"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.","orchestrationMethods":[],"typedContracts":[{"name":"AddEbookLastChapterIndex","kind":"model","line":8,"fieldCount":0,"evidencePaths":["NexusReader.Data/Migrations/20260510171941_AddEbookLastChapterIndex.cs"]}],"persistenceInteractions":[],"externalInteractions":[],"evidenceAnchors":[{"kind":"typed-contract","label":"AddEbookLastChapterIndex","line":8,"summary":"model with 0 fields.","confidence":0.8,"evidencePaths":["NexusReader.Data/Migrations/20260510171941_AddEbookLastChapterIndex.cs"]}],"cacheMetadata":{"schemaVersion":2,"analysisVersion":"2026-05-23.cache-v1","contentChecksum":"6f9ce6807f8e21c8409452618b1cf3ad50c17a420b350dc66744ceaca156f19c","sourceByteSize":813,"analyzedAt":"2026-05-23T16:24:57.321Z","technology":"dotnet"}}