update
This commit is contained in:
@ -2,8 +2,8 @@ import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToO
|
|||||||
import { TrxTransactionPosition, TrxTransactionStatus } from "../types/trx";
|
import { TrxTransactionPosition, TrxTransactionStatus } from "../types/trx";
|
||||||
import { TrxTransaction } from "./trx_transactions";
|
import { TrxTransaction } from "./trx_transactions";
|
||||||
|
|
||||||
@Entity("trx_transaction_activities", { schema: "trx" })
|
@Entity("trx_transaction_slas", { schema: "trx" })
|
||||||
export class TrxTransactionActivity {
|
export class TrxTransactionSla {
|
||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@ -14,32 +14,38 @@ export class TrxTransactionActivity {
|
|||||||
@Column({
|
@Column({
|
||||||
length: 256,
|
length: 256,
|
||||||
})
|
})
|
||||||
activity_by: string;
|
position: TrxTransactionPosition;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
status: TrxTransactionStatus;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
start_by: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
})
|
})
|
||||||
activity_at: Date;
|
start_at: Date;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 256,
|
length: 256,
|
||||||
})
|
})
|
||||||
position_before: TrxTransactionPosition;
|
end_by: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 256,
|
nullable: true,
|
||||||
})
|
})
|
||||||
status_before: TrxTransactionStatus;
|
end_at: Date;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 256,
|
nullable: true,
|
||||||
|
type: "float8",
|
||||||
})
|
})
|
||||||
position_after: TrxTransactionPosition;
|
duration: number;
|
||||||
|
|
||||||
@Column({
|
|
||||||
length: 256,
|
|
||||||
})
|
|
||||||
status_after: TrxTransactionStatus;
|
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
@ -13,6 +13,9 @@ export class TrxTransaction {
|
|||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
transaction_at: Date;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 256,
|
length: 256,
|
||||||
})
|
})
|
||||||
@ -87,6 +90,36 @@ export class TrxTransaction {
|
|||||||
})
|
})
|
||||||
underlying_file: string;
|
underlying_file: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
checked_by: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
checked_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
signed_by: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
signed_at: Date;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
settlement_file: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
settlemented_by: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
settlemented_at: Date;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
note: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 256,
|
length: 256,
|
||||||
})
|
})
|
||||||
@ -103,18 +136,6 @@ export class TrxTransaction {
|
|||||||
})
|
})
|
||||||
remark: string;
|
remark: string;
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: true,
|
|
||||||
length: 256,
|
|
||||||
})
|
|
||||||
settlement_file: string;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: true,
|
|
||||||
length: 4096,
|
|
||||||
})
|
|
||||||
note: string;
|
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
|
|||||||
@ -12,5 +12,5 @@ export * from "../entity/trx_banks";
|
|||||||
export * from "../entity/trx_bank_swifts";
|
export * from "../entity/trx_bank_swifts";
|
||||||
export * from "../entity/trx_receivers";
|
export * from "../entity/trx_receivers";
|
||||||
export * from "../entity/trx_transactions";
|
export * from "../entity/trx_transactions";
|
||||||
export * from "../entity/trx_transaction_activities";
|
export * from "../entity/trx_transaction_slas";
|
||||||
export * from "../types/trx";
|
export * from "../types/trx";
|
||||||
|
|||||||
@ -50,23 +50,17 @@ export enum TrxTransactionType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export enum TrxTransactionPosition {
|
export enum TrxTransactionPosition {
|
||||||
"customer_draft" = "customer_draft",
|
"customer" = "customer",
|
||||||
"bri_pending_deal_request" = "bri_pending_deal_request",
|
"bri" = "bri",
|
||||||
"customer_pending_deal_approve" = "customer_pending_deal_approve",
|
|
||||||
"customer_pending_checker" = "customer_pending_checker",
|
|
||||||
"customer_pending_signer" = "customer_pending_signer",
|
|
||||||
"bri_process_settlement" = "bri_process_settlement",
|
|
||||||
"customer_success" = "customer_success",
|
|
||||||
"customer_reject" = "customer_reject",
|
|
||||||
"custoemr_cancel" = "custoemr_cancel",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum TrxTransactionStatus {
|
export enum TrxTransactionStatus {
|
||||||
"draft" = "draft",
|
"draft" = "draft",
|
||||||
"pending_deal_request" = "pending_deal_request",
|
"create" = "create",
|
||||||
"pending_deal_approve" = "pending_deal_approve",
|
|
||||||
"pending_checker" = "pending_checker",
|
"pending_checker" = "pending_checker",
|
||||||
"pending_signer" = "pending_signer",
|
"pending_signer" = "pending_signer",
|
||||||
|
"process_deal_request" = "process_deal_request",
|
||||||
|
"process_deal_approve" = "process_deal_approve",
|
||||||
"process_settlement" = "process_settlement",
|
"process_settlement" = "process_settlement",
|
||||||
"success" = "success",
|
"success" = "success",
|
||||||
"reject" = "reject",
|
"reject" = "reject",
|
||||||
|
|||||||
Reference in New Issue
Block a user