-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
18 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
from pydantic import BaseModel | ||
from pydantic import BaseModel, ConfigDict | ||
|
||
|
||
class Base(BaseModel): | ||
class Config: | ||
orm_mode = True | ||
model_config = ConfigDict(from_attributes=True) | ||
|
||
|
||
class ActionInfo(Base): | ||
user_id: int | None | ||
user_id: int | None = None | ||
action: str | ||
additional_data: str | None | ||
path_from: str | None | ||
path_to: str | None | ||
additional_data: str | None = None | ||
path_from: str | None = None | ||
path_to: str | None = None | ||
|
||
|
||
class User(Base): | ||
id: int | ||
union_number: str | None | ||
union_number: str | None = None | ||
|
||
|
||
class UserPatch(Base): | ||
union_number: str | None | ||
auth_user_id: int | None | ||
union_number: str | None = None | ||
auth_user_id: int | None = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ SQLAlchemy | |
gunicorn | ||
auth-lib-profcomff[fastapi] | ||
logging-profcomff | ||
pydantic-settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters