feat(scaffold): add model-backed CRUD service template

Provides a complete OpenAPI-first CRUD example with a Pydantic
model layer, explicit runtime semantics, and integration tests
to support developer onboarding and real-world service structure.
This commit is contained in:
2026-01-10 18:05:39 +05:30
parent 2ac342240b
commit 40d91bc52b
6 changed files with 332 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
"""
Pydantic domain models for the CRUD example.
"""
from pydantic import BaseModel
class ItemBase(BaseModel):
name: str
price: float
class ItemCreate(ItemBase):
pass
class Item(ItemBase):
id: int