mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
26 lines
459 B
TypeScript
26 lines
459 B
TypeScript
import { Column, Entity, Index, PrimaryColumn } from 'typeorm';
|
|
|
|
import { IWebhookDb } from '../../Interfaces';
|
|
|
|
@Entity()
|
|
@Index(['webhookId', 'method', 'pathLength'])
|
|
export class WebhookEntity implements IWebhookDb {
|
|
@Column()
|
|
workflowId: number;
|
|
|
|
@PrimaryColumn()
|
|
webhookPath: string;
|
|
|
|
@PrimaryColumn()
|
|
method: string;
|
|
|
|
@Column()
|
|
node: string;
|
|
|
|
@Column({ nullable: true })
|
|
webhookId: string;
|
|
|
|
@Column({ nullable: true })
|
|
pathLength: number;
|
|
}
|