system-pri/backend/app/students/schemas.py

22 lines
559 B
Python
Raw Normal View History

from ..dependencies import ma
from marshmallow import fields
class ProjectSupervisorSchema(ma.Schema):
first_name = fields.Str()
last_name = fields.Str()
2022-06-13 18:27:30 +02:00
email = fields.Str()
mode = fields.Boolean()
available_groups = fields.Integer()
class ProjectSupervisorPaginationSchema(ma.Schema):
project_supervisors = fields.List(fields.Nested(ProjectSupervisorSchema))
max_pages = fields.Integer()
class ProjectSupervisorQuerySchema(ma.Schema):
page = fields.Integer()
per_page = fields.Integer()
mode = fields.Boolean()