Add mongodb migration

This commit is contained in:
ricardo
2020-06-20 21:59:06 -04:00
parent 84c4b32261
commit 3ca9647215
6 changed files with 73 additions and 11 deletions

View File

@@ -2,6 +2,8 @@ import {
Column,
Entity,
Index,
ObjectID,
ObjectIdColumn,
} from 'typeorm';
import {
@@ -9,9 +11,11 @@ import {
} from '../../Interfaces';
@Entity()
@Index(['webhookPath', 'method'], { unique: true })
export class WebhookEntity implements IWebhookDb {
@ObjectIdColumn()
id: ObjectID;
@Column()
workflowId: number;