"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Slider1703544380255 = void 0;
class Slider1703544380255 {
    constructor() {
        this.name = 'Slider1703544380255';
    }
    async up(queryRunner) {
        await queryRunner.query(`CREATE TABLE \`slider\` (\`id\` varchar(36) NOT NULL, \`name\` varchar(255) NOT NULL, \`description\` varchar(255) NOT NULL, \`createdAt\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updatedAt\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`image_id\` varchar(36) NULL, UNIQUE INDEX \`REL_2dfd271039289e5a2a5c1fc153\` (\`image_id\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
        await queryRunner.query(`ALTER TABLE \`slider\` ADD CONSTRAINT \`FK_2dfd271039289e5a2a5c1fc153b\` FOREIGN KEY (\`image_id\`) REFERENCES \`file\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
    }
    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE \`slider\` DROP FOREIGN KEY \`FK_2dfd271039289e5a2a5c1fc153b\``);
        await queryRunner.query(`DROP INDEX \`REL_2dfd271039289e5a2a5c1fc153\` ON \`slider\``);
        await queryRunner.query(`DROP TABLE \`slider\``);
    }
}
exports.Slider1703544380255 = Slider1703544380255;
//# sourceMappingURL=1703544380255-slider.js.map