2022-06-12 22:20:10 +02:00
|
|
|
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()
|
2022-06-12 22:20:10 +02:00
|
|
|
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()
|