22 lines
559 B
Python
22 lines
559 B
Python
from ..dependencies import ma
|
|
from marshmallow import fields
|
|
|
|
|
|
class ProjectSupervisorSchema(ma.Schema):
|
|
first_name = fields.Str()
|
|
last_name = fields.Str()
|
|
email = fields.Str()
|
|
mode = fields.Integer()
|
|
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()
|