update
This commit is contained in:
@ -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,
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
export enum TrxBankType {
|
||||
"phone" = "phone",
|
||||
"email" = "email",
|
||||
}
|
||||
|
||||
export enum TrxVerificationType {
|
||||
"phone" = "phone",
|
||||
"email" = "email",
|
||||
|
||||
Reference in New Issue
Block a user