# 20260429080302_AddQuizResults

- File ID: file:q6hq0x:20260429080302-addquizresults-cs
- Path: NexusReader.Data/Migrations/20260429080302_AddQuizResults.cs
- Role: database-config
- Layer: data

## Purpose

EF Core migration that adds a new QuizResults table (with columns, PK, FK to AspNetUsers, and an index) and provides rollback to drop it.

## Key Details

Adds QuizResults table with PK Id, FK UserId -> AspNetUsers.Id (cascade), and an index on UserId to support lookups by user.

## Symbols

- AddQuizResults: EF Core migration that adds a new QuizResults table (with columns, PK, FK to AspNetUsers, and an index) and provides rollback to drop it.
- Up(): Creates the QuizResults table with columns, primary key, foreign key to AspNetUsers (cascade) and an index on UserId.
- Down(): Drops the QuizResults table to rollback the migration.
- AddQuizResults: EF Core Migration class that applies schema changes to add QuizResults and rollback.
- QuizResults (table schema): Represents the database table schema created by this migration.

## Dependencies

- No resolved dependencies.

## Calls

- No resolved calls.

## Coverage

- Symbols: 5
- Executable symbols: 2
- Executable symbols with control flow: 2
- Grounded edges: 5
- 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: 7 nodes, 6 edges, 0 jumps, 0 unsupported constructs
- Down: 3 nodes, 2 edges, 0 jumps, 0 unsupported constructs

## Diagrams

### 20260429080302_AddQuizResults Neighborhood

```mermaid
flowchart LR
    class_3a8sch_addquizresults("AddQuizResults")
    file_q6hq0x_20260429080302_addquizresults_cs("20260429080302_AddQuizResults")
    method_1sa6em1_up[["Up()"]]
    method_1sgd810_down[["Down()"]]
    type_1f6rpfs_addquizresults[/"AddQuizResults"/]
    type_1tv21lf_quizresults_table_schema[/"QuizResults (table schema)"/]
```

### 20260429080302_AddQuizResults Execution Overview

```mermaid
flowchart TD
    class_3a8sch_addquizresults("AddQuizResults")
    method_1sa6em1_up[["Up()"]]
    method_1sgd810_down[["Down()"]]
    class_3a8sch_addquizresults -->|contains| method_1sa6em1_up
    class_3a8sch_addquizresults -->|contains| method_1sgd810_down
```

## Diagram Validation

- Status: pass
