mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
52 lines
711 B
TypeScript
52 lines
711 B
TypeScript
|
import {
|
||
|
WorkflowExecuteMode,
|
||
|
} from 'n8n-workflow';
|
||
|
|
||
|
import {
|
||
|
IExecutionFlattedDb,
|
||
|
IWorkflowDb,
|
||
|
} from '../../';
|
||
|
|
||
|
import {
|
||
|
Column,
|
||
|
Entity,
|
||
|
Index,
|
||
|
PrimaryGeneratedColumn,
|
||
|
} from "typeorm";
|
||
|
|
||
|
|
||
|
@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('timestamp')
|
||
|
startedAt: Date;
|
||
|
|
||
|
@Column('timestamp')
|
||
|
stoppedAt: Date;
|
||
|
|
||
|
@Column('json')
|
||
|
workflowData: IWorkflowDb;
|
||
|
|
||
|
@Index()
|
||
|
@Column({ nullable: true })
|
||
|
workflowId: string;
|
||
|
}
|