This commit is contained in:
fro1991
2025-11-05 21:23:10 +07:00
parent 039c127f5b
commit 61a2309641
2 changed files with 10 additions and 2 deletions

View File

@ -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()

View File

@ -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",