mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
23 lines
424 B
TypeScript
23 lines
424 B
TypeScript
import { Column, Entity, ManyToOne, PrimaryGeneratedColumn } from '@n8n/typeorm';
|
|
import { ExecutionEntity } from './execution-entity';
|
|
|
|
@Entity()
|
|
export class ExecutionMetadata {
|
|
@PrimaryGeneratedColumn()
|
|
id: number;
|
|
|
|
@ManyToOne('ExecutionEntity', 'metadata', {
|
|
onDelete: 'CASCADE',
|
|
})
|
|
execution: ExecutionEntity;
|
|
|
|
@Column()
|
|
executionId: string;
|
|
|
|
@Column('text')
|
|
key: string;
|
|
|
|
@Column('text')
|
|
value: string;
|
|
}
|