From 1a7ef5020e9b8aae22234a0cd4fc21a796e4d29c Mon Sep 17 00:00:00 2001 From: fro1991 Date: Wed, 29 Oct 2025 22:08:10 +0700 Subject: [PATCH] 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";