diff --git a/backend/domain/models/AdminDataclass.py b/backend/domain/models/AdminDataclass.py index d1b28923..646cb390 100644 --- a/backend/domain/models/AdminDataclass.py +++ b/backend/domain/models/AdminDataclass.py @@ -1,8 +1,5 @@ -from dataclasses import dataclass - from domain.models.UserDataclass import UserDataclass -@dataclass() class AdminDataclass(UserDataclass): pass diff --git a/backend/domain/models/GroupDataclass.py b/backend/domain/models/GroupDataclass.py index 671667e9..e14914e5 100644 --- a/backend/domain/models/GroupDataclass.py +++ b/backend/domain/models/GroupDataclass.py @@ -1,9 +1,6 @@ -from dataclasses import dataclass - from pydantic import BaseModel -@dataclass() class GroupDataclass(BaseModel): id: int project_id: int diff --git a/backend/domain/models/ProjectDataclass.py b/backend/domain/models/ProjectDataclass.py index 07826132..bca35785 100644 --- a/backend/domain/models/ProjectDataclass.py +++ b/backend/domain/models/ProjectDataclass.py @@ -1,10 +1,8 @@ -from dataclasses import dataclass from datetime import datetime from pydantic import BaseModel, PositiveInt -@dataclass() class ProjectDataclass(BaseModel): id: int name: str diff --git a/backend/domain/models/StudentDataclass.py b/backend/domain/models/StudentDataclass.py index 3f46b7d5..fe30af4e 100644 --- a/backend/domain/models/StudentDataclass.py +++ b/backend/domain/models/StudentDataclass.py @@ -1,8 +1,5 @@ -from dataclasses import dataclass - from domain.models.UserDataclass import UserDataclass -@dataclass() class StudentDataclass(UserDataclass): pass diff --git a/backend/domain/models/SubjectDataclass.py b/backend/domain/models/SubjectDataclass.py index 9be302fd..eb92c063 100644 --- a/backend/domain/models/SubjectDataclass.py +++ b/backend/domain/models/SubjectDataclass.py @@ -1,9 +1,6 @@ -from dataclasses import dataclass - from pydantic import BaseModel -@dataclass() class SubjectDataclass(BaseModel): id: int name: str diff --git a/backend/domain/models/SubmissionDataclass.py b/backend/domain/models/SubmissionDataclass.py index 79a85961..6dcc2854 100644 --- a/backend/domain/models/SubmissionDataclass.py +++ b/backend/domain/models/SubmissionDataclass.py @@ -1,5 +1,4 @@ import enum -from dataclasses import dataclass from datetime import datetime from pydantic import BaseModel @@ -11,7 +10,6 @@ class SubmissionState(enum.Enum): Rejected = 3 -@dataclass() class SubmissionDataclass(BaseModel): id: int date_time: datetime diff --git a/backend/domain/models/TeacherDataclass.py b/backend/domain/models/TeacherDataclass.py index d36d1215..ddf3e95d 100644 --- a/backend/domain/models/TeacherDataclass.py +++ b/backend/domain/models/TeacherDataclass.py @@ -1,8 +1,5 @@ -from dataclasses import dataclass - from domain.models.UserDataclass import UserDataclass -@dataclass() class TeacherDataclass(UserDataclass): pass diff --git a/backend/domain/models/UserDataclass.py b/backend/domain/models/UserDataclass.py index 791a864d..33e94a5d 100644 --- a/backend/domain/models/UserDataclass.py +++ b/backend/domain/models/UserDataclass.py @@ -1,9 +1,6 @@ -from dataclasses import dataclass - from pydantic import BaseModel, EmailStr -@dataclass() class UserDataclass(BaseModel): id: int name: str