diff --git a/src/migration/1698126666203-create_users_table.ts b/src/migration/1698126666203-create_users_table.ts new file mode 100644 index 0000000..c5112fe --- /dev/null +++ b/src/migration/1698126666203-create_users_table.ts @@ -0,0 +1,28 @@ +import {MigrationInterface, QueryRunner, Table, TableIndex} from "typeorm" + +export class CreateUsersTable1698126666203 implements MigrationInterface { + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.createTable( + new Table({ + name: "users", + columns: [ + { + name: "id", + type: "unsignedint", + isPrimary: true, + } + ] + }) + ) + + // await queryRunner.createIndex("users", new TableIndex({ + // columnNames: [""], + // name: "IDX_USER_FIRST_NAME" + // }) + } + + public async down(queryRunner: QueryRunner): Promise { + } + +}