refactor kontor-api to use SQLAlchemy 2.0 features for mapping fields
(cherry picked from commit e57abdbef7e13e3880738cd639225df5db0c37be)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
from src.db.models.admin import Profile
|
||||
|
||||
|
||||
class ProfileResponse(BaseModel):
|
||||
id: str
|
||||
user_name: str
|
||||
|
||||
class ProfileModel(BaseModel):
|
||||
user_name: str
|
||||
first_name: str
|
||||
last_name: str
|
||||
Reference in New Issue
Block a user