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))
|
2022-11-16 20:42:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
class TermOfDefenceStudentItemSchema(Schema):
|
|
|
|
id = fields.Integer()
|
|
|
|
start_date = fields.DateTime()
|
|
|
|
end_date = fields.DateTime()
|
|
|
|
|
|
|
|
|
|
|
|
class TermOfDefenceStudentListSchema(Schema):
|
|
|
|
term_of_defences = fields.List(fields.Nested(TermOfDefenceStudentItemSchema))
|
|
|
|
|
|
|
|
|
|
|
|
class YearGroupStudentSchema(Schema):
|
|
|
|
id = fields.Integer()
|
|
|
|
name = fields.Str()
|
|
|
|
mode = fields.Str()
|
|
|
|
|
|
|
|
|
|
|
|
class YearGroupStudentPaginationSchema(Schema):
|
|
|
|
year_groups = fields.List(fields.Nested(YearGroupStudentSchema))
|
|
|
|
max_pages = fields.Integer()
|
|
|
|
|
|
|
|
|
|
|
|
class YearGroupQueryStudentSchema(Schema):
|
|
|
|
index = fields.Integer(required=True) # it will be removed
|
|
|
|
page = fields.Integer()
|
|
|
|
per_page = fields.Integer()
|