n8n/packages/cli/src/databases/mysqldb/WebhookEntity.ts

31 lines
393 B
TypeScript
Raw Normal View History

2020-05-27 16:32:49 -07:00
import {
Column,
Entity,
Unique,
PrimaryGeneratedColumn,
} from 'typeorm';
import {
IWebhookDb,
} from '../../Interfaces';
@Entity()
@Unique(['webhookPath', 'method'])
export class WebhookEntity implements IWebhookDb {
@PrimaryGeneratedColumn()
id: number;
@Column()
workflowId: number;
@Column()
webhookPath: string;
@Column()
method: string;
@Column()
node: string;
}