Ejemplo n.º 1
0
class CourseMaterialScheme(marshmallow.SQLAlchemySchema):
    class Meta:
        model = CourseMaterial

    id = marshmallow.auto_field()
    course_id = marshmallow.auto_field()
    filename = marshmallow.auto_field()
Ejemplo n.º 2
0
class CourseScheme(marshmallow.SQLAlchemySchema):
    class Meta:
        model = Course

    id = marshmallow.auto_field()
    code = marshmallow.auto_field()
    course_name = marshmallow.auto_field()
Ejemplo n.º 3
0
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()
Ejemplo n.º 4
0
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()
Ejemplo n.º 5
0
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()
Ejemplo n.º 6
0
class TeacherScheme(marshmallow.SQLAlchemySchema):
    class Meta:
        model = Teacher

    id = marshmallow.auto_field()
    user_id = marshmallow.auto_field()
Ejemplo n.º 7
0
class UserScheme(marshmallow.SQLAlchemySchema):
    class Meta:
        model = User

    id = marshmallow.auto_field()
    email = marshmallow.auto_field()