Files
MSState-Library-ETD/app/schemas.py
Aaron Kimbrell 22ba2a7e0a Cleaning up
Separated out commands into it's own file, so more can be added if needed.
Pulled email templates into app template folder for easy access.
Added Argon2 settings to .... settings
2019-04-20 18:44:49 -05:00

28 lines
507 B
Python

from flask_marshmallow.sqla import ModelSchema
from .models import User, Notification, Submission, Revision, Review
class UserSchema(ModelSchema):
class Meta:
model = User
class NotificationsSchema(ModelSchema):
class Meta:
model = Notification
class SubmissionSchema(ModelSchema):
class Meta:
model = Submission
class RevisionSchema(ModelSchema):
class Meta:
model = Revision
class ReviewSchema(ModelSchema):
class Meta:
model = Review