# Ebook

- File ID: file:lcvwj6:ebook-cs
- Path: NexusReader.Domain/Entities/Ebook.cs
- Role: entity
- Layer: domain

## Purpose

Defines the domain entity representing an uploaded or owned e-book, including metadata, relationships (Author, NexusUser), tenancy and ingestion/readiness status for application use and persistence.

## Key Details

POCO entity with EF Core data annotations: primary key (Id), required fields, max length constraints, foreign keys to Author and NexusUser, defaults for Id, AddedDate, TenantId and Progress, and a readiness flag (IsReadyForReading) used to indicate AI processing completion.

## Symbols

- Ebook: Defines the domain entity representing an uploaded or owned e-book, including metadata, relationships (Author, NexusUser), tenancy and ingestion/readiness status for application use and persistence.
- Ebook: Represents an e-book record stored in the domain/data model with metadata, relationships and ingestion/readiness state.

## Dependencies

- imports NexusReader.Domain/Entities/Author.cs
- imports NexusReader.Domain/Entities/NexusUser.cs

## Calls

- No resolved calls.

## Coverage

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

## Diagrams

### Ebook Neighborhood

```mermaid
flowchart LR
    class_1k2zgaa_ebook("Ebook")
    file_lcvwj6_ebook_cs("Ebook")
    file_1y56eud_author_cs[/"Author"/]
    file_xcxh5w_nexususer_cs[/"NexusUser"/]
    type_kzfhbn_ebook[/"Ebook"/]
    file_lcvwj6_ebook_cs -->|Author| file_1y56eud_author_cs
    file_lcvwj6_ebook_cs -->|NexusUser| file_xcxh5w_nexususer_cs
```

## Diagram Validation

- Status: pass
