mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-09-28 04:31:43 +02:00
* 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
13 lines
401 B
TypeScript
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;
|
|
}
|