model-service/model_service/schemas/svmdetails_schema.py

14 lines
323 B
Python
Raw Normal View History

2020-10-01 22:48:00 +02:00
#!/usr/bin/env python3
from marshmallow import fields
2021-08-05 14:42:23 +02:00
from marshmallow_sqlalchemy import SQLAlchemyAutoSchema
2020-10-01 22:48:00 +02:00
from model import SVMDetails
2021-08-05 14:42:23 +02:00
class SVMDetailsSchema(SQLAlchemyAutoSchema):
2020-10-01 22:48:00 +02:00
class Meta:
model = SVMDetails
2021-08-05 14:42:23 +02:00
include_relationships = True
load_instance = True
include_fk = True