# 20260506184227_UpdateSubscriptionPlanIsUnlimitedTokens

- File ID: file:1y1rue2:20260506184227-updatesubscriptionplanisunlimited
- Path: NexusReader.Data/Migrations/20260506184227_UpdateSubscriptionPlanIsUnlimitedTokens.cs
- Role: database-config
- Layer: data

## Purpose

EF Core migration that adds an IsUnlimitedTokens column to the SubscriptionPlans table and adjusts seeded SubscriptionPlans data (AITokenLimit and StripeProductId) to reflect the new column; reversible via Down.

## Key Details

Adds non-nullable boolean IsUnlimitedTokens (default false) and updates seeded plans: Id=1 -> smaller token limit and free product id, Id=4 -> very large token limit with IsUnlimitedTokens=true; Down reverses these changes.

## Symbols

- UpdateSubscriptionPlanIsUnlimitedTokens: EF Core migration that adds an IsUnlimitedTokens column to the SubscriptionPlans table and adjusts seeded SubscriptionPlans data (AITokenLimit and StripeProductId) to reflect the new column; reversible via Down.
- Up(): Apply the migration: add IsUnlimitedTokens column to SubscriptionPlans and update seeded data for multiple plan rows.
- Down(): Revert the migration: remove IsUnlimitedTokens column and restore previous seeded SubscriptionPlans values.
- UpdateSubscriptionPlanIsUnlimitedTokens: EF Core Migration type that encapsulates schema and seed-data changes to SubscriptionPlans.

## 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: 7 nodes, 6 edges, 0 jumps, 0 unsupported constructs
- Down: 5 nodes, 4 edges, 0 jumps, 0 unsupported constructs

## Diagrams

### 20260506184227_UpdateSubscriptionPlanIsUnlimitedTokens Neighborhood

```mermaid
flowchart LR
    class_588td0_updatesubscriptionplanisunlimitedtokens("UpdateSubscriptionPlanIsUnlimitedTokens")
    file_1y1rue2_20260506184227_updatesubscriptionplanisunlimited("20260506184227_UpdateSubscriptionPlanIsUnlimitedTokens")
    method_1pxp1t3_up[["Up()"]]
    method_3zfaqn_down[["Down()"]]
    type_bqctk6_updatesubscriptionplanisunlimitedtokens[/"UpdateSubscriptionPlanIsUnlimitedTokens"/]
```

### 20260506184227_UpdateSubscriptionPlanIsUnlimitedTokens Execution Overview

```mermaid
flowchart TD
    class_588td0_updatesubscriptionplanisunlimitedtokens("UpdateSubscriptionPlanIsUnlimitedTokens")
    method_1pxp1t3_up[["Up()"]]
    method_3zfaqn_down[["Down()"]]
    class_588td0_updatesubscriptionplanisunlimitedtokens -->|contains| method_1pxp1t3_up
    class_588td0_updatesubscriptionplanisunlimitedtokens -->|contains| method_3zfaqn_down
```

## Diagram Validation

- Status: pass
