38 lines
911 B
Python
38 lines
911 B
Python
from marshmallow import fields, Schema
|
|
|
|
|
|
class ProjectSupervisorSchema(Schema):
|
|
first_name = fields.Str()
|
|
last_name = fields.Str()
|
|
email = fields.Str()
|
|
available_groups = fields.Integer()
|
|
|
|
|
|
class ProjectSupervisorPaginationSchema(Schema):
|
|
project_supervisors = fields.List(fields.Nested(ProjectSupervisorSchema))
|
|
max_pages = fields.Integer()
|
|
|
|
|
|
class ProjectSupervisorQuerySchema(Schema):
|
|
page = fields.Integer()
|
|
per_page = fields.Integer()
|
|
|
|
|
|
class TemporaryStudentSchema(Schema):
|
|
student_index = fields.Integer(required=True)
|
|
|
|
|
|
class MessageSchema(Schema):
|
|
message = fields.Str()
|
|
|
|
|
|
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))
|