From 552ab862bb5ee7f3f23a0a414d72e5259c433094 Mon Sep 17 00:00:00 2001 From: Edoardo Borgia Leiva Date: Mon, 26 Jan 2026 17:53:30 +0100 Subject: [PATCH] Base pydantic models for user managment --- users.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 users.py diff --git a/users.py b/users.py new file mode 100644 index 0000000..9e5f42e --- /dev/null +++ b/users.py @@ -0,0 +1,14 @@ +from pydantic import BaseModel, ConfigDict +from typing import List + +class UserBase(BaseModel): + model_config = ConfigDict(from_attributes=True) + + id: int + name: str + email: str + +class UserList(BaseModel): + model_config = ConfigDict(from_attributes=True) + + users: List[UserBase] \ No newline at end of file