update
This commit is contained in:
@ -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,
|
||||||
|
|||||||
@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user