Files
n8n-enterprise-unlocked/packages/cli/src/databases/entities/EventDestinations.ts
T
कारतोफ्फेलस्क्रिप्ट™ dc2ba743eb refactor(core): Use mixins to delete redundant code between Entity classes (no-changelog) (#6616)
* db entities don't need an ID before they are inserted

* don't define constructors on entity classes, use repository.create instead

* use mixins to reduce duplicate code in db entity classes
2023-07-27 11:53:37 +02:00

13 lines
401 B
TypeScript

import { MessageEventBusDestinationOptions } from 'n8n-workflow';
import { Column, Entity, PrimaryColumn } from 'typeorm';
import { WithTimestamps, jsonColumnType } from './AbstractEntity';
@Entity({ name: 'event_destinations' })
export class EventDestinations extends WithTimestamps {
@PrimaryColumn('uuid')
id: string;
@Column(jsonColumnType)
destination: MessageEventBusDestinationOptions;
}