From 574e25728f5835506051c162afc2bb20237ace4b Mon Sep 17 00:00:00 2001 From: fro1991 Date: Thu, 20 Nov 2025 23:02:23 +0900 Subject: [PATCH] update --- src/entity/compliance_futuru_accounts.ts | 74 ++++++++++++++++++++++++ src/schema/compliance.ts | 1 + 2 files changed, 75 insertions(+) create mode 100644 src/entity/compliance_futuru_accounts.ts diff --git a/src/entity/compliance_futuru_accounts.ts b/src/entity/compliance_futuru_accounts.ts new file mode 100644 index 0000000..79c4309 --- /dev/null +++ b/src/entity/compliance_futuru_accounts.ts @@ -0,0 +1,74 @@ +import { Column, CreateDateColumn, DeleteDateColumn, Entity, Index, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm"; + +@Entity("compliance_futuru_accounts", { schema: "compliances" }) +export class ComplianceFuturuAccount { + @PrimaryGeneratedColumn("uuid") + id: string; + + @Index() + @Column({ + nullable: true, + length: 12, + }) + cif_number: string; + + @Index() + @Column({ + nullable: true, + length: 20, + }) + account_number: string; + + @Index() + @Column({ + nullable: true, + length: 128, + }) + name: string; + + @Column({ + nullable: true, + }) + birth_date: Date; + + @Column({ + nullable: true, + length: 128, + }) + gender: string; + + @Column({ + nullable: true, + }) + position_date: Date; + + @Column({ + type: "float8", + nullable: true, + }) + current_balance: number; + + @Column({ + type: "float8", + nullable: true, + }) + age: number; + + @Column({ + type: "int2", + nullable: true, + }) + status: number; + + @Column() + @CreateDateColumn() + created_at: Date; + + @Column() + @UpdateDateColumn() + updated_at: Date; + + @Column({ nullable: true }) + @DeleteDateColumn() + deleted_at: Date; +} diff --git a/src/schema/compliance.ts b/src/schema/compliance.ts index 27a8fdd..f7c1159 100644 --- a/src/schema/compliance.ts +++ b/src/schema/compliance.ts @@ -10,4 +10,5 @@ export * from "../entity/compliance_risk_customer_details"; export * from "../entity/compliance_aml_news"; export * from "../entity/compliance_regulator_reports"; export * from "../entity/compliance_regulator_report_details"; +export * from "../entity/compliance_futuru_accounts"; export * from "../types/compliance";