munch-ease-backend/persons/db.py

12 lines
234 B
Python
Raw Normal View History

2024-01-13 07:18:25 +00:00
from pydantic import BaseModel
from typing import List, ClassVar
class Person(BaseModel):
id: int
name: str
async def create(conn):
return None
def get(conn, id: int) -> Person:
return Person(id=id, name='test')