2022-10-27 16:59:12 +02:00
|
|
|
from marshmallow import fields, Schema
|
2022-06-12 22:20:10 +02:00
|
|
|
|
|
|
|
|
2022-10-27 16:59:12 +02:00
|
|
|
class ProjectSupervisorSchema(Schema):
|
2022-06-12 22:20:10 +02:00
|
|
|
first_name = fields.Str()
|
|
|
|
last_name = fields.Str()
|
2022-06-13 18:27:30 +02:00
|
|
|
email = fields.Str()
|
2022-06-14 01:34:50 +02:00
|
|
|
mode = fields.Integer()
|
2022-06-12 22:20:10 +02:00
|
|
|
available_groups = fields.Integer()
|
|
|
|
|
|
|
|
|
2022-10-27 16:59:12 +02:00
|
|
|
class ProjectSupervisorPaginationSchema(Schema):
|
2022-06-12 22:20:10 +02:00
|
|
|
project_supervisors = fields.List(fields.Nested(ProjectSupervisorSchema))
|
|
|
|
max_pages = fields.Integer()
|
|
|
|
|
|
|
|
|
2022-10-27 16:59:12 +02:00
|
|
|
class ProjectSupervisorQuerySchema(Schema):
|
2022-06-12 22:20:10 +02:00
|
|
|
page = fields.Integer()
|
|
|
|
per_page = fields.Integer()
|
|
|
|
mode = fields.Boolean()
|
2022-10-27 16:59:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
class TemporaryStudentSchema(Schema):
|
|
|
|
student_index = fields.Integer(required=True)
|
|
|
|
|
|
|
|
|
|
|
|
class MessageSchema(Schema):
|
|
|
|
message = fields.Str()
|