* refactor: use consistent folder structure across workflow, core, and cli * setup typescript project references across workflow, core, and cli
26 lines
455 B
TypeScript
26 lines
455 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;
|
|
}
|