2019-06-23 03:35:23 -07:00
|
|
|
import {
|
|
|
|
WorkflowExecuteMode,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
import {
|
|
|
|
IExecutionFlattedDb,
|
|
|
|
IWorkflowDb,
|
|
|
|
} from '../../';
|
|
|
|
|
|
|
|
import {
|
|
|
|
Column,
|
|
|
|
Entity,
|
|
|
|
Index,
|
|
|
|
ManyToOne,
|
|
|
|
PrimaryGeneratedColumn,
|
|
|
|
} from "typeorm";
|
|
|
|
|
|
|
|
import { WorkflowEntity } from './WorkflowEntity';
|
|
|
|
|
|
|
|
@Entity()
|
|
|
|
export class ExecutionEntity implements IExecutionFlattedDb {
|
|
|
|
|
|
|
|
@PrimaryGeneratedColumn()
|
|
|
|
id: number;
|
|
|
|
|
|
|
|
@Column('text')
|
|
|
|
data: string;
|
|
|
|
|
|
|
|
@Column()
|
|
|
|
finished: boolean;
|
|
|
|
|
|
|
|
@Column()
|
|
|
|
mode: WorkflowExecuteMode;
|
|
|
|
|
|
|
|
@Column({ nullable: true })
|
|
|
|
retryOf: string;
|
|
|
|
|
|
|
|
@Column({ nullable: true })
|
|
|
|
retrySuccessId: string;
|
|
|
|
|
|
|
|
@Column()
|
2019-07-22 11:29:06 -07:00
|
|
|
startedAt: Date;
|
2019-06-23 03:35:23 -07:00
|
|
|
|
|
|
|
@Column()
|
2019-07-22 11:29:06 -07:00
|
|
|
stoppedAt: Date;
|
2019-06-23 03:35:23 -07:00
|
|
|
|
|
|
|
@Column('simple-json')
|
|
|
|
workflowData: IWorkflowDb;
|
|
|
|
|
|
|
|
@Index()
|
|
|
|
@Column({ nullable: true })
|
|
|
|
workflowId: string;
|
|
|
|
}
|