diff --git a/store/app/api/crud/robots.py b/store/app/api/crud/robots.py new file mode 100644 index 00000000..357f3c64 --- /dev/null +++ b/store/app/api/crud/robots.py @@ -0,0 +1,10 @@ +"""Defines CRUD interface for robot API.""" + +from store.app.api.crud.base import BaseCrud +from store.app.api.model import Robot + + +class RobotCrud(BaseCrud): + async def add_robot(self, robot: Robot) -> None: + table = await self.db.Table("Robots") + await table.put_item(Item=robot.model_dump())