Includes workflow spec id

This commit is contained in:
Aaron Louie 2020-01-13 17:52:37 -05:00
parent 13470e4684
commit 53d72bdaae
1 changed files with 2 additions and 1 deletions

View File

@ -30,12 +30,13 @@ class FileModel(db.Model):
type = db.Column(db.Enum(FileType))
primary = db.Column(db.Boolean)
content_type = db.Column(db.String)
workflow_spec_id = db.Column(db.Integer, db.ForeignKey('workflow_spec.id'))
workflow_spec_id = db.Column(db.String, db.ForeignKey('workflow_spec.id'))
class FileModelSchema(ModelSchema):
class Meta:
model = FileModel
include_fk = True # Includes foreign keys
type = EnumField(FileType)