Added migrations to Sqlite and Mysql

This commit is contained in:
ricardo
2020-06-17 23:42:04 -04:00
parent cee5c522de
commit 84c4b32261
6 changed files with 132 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
import {
Column,
Entity,
PrimaryColumn,
Index,
} from 'typeorm';
import {
@@ -9,15 +9,16 @@ import {
} from '../../Interfaces';
@Entity()
@Index(['webhookPath', 'method'], { unique: true })
export class WebhookEntity implements IWebhookDb {
@Column()
workflowId: number;
@PrimaryColumn()
@Column()
webhookPath: string;
@PrimaryColumn()
@Column()
method: string;
@Column()