feat: add reset password

This commit is contained in:
2026-11-22 09:25:21 +03:30
parent 88b4a99908
commit 302d06b44f
15 changed files with 197 additions and 26 deletions
@@ -0,0 +1,13 @@
import { MigrationInterface, QueryRunner } from 'typeorm';
export class OtpPurpose1795305600000 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "otp" ADD "purpose" varchar NOT NULL DEFAULT 'signup'`,
);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "otp" DROP COLUMN "purpose"`);
}
}