class CourseMaterialScheme(marshmallow.SQLAlchemySchema): class Meta: model = CourseMaterial id = marshmallow.auto_field() course_id = marshmallow.auto_field() filename = marshmallow.auto_field()
class CourseScheme(marshmallow.SQLAlchemySchema): class Meta: model = Course id = marshmallow.auto_field() code = marshmallow.auto_field() course_name = marshmallow.auto_field()
class CourseQuestionAnswerScheme(marshmallow.SQLAlchemySchema): class Meta: model = CourseQuestionAnswer id = marshmallow.auto_field() course_id = marshmallow.auto_field() question = marshmallow.auto_field() answer = marshmallow.auto_field()
class CourseQuestionScheme(marshmallow.SQLAlchemySchema): class Meta: model = CourseQuestion id = marshmallow.auto_field() sender_id = marshmallow.auto_field() course_id = marshmallow.auto_field() message = marshmallow.auto_field() created_on = marshmallow.auto_field()
class MessageScheme(marshmallow.SQLAlchemySchema): class Meta: model = Message id = marshmallow.auto_field() course_id = marshmallow.auto_field() receiver_id = marshmallow.auto_field() sender_id = marshmallow.auto_field() created_on = marshmallow.auto_field() message = marshmallow.auto_field() doc_path = marshmallow.auto_field()
class TeacherScheme(marshmallow.SQLAlchemySchema): class Meta: model = Teacher id = marshmallow.auto_field() user_id = marshmallow.auto_field()
class UserScheme(marshmallow.SQLAlchemySchema): class Meta: model = User id = marshmallow.auto_field() email = marshmallow.auto_field()