mirror of
https://github.com/aronwk-aaron/MSState-Library-ETD.git
synced 2025-12-20 03:49:43 -06:00
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
28 lines
507 B
Python
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
|