refactor nest app to server folder

This commit is contained in:
Roland Schneider
2025-11-06 17:24:11 +01:00
parent ea74d34363
commit 532299c864
42 changed files with 6 additions and 6 deletions

View File

@@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from 'typeorm';
export class AddAdminUser1761581879633 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
// add dev user: admin:123456
await queryRunner.query(
`insert into "user" ( username, email, password) values ('admin','admin@test.com','$2a$12$sT7bIBfUdAvCzcwyppSX/uVd4EP6ORgWiEg7jqXvMKJErR5jWhnmO');`,
);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query("delete from user where username='admin'");
}
}