Renumber the 15 reference docs into pillar groups (recipe -> anatomy): - 01 Build Recipe (entry), 02 Composition Root - domains: 10 Layering Rules - contract: 20 Spec-First Routing, 21 CRUD Template, 22 Auth Integration - interfaces/infra: 30 Infra Adapters - UI: 40 UI: Auto-Rendered Admin & Custom Pages (new; @aetoskia packages, client template, x- catalog via react-openapi MCP module) - pipelines: 50 Pipeline Scaffold, 51 Worker & Progress, 52 Human-in-the-Loop - delivery/meta: 90 Drone Pipelines, 91 Versioning & Changelog, 92 Genericity Matrix, 93 Library Registry, 94 Repository Inventory MCP module names are unchanged (NN_ prefix stripped); all cross-references (wiki, templates, hooks, registry) updated; lib index rewritten pillar-first; build recipe bootstraps the client template. Bundle + HTML sites regenerated.
22 lines
489 B
Python
22 lines
489 B
Python
"""# Summary
|
|
|
|
Item domain model — the neutral resource used throughout the template.
|
|
"""
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class Item(BaseModel):
|
|
"""A single countable resource.
|
|
|
|
Attributes:
|
|
id (int | None): Server-assigned identifier. Defaults to None.
|
|
name (str): Item name.
|
|
quantity (int): Item quantity. Defaults to 1.
|
|
"""
|
|
|
|
id: int | None = None
|
|
name: str
|
|
quantity: int = Field(default=1)
|
|
|
|
model_config = {"extra": "ignore"}
|