2019-07-22 11:29:06 -07:00
|
|
|
import {
|
|
|
|
WorkflowExecuteMode,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
import {
|
|
|
|
IExecutionFlattedDb,
|
|
|
|
IWorkflowDb,
|
|
|
|
} from '../../';
|
|
|
|
|
|
|
|
import {
|
|
|
|
Column,
|
|
|
|
Entity,
|
|
|
|
Index,
|
|
|
|
PrimaryGeneratedColumn,
|
2019-09-19 05:14:37 -07:00
|
|
|
} from 'typeorm';
|
2019-07-22 11:29:06 -07:00
|
|
|
|
|
|
|
|
|
|
|
@Entity()
|
|
|
|
export class ExecutionEntity implements IExecutionFlattedDb {
|
|
|
|
|
|
|
|
@PrimaryGeneratedColumn()
|
|
|
|
id: number;
|
|
|
|
|
|
|
|
@Column('text')
|
|
|
|
data: string;
|
|
|
|
|
|
|
|
@Column()
|
|
|
|
finished: boolean;
|
|
|
|
|
2019-12-21 13:04:47 -08:00
|
|
|
@Column('varchar')
|
2019-07-22 11:29:06 -07:00
|
|
|
mode: WorkflowExecuteMode;
|
|
|
|
|
|
|
|
@Column({ nullable: true })
|
|
|
|
retryOf: string;
|
|
|
|
|
|
|
|
@Column({ nullable: true })
|
|
|
|
retrySuccessId: string;
|
|
|
|
|
|
|
|
@Column('timestamp')
|
|
|
|
startedAt: Date;
|
|
|
|
|
2020-07-17 08:08:40 -07:00
|
|
|
@Index()
|
2019-07-22 11:29:06 -07:00
|
|
|
@Column('timestamp')
|
|
|
|
stoppedAt: Date;
|
|
|
|
|
|
|
|
@Column('json')
|
|
|
|
workflowData: IWorkflowDb;
|
|
|
|
|
|
|
|
@Index()
|
|
|
|
@Column({ nullable: true })
|
|
|
|
workflowId: string;
|
|
|
|
}
|