mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 17:14:05 -08:00
52 lines
705 B
TypeScript
52 lines
705 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('varchar')
|
|
mode: WorkflowExecuteMode;
|
|
|
|
@Column({ nullable: true })
|
|
retryOf: string;
|
|
|
|
@Column({ nullable: true })
|
|
retrySuccessId: string;
|
|
|
|
@Column()
|
|
startedAt: Date;
|
|
|
|
@Column()
|
|
stoppedAt: Date;
|
|
|
|
@Column('simple-json')
|
|
workflowData: IWorkflowDb;
|
|
|
|
@Index()
|
|
@Column({ nullable: true })
|
|
workflowId: string;
|
|
}
|