From c6cd286fc2c8f5b072120485fd4d1175bc5cca6d Mon Sep 17 00:00:00 2001 From: fro1991 Date: Sun, 2 Feb 2025 12:22:40 +0700 Subject: [PATCH] update --- src/entity/credit_config.ts | 57 +++++++++++++++++++++++++++++++++++++ src/index.ts | 5 ++-- 2 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 src/entity/credit_config.ts diff --git a/src/entity/credit_config.ts b/src/entity/credit_config.ts new file mode 100644 index 0000000..5bca156 --- /dev/null +++ b/src/entity/credit_config.ts @@ -0,0 +1,57 @@ +import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from 'typeorm'; + +import { Status } from '../types/status'; + +@Entity('credit_configs') +export class CreditConfigs { + @PrimaryGeneratedColumn('uuid') + id: string; + + @Column({ + nullable: false, + length: 256 + }) + code: string; + + @Column({ + nullable: false, + length: 256 + }) + param: string; + + @Column({ + nullable: true, + type: 'int2' + }) + order_number: number; + + @Column({ + nullable: true, + length: 4096 + }) + value: 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; +} \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index aae9380..5e51f02 100644 --- a/src/index.ts +++ b/src/index.ts @@ -70,6 +70,7 @@ import { FinanceMemo } from "./entity/finance_memo"; import { BankGaransiPending } from "./entity/bank_garansi_pending"; import { TellerMutation } from "./entity/teller_mutation"; import { LogHikvision } from "./entity/log_hikvision"; +import { CreditConfigs } from "./entity/credit_config"; export { User, // @@ -150,6 +151,6 @@ export { CreditApplicationFileStatus, Application, TellerMutation, - LogHikvision - + LogHikvision, + CreditConfigs };