This commit is contained in:
fro1991
2025-10-19 15:29:21 +07:00
parent 6df19e1d18
commit 9cb6f82039
2 changed files with 12 additions and 0 deletions

View File

@ -1,11 +1,18 @@
import { Column, CreateDateColumn, DeleteDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm"; import { Column, CreateDateColumn, DeleteDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
import { Status } from "../types/status"; import { Status } from "../types/status";
import { TrxBankType } from "../types/trx";
@Entity("trx_banks", { schema: "trx" }) @Entity("trx_banks", { schema: "trx" })
export class TrxBank { export class TrxBank {
@PrimaryGeneratedColumn("uuid") @PrimaryGeneratedColumn("uuid")
id: string; id: string;
@Column({
nullable: false,
length: 64,
})
type: TrxBankType;
@Column({ @Column({
nullable: true, nullable: true,
length: 256, length: 256,

View File

@ -1,3 +1,8 @@
export enum TrxBankType {
"phone" = "phone",
"email" = "email",
}
export enum TrxVerificationType { export enum TrxVerificationType {
"phone" = "phone", "phone" = "phone",
"email" = "email", "email" = "email",