feat: Implement initial version of processor
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
4a8c3988c2
commit
ba2b5afe2b
@@ -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',
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user