---
id: author
name: Author
version: 1.0.0
identifier: id
aggregateRoot: true
summary: Represents a credited author of one or more books in the product catalog, enforcing display-name validity and referential integrity against linked titles.
owners:
  - catalog-experience-team
badges:
  - content: Aggregate Root
    backgroundColor: blue
    textColor: blue
properties:
  - name: id
    type: UUID
    required: true
    description: Globally unique UUIDv7 identifier for the author.
  - name: name
    type: string
    required: true
    description: Author display name (non-whitespace, up to 100 characters).
---

## Domain Role & Boundary

**Author** is an Aggregate Root in the [[domain|catalog]] bounded context representing a person credited on one or more books. Owned by [[service|catalog-api]], it serves as the authoritative source for author identity and display names across storefront discovery and backoffice management. It explicitly does **not** own book metadata, publication details, or customer review attribution, which remain separate aggregates or bounded-context concerns.

## Entity Profile

| Property                      | Value                                                        |
| :---------------------------- | :----------------------------------------------------------- |
| **Bounded Context / Domain**  | [[domain\|catalog]]                                          |
| **Owning Service**            | [[service\|catalog-api]]                                     |
| **DDD Role**                  | Aggregate Root                                               |
| **Identifier Strategy**       | UUIDv7 generated at persistence                              |
| **Persistence Store**         | Catalog relational database (`authors`)                      |
| **Deletion Semantics**        | Hard-delete, restricted while linked to any [[entity\|book]] |
| **Concurrency Control**       | Last-write-wins (no optimistic concurrency token)            |
| **PII / Data Classification** | Public catalog metadata (non-PII)                            |

## Attributes & Constraints

<EntityPropertiesTable />

| Attribute | Business Rule / Constraint                                       | Sensitivity / Notes      |
| :-------- | :--------------------------------------------------------------- | :----------------------- |
| `id`      | Immutable primary identifier generated as UUIDv7.                | Public identifier        |
| `name`    | Required; must contain non-whitespace text up to 100 characters. | Public display attribute |

## Domain Invariants & Lifecycle

- **Non-empty display name:** Creating or renaming an author with a null, empty, or whitespace-only name is rejected by the domain model.
- **Referential deletion guard:** An author cannot be deleted while at least one [[entity|book]] references it; all book associations must be removed or reassigned first.
- **Lifecycle events:** Creation, renaming, and removal emit internal domain events within [[service|catalog-api]] to keep catalog projections and search indexes synchronized.

:::warning
Deleting an author is a permanent hard-delete operation. Unlike [[entity|book]], authors do not support soft-delete recovery once all book links are removed.
:::

## Relationships & Associated Operations

| Category              | Resource                                                                        | Role / Interaction                                            |
| :-------------------- | :------------------------------------------------------------------------------ | :------------------------------------------------------------ |
| **Related Entities**  | [[entity\|book]]                                                                | Many-to-many attribution linking authors to catalog titles    |
| **Mutating Commands** | [[command\|CreateAuthor]], [[command\|UpdateAuthor]], [[command\|DeleteAuthor]] | Create, rename, or remove an author record                    |
| **Read Queries**      | [[query\|ListAuthors]], [[query\|ListAuthorsGrpc]]                              | Paginated storefront/backoffice listings and internal lookups |
