update
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinTable, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinTable, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
import { Status } from "../types/status";
|
import { Status } from "../types/status";
|
||||||
import { TrxCustomerType, TrxIdentityType } from "../types/trx";
|
import { TrxCustomerStatus, TrxCustomerType, TrxIdentityType } from "../types/trx";
|
||||||
import { TrxOccupation } from "./trx_occupations";
|
import { TrxOccupation } from "./trx_occupations";
|
||||||
import { TrxCountry } from "./trx_countries";
|
import { TrxCountry } from "./trx_countries";
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ export class TrxCustomer {
|
|||||||
nullable: false,
|
nullable: false,
|
||||||
length: 64,
|
length: 64,
|
||||||
})
|
})
|
||||||
status: Status;
|
status: TrxCustomerStatus;
|
||||||
|
|
||||||
@ManyToOne(() => TrxOccupation, { onDelete: "NO ACTION" })
|
@ManyToOne(() => TrxOccupation, { onDelete: "NO ACTION" })
|
||||||
@JoinTable()
|
@JoinTable()
|
||||||
|
|||||||
@ -14,6 +14,14 @@ export enum TrxVerificationStatus {
|
|||||||
"expire" = "expire",
|
"expire" = "expire",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum TrxCustomerStatus {
|
||||||
|
"Pending Supervisor" = "pending_supervisor",
|
||||||
|
"Pending Manager" = "pending_manager",
|
||||||
|
"Reject" = "reject",
|
||||||
|
"Active" = "active",
|
||||||
|
"Not Active" = "not_active",
|
||||||
|
}
|
||||||
|
|
||||||
export enum TrxCustomerType {
|
export enum TrxCustomerType {
|
||||||
"personal" = "personal",
|
"personal" = "personal",
|
||||||
"business" = "business",
|
"business" = "business",
|
||||||
|
|||||||
Reference in New Issue
Block a user