Skip to content
Snippets Groups Projects
Commit 69a83254 authored by Nathan Hertz's avatar Nathan Hertz
Browse files

Small final touches on schema

parent e5394e9b
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@ class Capability(Base, CapabilityIF):
self, parameters: ParametersIF, future_products: FutureProductIF, versions: str
):
"""
Create a new request for this capability
Create a new request for this capability with specific options
"""
return CapabilityRequest(
capability=self.capability_name,
......@@ -143,6 +143,9 @@ class CapabilityRequest(Base, CapabilityRequestIF):
class CapabilityExecution(Base, CapabilityExecutionIF):
"""
Schema representation of a capability request's execution record
"""
__tablename__ = 'capability_executions'
id = sa.Column('execution_id', sa.Integer, primary_key=True)
workflow_request = sa.Column(
......@@ -150,6 +153,7 @@ class CapabilityExecution(Base, CapabilityExecutionIF):
sa.Integer,
sa.ForeignKey('workflow_requests.workflow_request_id')
)
current_step = sa.Column('current_step', sa.Integer)
class Workflow(Base):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment