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