export class AddIncomingEmailMonitor1768335589018 {
    constructor() {
        this.name = "AddIncomingEmailMonitor1768335589018";
    }
    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE "Monitor" ADD "incomingEmailSecretKey" uuid`);
        await queryRunner.query(`CREATE INDEX "IDX_Monitor_incomingEmailSecretKey" ON "Monitor" ("incomingEmailSecretKey")`);
        await queryRunner.query(`ALTER TABLE "Monitor" ADD "incomingEmailMonitorLastEmailReceivedAt" TIMESTAMP WITH TIME ZONE`);
        await queryRunner.query(`CREATE INDEX "IDX_Monitor_incomingEmailMonitorLastEmailReceivedAt" ON "Monitor" ("incomingEmailMonitorLastEmailReceivedAt")`);
        await queryRunner.query(`ALTER TABLE "Monitor" ADD "incomingEmailMonitorRequest" jsonb`);
        await queryRunner.query(`ALTER TABLE "Monitor" ADD "incomingEmailMonitorHeartbeatCheckedAt" TIMESTAMP WITH TIME ZONE`);
        await queryRunner.query(`CREATE INDEX "IDX_Monitor_incomingEmailMonitorHeartbeatCheckedAt" ON "Monitor" ("incomingEmailMonitorHeartbeatCheckedAt")`);
    }
    async down(queryRunner) {
        await queryRunner.query(`DROP INDEX "IDX_Monitor_incomingEmailMonitorHeartbeatCheckedAt"`);
        await queryRunner.query(`ALTER TABLE "Monitor" DROP COLUMN "incomingEmailMonitorHeartbeatCheckedAt"`);
        await queryRunner.query(`ALTER TABLE "Monitor" DROP COLUMN "incomingEmailMonitorRequest"`);
        await queryRunner.query(`DROP INDEX "IDX_Monitor_incomingEmailMonitorLastEmailReceivedAt"`);
        await queryRunner.query(`ALTER TABLE "Monitor" DROP COLUMN "incomingEmailMonitorLastEmailReceivedAt"`);
        await queryRunner.query(`DROP INDEX "IDX_Monitor_incomingEmailSecretKey"`);
        await queryRunner.query(`ALTER TABLE "Monitor" DROP COLUMN "incomingEmailSecretKey"`);
    }
}
//# sourceMappingURL=1768335589018-AddIncomingEmailMonitor.js.map