mirror of
https://github.com/a-mayb3/Kanban_clone_backend.git
synced 2026-03-21 18:15:37 +01:00
Created new schema projects_users.py to avoid circular imports
This commit is contained in:
parent
aadc5ba45f
commit
74a2174bb2
2 changed files with 14 additions and 32 deletions
10
schemas/projects_users.py
Normal file
10
schemas/projects_users.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from typing import List
|
||||
|
||||
from pydantic import ConfigDict
|
||||
from schemas.projects import ProjectBase
|
||||
from schemas.users import UserBase
|
||||
|
||||
class ProjectUserBase(UserBase):
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
projects: List[ProjectBase]
|
||||
Loading…
Add table
Add a link
Reference in a new issue