refactor: derive update schemas with PartialUpdateModel

This commit is contained in:
Mark Paronyan committed 2026-10-06 16:46:22 +03:00
1 parent 65c858d455
commit d9678ce98c
34 files changed
+276 -70

No files matched your search

+2 -1
View File
@@ -20,6 +20,7 @@ from uuid import UUID
from pydantic import BaseModel, ConfigDict, EmailStr, Field, SecretStr
from ..update import PartialUpdateModel
from .base import DateTimeModelMixin
@@ -43,7 +44,7 @@ class UserCreate(UserBase):
password: SecretStr = Field(..., min_length=8, max_length=100)
class UserUpdate(UserBase):
class UserUpdate(PartialUpdateModel, UserBase):
"""
Properties to update a user.
"""