update customer approved'
;
This commit is contained in:
71
src/entity/trx_customer_slas.ts
Normal file
71
src/entity/trx_customer_slas.ts
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
|
import { TrxCustomerPosition, TrxCustomerStatus } from "../types/trx";
|
||||||
|
import { TrxCustomer } from "./trx_customers";
|
||||||
|
|
||||||
|
@Entity("trx_customer_slas", { schema: "trx" })
|
||||||
|
export class TrxCustomerSla {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => TrxCustomer, { onDelete: "NO ACTION" })
|
||||||
|
@JoinColumn()
|
||||||
|
customer: TrxCustomer;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
position: TrxCustomerPosition;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
status: TrxCustomerStatus;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
start_by: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
start_at: Date;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
end_by: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
end_at: Date;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
type: "float8",
|
||||||
|
})
|
||||||
|
duration: number;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@CreateDateColumn()
|
||||||
|
created_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
created_by: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@UpdateDateColumn()
|
||||||
|
updated_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
updated_by: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@DeleteDateColumn()
|
||||||
|
deleted_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
deleted_by: string;
|
||||||
|
}
|
||||||
@ -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 { TrxCustomerStatus, TrxCustomerType, TrxIdentityType } from "../types/trx";
|
import { TrxCustomerPosition, 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";
|
||||||
|
|
||||||
@ -99,6 +99,35 @@ export class TrxCustomer {
|
|||||||
})
|
})
|
||||||
identity_type: TrxIdentityType;
|
identity_type: TrxIdentityType;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
position: TrxCustomerPosition;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
tellered_by: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
tellered_at: Date;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
default: false,
|
||||||
|
})
|
||||||
|
is_teller: boolean;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
manager_by: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
manager_at: Date;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
default: false,
|
||||||
|
})
|
||||||
|
is_manager: boolean;
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
|
|||||||
@ -8,6 +8,7 @@ export * from "../entity/trx_customer_user_signatures";
|
|||||||
export * from "../entity/trx_customer_user_refresh_tokens";
|
export * from "../entity/trx_customer_user_refresh_tokens";
|
||||||
export * from "../entity/trx_customer_user_activities";
|
export * from "../entity/trx_customer_user_activities";
|
||||||
export * from "../entity/trx_customer_costs";
|
export * from "../entity/trx_customer_costs";
|
||||||
|
export * from "../entity/trx_customer_slas";
|
||||||
export * from "../entity/trx_countries";
|
export * from "../entity/trx_countries";
|
||||||
export * from "../entity/trx_currencies";
|
export * from "../entity/trx_currencies";
|
||||||
export * from "../entity/trx_country_currencies";
|
export * from "../entity/trx_country_currencies";
|
||||||
|
|||||||
@ -15,11 +15,11 @@ export enum TrxVerificationStatus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export enum TrxCustomerStatus {
|
export enum TrxCustomerStatus {
|
||||||
"Pending Supervisor" = "pending_supervisor",
|
"pending_supervisor" = "pending_supervisor",
|
||||||
"Pending Manager" = "pending_manager",
|
"pending_manager" = "pending_manager",
|
||||||
"Reject" = "reject",
|
"reject" = "reject",
|
||||||
"Active" = "active",
|
"active" = "active",
|
||||||
"Not Active" = "not_active",
|
"not_active" = "not_active",
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum TrxCustomerType {
|
export enum TrxCustomerType {
|
||||||
@ -27,6 +27,12 @@ export enum TrxCustomerType {
|
|||||||
"business" = "business",
|
"business" = "business",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum TrxCustomerPosition {
|
||||||
|
"teller" = "teller",
|
||||||
|
"manager" = "manager",
|
||||||
|
"done" = "done",
|
||||||
|
}
|
||||||
|
|
||||||
export enum TrxCostCode {
|
export enum TrxCostCode {
|
||||||
"BRI_TL_USD" = "BRI_TL_USD",
|
"BRI_TL_USD" = "BRI_TL_USD",
|
||||||
"OTHER_TL_USD" = "OTHER_TL_USD",
|
"OTHER_TL_USD" = "OTHER_TL_USD",
|
||||||
|
|||||||
Reference in New Issue
Block a user