From e22966b3f0f79e117f5bb57bfe85418f964620b3 Mon Sep 17 00:00:00 2001 From: fro1991 Date: Wed, 29 Oct 2025 21:53:26 +0700 Subject: [PATCH 01/19] update --- src/entity/trx_banks.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/entity/trx_banks.ts b/src/entity/trx_banks.ts index 3fd00d8..f77b3de 100644 --- a/src/entity/trx_banks.ts +++ b/src/entity/trx_banks.ts @@ -29,6 +29,16 @@ export class TrxBank { }) account_validate: boolean; + @Column({ + default: false, + }) + iban: boolean; + + @Column({ + default: false, + }) + bsb: boolean; + @Column() @CreateDateColumn() created_at: Date; From 593356e4e5614a5236cc869fc2b51b8ad7745350 Mon Sep 17 00:00:00 2001 From: fro1991 Date: Wed, 29 Oct 2025 21:55:00 +0700 Subject: [PATCH 02/19] update --- src/entity/trx_receivers.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/entity/trx_receivers.ts b/src/entity/trx_receivers.ts index 22c1dae..b458efc 100644 --- a/src/entity/trx_receivers.ts +++ b/src/entity/trx_receivers.ts @@ -56,6 +56,18 @@ export class TrxReceiver { }) account_number: string; + @Column({ + nullable: true, + length: 256, + }) + iban: string; + + @Column({ + nullable: true, + length: 256, + }) + bsb: string; + @Column() @CreateDateColumn() created_at: Date; From 1a7ef5020e9b8aae22234a0cd4fc21a796e4d29c Mon Sep 17 00:00:00 2001 From: fro1991 Date: Wed, 29 Oct 2025 22:08:10 +0700 Subject: [PATCH 03/19] update --- src/entity/trx_purposes.ts | 43 ++++++++++++++++++++++++++++++++++++++ src/schema/trx.ts | 1 + 2 files changed, 44 insertions(+) create mode 100644 src/entity/trx_purposes.ts diff --git a/src/entity/trx_purposes.ts b/src/entity/trx_purposes.ts new file mode 100644 index 0000000..2f9e5c2 --- /dev/null +++ b/src/entity/trx_purposes.ts @@ -0,0 +1,43 @@ +import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm"; + +import { Status } from "../types/status"; +import { RemitRiskLevel } from "../types/remit"; + +@Entity("trx_purposes", { schema: "trx" }) +export class TrxPurposes { + @PrimaryGeneratedColumn("uuid") + id: string; + + @Column({ + nullable: true, + length: 256, + }) + name: string; + + @Column({ + nullable: false, + length: 64, + }) + status: Status; + + @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; +} diff --git a/src/schema/trx.ts b/src/schema/trx.ts index 093ad0c..509b47e 100644 --- a/src/schema/trx.ts +++ b/src/schema/trx.ts @@ -1,3 +1,4 @@ +export * from "../entity/trx_purposes"; export * from "../entity/trx_verifications"; export * from "../entity/trx_customers"; export * from "../entity/trx_customer_accounts"; From fb53a3d09d6caedea83f50917caba46727c4638b Mon Sep 17 00:00:00 2001 From: fro1991 Date: Wed, 29 Oct 2025 22:10:30 +0700 Subject: [PATCH 04/19] update --- src/entity/trx_occupations.ts | 42 +++++++++++++++++++++++++++++++++++ src/entity/trx_purposes.ts | 1 - src/schema/trx.ts | 1 + 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 src/entity/trx_occupations.ts diff --git a/src/entity/trx_occupations.ts b/src/entity/trx_occupations.ts new file mode 100644 index 0000000..5202817 --- /dev/null +++ b/src/entity/trx_occupations.ts @@ -0,0 +1,42 @@ +import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm"; + +import { Status } from "../types/status"; + +@Entity("trx_occupations", { schema: "trx" }) +export class TrxOccupation { + @PrimaryGeneratedColumn("uuid") + id: string; + + @Column({ + nullable: true, + length: 256, + }) + name: string; + + @Column({ + nullable: false, + length: 64, + }) + status: Status; + + @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; +} diff --git a/src/entity/trx_purposes.ts b/src/entity/trx_purposes.ts index 2f9e5c2..7053a2d 100644 --- a/src/entity/trx_purposes.ts +++ b/src/entity/trx_purposes.ts @@ -1,7 +1,6 @@ import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm"; import { Status } from "../types/status"; -import { RemitRiskLevel } from "../types/remit"; @Entity("trx_purposes", { schema: "trx" }) export class TrxPurposes { diff --git a/src/schema/trx.ts b/src/schema/trx.ts index 509b47e..0df1910 100644 --- a/src/schema/trx.ts +++ b/src/schema/trx.ts @@ -1,4 +1,5 @@ export * from "../entity/trx_purposes"; +export * from "../entity/trx_occupations"; export * from "../entity/trx_verifications"; export * from "../entity/trx_customers"; export * from "../entity/trx_customer_accounts"; From 811a911b8d1a4b0a213ead9b9535ed2e25bdfc31 Mon Sep 17 00:00:00 2001 From: fro1991 Date: Wed, 29 Oct 2025 22:16:26 +0700 Subject: [PATCH 05/19] update --- src/entity/trx_customer_users.ts | 13 +++++++++++++ src/entity/trx_customers.ts | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/src/entity/trx_customer_users.ts b/src/entity/trx_customer_users.ts index 58587e7..29369e7 100644 --- a/src/entity/trx_customer_users.ts +++ b/src/entity/trx_customer_users.ts @@ -3,6 +3,7 @@ import { Column, CreateDateColumn, DeleteDateColumn, Entity, Index, JoinTable, M import { Status } from "../types/status"; import { TrxCustomer } from "./trx_customers"; +import { TrxOccupation } from "./trx_occupations"; @Entity("trx_customer_users", { schema: "trx" }) export class TrxCustomerUser { @@ -74,6 +75,18 @@ export class TrxCustomerUser { }) status: Status; + @Column({ + nullable: true, + length: 4096, + }) + occupation: TrxOccupation; + + @Column({ + nullable: true, + length: 256, + }) + identity: string; + @Column() @CreateDateColumn() created_at: Date; diff --git a/src/entity/trx_customers.ts b/src/entity/trx_customers.ts index 1837764..58b619a 100644 --- a/src/entity/trx_customers.ts +++ b/src/entity/trx_customers.ts @@ -1,6 +1,7 @@ import { Column, CreateDateColumn, DeleteDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm"; import { Status } from "../types/status"; import { TrxCustomerType } from "../types/trx"; +import { TrxOccupation } from "./trx_occupations"; @Entity("trx_customers", { schema: "trx" }) export class TrxCustomer { @@ -77,6 +78,18 @@ export class TrxCustomer { }) status: Status; + @Column({ + nullable: true, + length: 4096, + }) + occupation: TrxOccupation; + + @Column({ + nullable: true, + length: 256, + }) + identity: string; + @Column() @CreateDateColumn() created_at: Date; From 50955ec80657c36c2e87119021655fc9117bfbd8 Mon Sep 17 00:00:00 2001 From: fro1991 Date: Wed, 29 Oct 2025 22:18:19 +0700 Subject: [PATCH 06/19] update --- src/entity/trx_customer_users.ts | 6 ++---- src/entity/trx_customers.ts | 8 +++----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/entity/trx_customer_users.ts b/src/entity/trx_customer_users.ts index 29369e7..34922aa 100644 --- a/src/entity/trx_customer_users.ts +++ b/src/entity/trx_customer_users.ts @@ -75,10 +75,8 @@ export class TrxCustomerUser { }) status: Status; - @Column({ - nullable: true, - length: 4096, - }) + @ManyToOne(() => TrxOccupation, { onDelete: "NO ACTION" }) + @JoinTable() occupation: TrxOccupation; @Column({ diff --git a/src/entity/trx_customers.ts b/src/entity/trx_customers.ts index 58b619a..02c99d6 100644 --- a/src/entity/trx_customers.ts +++ b/src/entity/trx_customers.ts @@ -1,4 +1,4 @@ -import { Column, CreateDateColumn, DeleteDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm"; +import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinTable, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm"; import { Status } from "../types/status"; import { TrxCustomerType } from "../types/trx"; import { TrxOccupation } from "./trx_occupations"; @@ -78,10 +78,8 @@ export class TrxCustomer { }) status: Status; - @Column({ - nullable: true, - length: 4096, - }) + @ManyToOne(() => TrxOccupation, { onDelete: "NO ACTION" }) + @JoinTable() occupation: TrxOccupation; @Column({ From 7d3122e129e049e9bb716ab72d26b24b6731e7b0 Mon Sep 17 00:00:00 2001 From: fro1991 Date: Wed, 29 Oct 2025 22:31:33 +0700 Subject: [PATCH 07/19] update --- src/entity/trx_transactions.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/entity/trx_transactions.ts b/src/entity/trx_transactions.ts index 50d0b4c..53c1a27 100644 --- a/src/entity/trx_transactions.ts +++ b/src/entity/trx_transactions.ts @@ -121,6 +121,15 @@ export class TrxTransaction { }) settlement_file: string; + @Column({ + nullable: true, + length: 256, + }) + mt103_file: string; + + @Column({ nullable: true, length: 256 }) + teller_reference_number: string; + @Column({ nullable: true, length: 256 }) settlemented_by: string; From 6514da2f1a4386d784030f837d61076726f53bfd Mon Sep 17 00:00:00 2001 From: fro1991 Date: Wed, 29 Oct 2025 22:39:32 +0700 Subject: [PATCH 08/19] update --- src/entity/trx_customer_users.ts | 2 +- src/entity/trx_customers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entity/trx_customer_users.ts b/src/entity/trx_customer_users.ts index 34922aa..04b01a5 100644 --- a/src/entity/trx_customer_users.ts +++ b/src/entity/trx_customer_users.ts @@ -83,7 +83,7 @@ export class TrxCustomerUser { nullable: true, length: 256, }) - identity: string; + identity_number: string; @Column() @CreateDateColumn() diff --git a/src/entity/trx_customers.ts b/src/entity/trx_customers.ts index 02c99d6..c3e5578 100644 --- a/src/entity/trx_customers.ts +++ b/src/entity/trx_customers.ts @@ -86,7 +86,7 @@ export class TrxCustomer { nullable: true, length: 256, }) - identity: string; + identity_number: string; @Column() @CreateDateColumn() From 1a83737f5ad78e572fda1a5d5101da74810ef9a9 Mon Sep 17 00:00:00 2001 From: fro1991 Date: Wed, 29 Oct 2025 23:57:37 +0700 Subject: [PATCH 09/19] update --- src/entity/trx_transactions.ts | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/src/entity/trx_transactions.ts b/src/entity/trx_transactions.ts index 53c1a27..000a009 100644 --- a/src/entity/trx_transactions.ts +++ b/src/entity/trx_transactions.ts @@ -8,6 +8,7 @@ import { TrxCustomerCost } from "./trx_customer_costs"; import { TrxCustomerUser } from "./trx_customer_users"; import { TrxTransactionPosition, TrxTransactionStatus, TrxTransactionType } from "../types/trx"; import { TrxVerification } from "./trx_verifications"; +import { TrxPurposes } from "./trx_purposes"; @Entity("trx_transactions", { schema: "trx" }) export class TrxTransaction { @@ -121,15 +122,6 @@ export class TrxTransaction { }) settlement_file: string; - @Column({ - nullable: true, - length: 256, - }) - mt103_file: string; - - @Column({ nullable: true, length: 256 }) - teller_reference_number: string; - @Column({ nullable: true, length: 256 }) settlemented_by: string; @@ -158,6 +150,22 @@ export class TrxTransaction { }) remark: string; + @Column({ + nullable: true, + length: 256, + }) + mt103_file: string; + + @Column({ nullable: true, length: 256 }) + teller_reference_number: string; + + @ManyToOne(() => TrxPurposes, { onDelete: "NO ACTION", nullable: true }) + @JoinColumn() + purpose: TrxPurposes; + + @Column({ nullable: true, length: 256 }) + purpose_label: string; + @Column() @CreateDateColumn() created_at: Date; From 74e99d60a985118c383f834e08498ef177b6fdb2 Mon Sep 17 00:00:00 2001 From: fro1991 Date: Thu, 30 Oct 2025 00:10:38 +0700 Subject: [PATCH 10/19] update --- src/types/trx.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/types/trx.ts b/src/types/trx.ts index aa3e469..31f68e1 100644 --- a/src/types/trx.ts +++ b/src/types/trx.ts @@ -56,6 +56,7 @@ export enum TrxTransactionStatus { "pending_signer" = "pending_signer", "process_deal_request" = "process_deal_request", "process_deal_approve" = "process_deal_approve", + "process_teller" = "process_teller", "process_settlement" = "process_settlement", "success" = "success", "reject" = "reject", @@ -69,6 +70,7 @@ export enum TrxTransactionRemark { "pending_signer" = "Pending Approval Signer", "process_deal_request" = "Deal Request Process", "process_deal_approve" = "Deal Approve Process", + "process_teller" = "process_teller", "process_settlement" = "Settlement on Process", "success" = "Success", "reject" = "Reject", From 0097132aee7fee833a50ef1ef6b8ee5985725eea Mon Sep 17 00:00:00 2001 From: fro1991 Date: Thu, 30 Oct 2025 01:13:11 +0700 Subject: [PATCH 11/19] update --- src/entity/trx_customer_user_signatures.ts | 45 ++++++++++++++++++++++ src/schema/trx.ts | 1 + 2 files changed, 46 insertions(+) create mode 100644 src/entity/trx_customer_user_signatures.ts diff --git a/src/entity/trx_customer_user_signatures.ts b/src/entity/trx_customer_user_signatures.ts new file mode 100644 index 0000000..86eecae --- /dev/null +++ b/src/entity/trx_customer_user_signatures.ts @@ -0,0 +1,45 @@ +import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, ManyToOne, JoinTable } from "typeorm"; +import { TrxCustomer } from "./trx_customers"; + +@Entity("trx_customer_user_signatures", { schema: "trx" }) +export class TrxCustomerUserSignature { + @PrimaryGeneratedColumn("uuid") + id: string; + + @ManyToOne(() => TrxCustomer, { onDelete: "RESTRICT" }) + @JoinTable() + customer: TrxCustomer; + + @Column({ + nullable: false, + type: "text", + }) + signature_image: string; + + @Column({ + nullable: false, + length: 256, + }) + signature_hash: string; + + @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; +} diff --git a/src/schema/trx.ts b/src/schema/trx.ts index 0df1910..7831773 100644 --- a/src/schema/trx.ts +++ b/src/schema/trx.ts @@ -4,6 +4,7 @@ export * from "../entity/trx_verifications"; export * from "../entity/trx_customers"; export * from "../entity/trx_customer_accounts"; export * from "../entity/trx_customer_users"; +export * from "../entity/trx_customer_user_signatures"; export * from "../entity/trx_customer_user_refresh_tokens"; export * from "../entity/trx_customer_user_activities"; export * from "../entity/trx_customer_costs"; From 98806c5ff747539df83090525b6592b9596ef4ae Mon Sep 17 00:00:00 2001 From: fro1991 Date: Thu, 30 Oct 2025 01:15:02 +0700 Subject: [PATCH 12/19] update --- src/entity/trx_customer_user_signatures.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/entity/trx_customer_user_signatures.ts b/src/entity/trx_customer_user_signatures.ts index 86eecae..71d32c1 100644 --- a/src/entity/trx_customer_user_signatures.ts +++ b/src/entity/trx_customer_user_signatures.ts @@ -1,5 +1,6 @@ import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, ManyToOne, JoinTable } from "typeorm"; import { TrxCustomer } from "./trx_customers"; +import { TrxCustomerUser } from "./trx_customer_users"; @Entity("trx_customer_user_signatures", { schema: "trx" }) export class TrxCustomerUserSignature { @@ -10,6 +11,10 @@ export class TrxCustomerUserSignature { @JoinTable() customer: TrxCustomer; + @ManyToOne(() => TrxCustomerUser, { onDelete: "RESTRICT" }) + @JoinTable() + customer_user: TrxCustomerUser; + @Column({ nullable: false, type: "text", From 81ce05dcd8922633ab11d31b0912573c92cae08c Mon Sep 17 00:00:00 2001 From: fro1991 Date: Thu, 30 Oct 2025 01:26:33 +0700 Subject: [PATCH 13/19] update --- src/entity/trx_customer_user_signatures.ts | 4 +- src/entity/trx_transaction_signatures.ts | 53 ++++++++++++++++++++++ src/schema/trx.ts | 1 + 3 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 src/entity/trx_transaction_signatures.ts diff --git a/src/entity/trx_customer_user_signatures.ts b/src/entity/trx_customer_user_signatures.ts index 71d32c1..2785861 100644 --- a/src/entity/trx_customer_user_signatures.ts +++ b/src/entity/trx_customer_user_signatures.ts @@ -16,14 +16,12 @@ export class TrxCustomerUserSignature { customer_user: TrxCustomerUser; @Column({ - nullable: false, type: "text", }) signature_image: string; @Column({ - nullable: false, - length: 256, + type: "text", }) signature_hash: string; diff --git a/src/entity/trx_transaction_signatures.ts b/src/entity/trx_transaction_signatures.ts new file mode 100644 index 0000000..4ec8bbd --- /dev/null +++ b/src/entity/trx_transaction_signatures.ts @@ -0,0 +1,53 @@ +import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm"; +import { TrxTransaction } from "./trx_transactions"; + +@Entity("trx_transaction_signatures", { schema: "trx" }) +export class TrxTransactionSignature { + @PrimaryGeneratedColumn("uuid") + id: string; + + @ManyToOne(() => TrxTransaction, { onDelete: "NO ACTION" }) + @JoinColumn() + transaction: TrxTransaction; + + @Column({ + type: "text", + }) + customer_user_signature_image: string; + + @Column({ + type: "text", + }) + customer_user_signature_hash: string; + + @Column({ + type: "text", + }) + document_signature: string; + + @Column({ + type: "text", + }) + qr_code: string; + + @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; +} diff --git a/src/schema/trx.ts b/src/schema/trx.ts index 7831773..7d10b75 100644 --- a/src/schema/trx.ts +++ b/src/schema/trx.ts @@ -19,4 +19,5 @@ export * from "../entity/trx_receivers"; export * from "../entity/trx_transactions"; export * from "../entity/trx_transaction_slas"; export * from "../entity/trx_transaction_amls"; +export * from "../entity/trx_transaction_signatures"; export * from "../types/trx"; From 7f274a9d314106620e97e3a7d66babfe7c7be0da Mon Sep 17 00:00:00 2001 From: fro1991 Date: Thu, 30 Oct 2025 02:58:39 +0700 Subject: [PATCH 14/19] update --- src/entity/trx_transaction_signatures.ts | 5 ----- src/entity/trx_transactions.ts | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/entity/trx_transaction_signatures.ts b/src/entity/trx_transaction_signatures.ts index 4ec8bbd..a8fbbd4 100644 --- a/src/entity/trx_transaction_signatures.ts +++ b/src/entity/trx_transaction_signatures.ts @@ -25,11 +25,6 @@ export class TrxTransactionSignature { }) document_signature: string; - @Column({ - type: "text", - }) - qr_code: string; - @Column() @CreateDateColumn() created_at: Date; diff --git a/src/entity/trx_transactions.ts b/src/entity/trx_transactions.ts index 000a009..af43365 100644 --- a/src/entity/trx_transactions.ts +++ b/src/entity/trx_transactions.ts @@ -166,6 +166,11 @@ export class TrxTransaction { @Column({ nullable: true, length: 256 }) purpose_label: string; + @Column({ + type: "text", + }) + qr_code: string; + @Column() @CreateDateColumn() created_at: Date; From 30ae44e68dcec9ff8a9fca6f1e352d01a0820fd6 Mon Sep 17 00:00:00 2001 From: fro1991 Date: Thu, 30 Oct 2025 02:59:05 +0700 Subject: [PATCH 15/19] update --- src/entity/trx_transactions.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/entity/trx_transactions.ts b/src/entity/trx_transactions.ts index af43365..dcc2542 100644 --- a/src/entity/trx_transactions.ts +++ b/src/entity/trx_transactions.ts @@ -167,6 +167,7 @@ export class TrxTransaction { purpose_label: string; @Column({ + nullable: true, type: "text", }) qr_code: string; From 6ff52c7743124a961d5101823c7b5b8c7aa3aade Mon Sep 17 00:00:00 2001 From: fro1991 Date: Thu, 30 Oct 2025 03:05:52 +0700 Subject: [PATCH 16/19] udpate --- src/entity/trx_transactions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entity/trx_transactions.ts b/src/entity/trx_transactions.ts index dcc2542..2d8a367 100644 --- a/src/entity/trx_transactions.ts +++ b/src/entity/trx_transactions.ts @@ -168,9 +168,9 @@ export class TrxTransaction { @Column({ nullable: true, - type: "text", + length: 4096, }) - qr_code: string; + qrcode_url: string; @Column() @CreateDateColumn() From 479af5ef58cbc1083d2b1d977d87011139cf24a6 Mon Sep 17 00:00:00 2001 From: fro1991 Date: Thu, 30 Oct 2025 03:33:02 +0700 Subject: [PATCH 17/19] update --- src/entity/trx_transaction_signatures.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/entity/trx_transaction_signatures.ts b/src/entity/trx_transaction_signatures.ts index a8fbbd4..dbf4071 100644 --- a/src/entity/trx_transaction_signatures.ts +++ b/src/entity/trx_transaction_signatures.ts @@ -20,11 +20,6 @@ export class TrxTransactionSignature { }) customer_user_signature_hash: string; - @Column({ - type: "text", - }) - document_signature: string; - @Column() @CreateDateColumn() created_at: Date; From dd7ef4c70c71c89e959c02562a41b4f35f1590e0 Mon Sep 17 00:00:00 2001 From: fro1991 Date: Thu, 30 Oct 2025 03:47:25 +0700 Subject: [PATCH 18/19] update --- src/entity/trx_transactions.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/entity/trx_transactions.ts b/src/entity/trx_transactions.ts index 2d8a367..c728305 100644 --- a/src/entity/trx_transactions.ts +++ b/src/entity/trx_transactions.ts @@ -116,6 +116,18 @@ export class TrxTransaction { @JoinColumn() signer_verification: TrxVerification; + @Column({ + nullable: true, + length: 256, + }) + teller_file: string; + + @Column({ nullable: true, length: 256 }) + tellered_by: string; + + @Column({ nullable: true }) + tellered_at: Date; + @Column({ nullable: true, length: 256, @@ -150,12 +162,6 @@ export class TrxTransaction { }) remark: string; - @Column({ - nullable: true, - length: 256, - }) - mt103_file: string; - @Column({ nullable: true, length: 256 }) teller_reference_number: string; From 9e27a326650944d8086c74df40d1e08239252228 Mon Sep 17 00:00:00 2001 From: "fazri.is" Date: Thu, 30 Oct 2025 13:10:54 +0700 Subject: [PATCH 19/19] update customer user --- src/entity/trx_customer_users.ts | 12 ++++++++++++ src/types/trx.ts | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/src/entity/trx_customer_users.ts b/src/entity/trx_customer_users.ts index 04b01a5..858f47f 100644 --- a/src/entity/trx_customer_users.ts +++ b/src/entity/trx_customer_users.ts @@ -4,6 +4,8 @@ import { Column, CreateDateColumn, DeleteDateColumn, Entity, Index, JoinTable, M import { Status } from "../types/status"; import { TrxCustomer } from "./trx_customers"; import { TrxOccupation } from "./trx_occupations"; +import { TrxCountry } from "./trx_countries"; +import { TrxIdentityType } from "../types/trx"; @Entity("trx_customer_users", { schema: "trx" }) export class TrxCustomerUser { @@ -79,12 +81,22 @@ export class TrxCustomerUser { @JoinTable() occupation: TrxOccupation; + @ManyToOne(() => TrxCountry, { onDelete: "NO ACTION" }) + @JoinTable() + country: TrxCountry; + @Column({ nullable: true, length: 256, }) identity_number: string; + @Column({ + nullable: true, + length: 256, + }) + identity_type: TrxIdentityType; + @Column() @CreateDateColumn() created_at: Date; diff --git a/src/types/trx.ts b/src/types/trx.ts index 31f68e1..9a8f816 100644 --- a/src/types/trx.ts +++ b/src/types/trx.ts @@ -63,6 +63,12 @@ export enum TrxTransactionStatus { "cancel" = "cancel", } +export enum TrxIdentityType { + "passport" = "passport", + "electoral" = "electoral", + "bi" = "bi", +} + export enum TrxTransactionRemark { "draft" = "Draft", "create" = "Create",