From 63e87a3ed84ee9e9e4a4ff329a40d2b7ce5e5d0d Mon Sep 17 00:00:00 2001 From: l3wdfut4pwr Date: Sat, 4 Apr 2026 00:03:04 +0300 Subject: add profile --- app/schemas/profile.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 app/schemas/profile.py (limited to 'app/schemas/profile.py') diff --git a/app/schemas/profile.py b/app/schemas/profile.py new file mode 100644 index 0000000..ab54425 --- /dev/null +++ b/app/schemas/profile.py @@ -0,0 +1,21 @@ +from typing import Optional + +from pydantic import BaseModel + + +class ProfileRead(BaseModel): + id: int + user_id: int + avatar_file: Optional[str] = None + banner_file: Optional[str] = None + description: Optional[str] = None + + publications_count: int = 0 + collections_count: int = 0 + subscriptions_count: int = 0 + followers_count: int = 0 + following_count: int = 0 + + model_config = { + "from_attributes": True, + } -- cgit v1.3-3-g829e