mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-22 20:58:28 +00:00
Added standalone
column to workflow_spec
Added `user_id` column to workflow
This commit is contained in:
parent
fa818bd751
commit
c0655c9d03
@ -33,6 +33,7 @@ class WorkflowSpecModel(db.Model):
|
|||||||
category_id = db.Column(db.Integer, db.ForeignKey('workflow_spec_category.id'), nullable=True)
|
category_id = db.Column(db.Integer, db.ForeignKey('workflow_spec_category.id'), nullable=True)
|
||||||
category = db.relationship("WorkflowSpecCategoryModel")
|
category = db.relationship("WorkflowSpecCategoryModel")
|
||||||
is_master_spec = db.Column(db.Boolean, default=False)
|
is_master_spec = db.Column(db.Boolean, default=False)
|
||||||
|
standalone = db.Column(db.Boolean, default=False)
|
||||||
|
|
||||||
|
|
||||||
class WorkflowSpecModelSchema(SQLAlchemyAutoSchema):
|
class WorkflowSpecModelSchema(SQLAlchemyAutoSchema):
|
||||||
@ -88,6 +89,7 @@ class WorkflowModel(db.Model):
|
|||||||
total_tasks = db.Column(db.Integer, default=0)
|
total_tasks = db.Column(db.Integer, default=0)
|
||||||
completed_tasks = db.Column(db.Integer, default=0)
|
completed_tasks = db.Column(db.Integer, default=0)
|
||||||
last_updated = db.Column(db.DateTime)
|
last_updated = db.Column(db.DateTime)
|
||||||
|
user_id = db.Column(db.String, default=None)
|
||||||
# Order By is important or generating hashes on reviews.
|
# Order By is important or generating hashes on reviews.
|
||||||
dependencies = db.relationship(WorkflowSpecDependencyFile, cascade="all, delete, delete-orphan",
|
dependencies = db.relationship(WorkflowSpecDependencyFile, cascade="all, delete, delete-orphan",
|
||||||
order_by="WorkflowSpecDependencyFile.file_data_id")
|
order_by="WorkflowSpecDependencyFile.file_data_id")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user