Domain Entities

The Entities folder contains the central domain models.

Key Entities

  • Project: Represents a MILTON project tying together repositories, document layouts, and configuration rules.
  • Document: The container entity for all software documents generated via MILTON. Tracks generation via PdfStorageKey and PdfGeneratedAt.
  • DocumentTemplate: Reusable blueprint for generating documents. Includes DocumentStyleJson for global document styling.
  • Section: A hierarchical recursive object delineating layout chapters inside a Document. Uses StyleJson for localized UI rendering and layout handling.
  • ContentBlock: A polymorphic component (e.g., text, generated test cases, mermaid graphs) acting as the smallest atom inside sections. Includes LayoutJson for optional grid-based positioning.