From 9cb6f82039cc9415028bb1a0420b295fe726fd0a Mon Sep 17 00:00:00 2001 From: fro1991 Date: Sun, 19 Oct 2025 15:29:21 +0700 Subject: [PATCH] update --- src/entity/trx_banks.ts | 7 +++++++ src/types/trx.ts | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/src/entity/trx_banks.ts b/src/entity/trx_banks.ts index 67e8d18..3e312ee 100644 --- a/src/entity/trx_banks.ts +++ b/src/entity/trx_banks.ts @@ -1,11 +1,18 @@ import { Column, CreateDateColumn, DeleteDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm"; import { Status } from "../types/status"; +import { TrxBankType } from "../types/trx"; @Entity("trx_banks", { schema: "trx" }) export class TrxBank { @PrimaryGeneratedColumn("uuid") id: string; + @Column({ + nullable: false, + length: 64, + }) + type: TrxBankType; + @Column({ nullable: true, length: 256, diff --git a/src/types/trx.ts b/src/types/trx.ts index ff0df4e..daedd53 100644 --- a/src/types/trx.ts +++ b/src/types/trx.ts @@ -1,3 +1,8 @@ +export enum TrxBankType { + "phone" = "phone", + "email" = "email", +} + export enum TrxVerificationType { "phone" = "phone", "email" = "email",