Commit 86f6d008 authored by Zach Perkins's avatar Zach Perkins

Added marshmallow schemas

parent 4ef83d31
from marshmallow_sqlalchemy import SQLAlchemyAutoSchema
from .model import Point, Category, Field
class PointSchema(SQLAlchemyAutoSchema):
class Meta:
model = Point
include_relationships = True
load_instance = True
class CategorySchema(SQLAlchemyAutoSchema):
class Meta:
model = Category
include_relationships = True
load_instance = True
class FieldSchema(SQLAlchemyAutoSchema):
class Meta:
model = Field
include_relationships = True
load_instance = True
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment