import { MigrationInterface , QueryRunner } from 'typeorm' ; /**
 * Insert user with
 * username: admin
 * password: 123456
 */ export class Users1576124847819 implements MigrationInterface { async up ( queryRunner ) { await queryRunner . query ( `
      INSERT INTO users (username, email, phone, password)
      VALUES ('admin', 'example@example.com', '9231002233', '$2b$10$A4x21zZO7IKU59ScZNozee7ndO1MXcDXkaZ8h3oTI65D7qRPDatTO');
    ` ) ; } async down ( queryRunner ) { await queryRunner . query ( `
      DELETE FROM users WHERE username = 'admin';
    ` ) ; } }