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-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()
|
2022-10-27 16:59:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
class TemporaryStudentSchema(Schema):
|
|
|
|
student_index = fields.Integer(required=True)
|
|
|
|
|
|
|
|
|
|
|
|
class MessageSchema(Schema):
|
|
|
|
message = fields.Str()
|
2022-11-12 16:18:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
class ExaminationScheduleSchema(Schema):
|
|
|
|
id = fields.Integer()
|
|
|
|
title = fields.Str()
|
|
|
|
start_date = fields.DateTime()
|
|
|
|
end_date = fields.DateTime()
|
|
|
|
|
|
|
|
|
|
|
|
class ExaminationScheduleListSchema(Schema):
|
|
|
|
examination_schedules = fields.List(fields.Nested(ExaminationScheduleSchema))
|