feat: Implement initial version of processor

This commit is contained in:
Faruk AYDIN
2022-02-20 17:34:28 +03:00
committed by Ömer Faruk Aydın
parent 4a8c3988c2
commit ba2b5afe2b
5 changed files with 88 additions and 19 deletions

View File

@@ -1,10 +1,12 @@
import Base from './base';
import Flow from './flow';
import ExecutionStep from './execution-step';
class Execution extends Base {
id!: string;
flowId!: number;
testRun: boolean;
executionSteps: ExecutionStep[];
static tableName = 'executions';
@@ -27,6 +29,14 @@ class Execution extends Base {
to: 'flows.id',
},
},
executionSteps: {
relation: Base.HasManyRelation,
modelClass: ExecutionStep,
join: {
from: 'executions.id',
to: 'execution_steps.execution_id',
},
},
});
}