import { MigrationInterface, QueryRunner } from 'typeorm';

export class createNewTableServiceDayClosed1672351690366
  implements MigrationInterface
{
  name = 'createNewTableServiceDayClosed1672351690366';

  public async up(queryRunner: QueryRunner): Promise<void> {
    await queryRunner.query(
      `CREATE TABLE \`service_closed_days\`
      ( \`id\` INT(11) NOT NULL AUTO_INCREMENT , 
      \`date\` DATE NOT NULL ,
      \`description\` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL ,
      \`createdAt\` DATETIME NOT NULL ,
      \`updatedAt\` DATETIME NOT NULL ,
      PRIMARY KEY (\`id\`)) ENGINE = InnoDB`,
    );
  }

  public async down(queryRunner: QueryRunner): Promise<void> {
    //
  }
}
