import { MigrationInterface , QueryRunner } from "typeorm" ; export class Api1589834500772 implements MigrationInterface { name = 'Api1589834500772' ; public async up ( queryRunner ) { await queryRunner . query ( "CREATE TABLE `user` (`id` int NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `username` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `password` varchar(60) NOT NULL, PRIMARY KEY (`id`)) ENGINE=InnoDB" , undefined ) ; } public async down ( queryRunner ) { await queryRunner . query ( "DROP TABLE `user`" , undefined ) ; } }