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