import { MigrationInterface , QueryRunner } from 'typeorm' ; export class CreateUsersTable1611484925515 implements MigrationInterface { public async up ( queryRunner ) { await queryRunner . query ( `CREATE TABLE users (
            id int(11) NOT NULL AUTO_INCREMENT,
            firstName varchar(255) NOT NULL,
            lastName varchar(255) NOT NULL,
            email varchar(255) NOT NULL,
            password varchar(255) NOT NULL,
            PRIMARY KEY (id)
        ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;` ) ; } public async down ( queryRunner ) { await queryRunner . query ( `DROP TABLE IF EXISTS users;` ) ; } }