import { MigrationInterface, QueryRunner } from "typeorm";

export class Migrations1731666797097 implements MigrationInterface {
    name = 'Migrations1731666797097'

    public async up(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`CREATE TABLE "file_managers" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "file_name" character varying NOT NULL DEFAULT '', "extension" character varying NOT NULL DEFAULT '', "source_from" character varying NOT NULL DEFAULT '', "file_path" text DEFAULT '', "total_row_count" integer NOT NULL DEFAULT '0', "success_row_count" integer NOT NULL DEFAULT '0', "failed_row_count" integer NOT NULL DEFAULT '0', "created_at" TIMESTAMP(0) NOT NULL DEFAULT now(), "updated_at" TIMESTAMP(0) NOT NULL DEFAULT now(), "deleted_at" TIMESTAMP(0), CONSTRAINT "PK_13f50d46588610cbb65078f1b7b" PRIMARY KEY ("id"))`);
    }

    public async down(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`DROP TABLE "file_managers"`);
    }

}
