From 37920340fa2a392286152cb73be63f708b3bb9f0 Mon Sep 17 00:00:00 2001 From: "fazri.is" Date: Wed, 17 Sep 2025 13:51:53 +0700 Subject: [PATCH] update trx_otp_email --- src/entity/trx_otp_email.ts | 4 ++-- src/entity/trx_otp_number.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/entity/trx_otp_email.ts b/src/entity/trx_otp_email.ts index 9aac161..a4d8abe 100644 --- a/src/entity/trx_otp_email.ts +++ b/src/entity/trx_otp_email.ts @@ -16,7 +16,7 @@ export class TrxOtpEmail { unique: true, length: 64, }) - number: string; + email: string; @Column({ nullable: false, @@ -24,8 +24,8 @@ export class TrxOtpEmail { expired: Date; @Column({ + nullable: false, default: false, - length: 64, }) status: boolean; diff --git a/src/entity/trx_otp_number.ts b/src/entity/trx_otp_number.ts index 19dd507..bd8a8e0 100644 --- a/src/entity/trx_otp_number.ts +++ b/src/entity/trx_otp_number.ts @@ -25,7 +25,6 @@ export class TrxOtpNumber { @Column({ default: false, - length: 64, }) status: boolean;