mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
31 lines
383 B
TypeScript
31 lines
383 B
TypeScript
import {
|
|
Column,
|
|
Entity,
|
|
Unique,
|
|
PrimaryGeneratedColumn,
|
|
} from 'typeorm';
|
|
|
|
import {
|
|
IWebhookDb,
|
|
} from '../../';
|
|
|
|
@Entity()
|
|
@Unique(['webhookPath', 'method'])
|
|
export class WebhookEntity implements IWebhookDb {
|
|
|
|
@PrimaryGeneratedColumn()
|
|
id: number;
|
|
|
|
@Column()
|
|
workflowId: number;
|
|
|
|
@Column()
|
|
webhookPath: string;
|
|
|
|
@Column()
|
|
method: string;
|
|
|
|
@Column()
|
|
node: string;
|
|
}
|