diff --git a/src/entity/log_hikvision.ts b/src/entity/log_hikvision.ts new file mode 100644 index 0000000..f0b19c8 --- /dev/null +++ b/src/entity/log_hikvision.ts @@ -0,0 +1,47 @@ +import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index } from 'typeorm'; + +import { Status } from '../types/status'; + +@Entity('log_hikvision') +export class LogHikvision { + @PrimaryGeneratedColumn('uuid') + id: string; + + @Column() + @CreateDateColumn() + created_at: Date; + + @Column({ nullable: true }) + @UpdateDateColumn() + updated_at: Date; + + @Column({ + nullable: true, + length: 128 + }) + type: string; + + @Column({ + nullable: false, + length: 4096 + }) + incoming: string; + + @Column({ + nullable: false, + length: 4096 + }) + request: string; + + @Column({ + nullable: false, + length: 128 + }) + url: string; + + @Column({ + nullable: false, + length: 4096 + }) + response: string; +} \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index b6d2c1a..aae9380 100644 --- a/src/index.ts +++ b/src/index.ts @@ -69,6 +69,7 @@ import { PaymentApproval } from "./entity/payment_approval"; 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"; export { User, // @@ -148,5 +149,7 @@ export { CreditApplicationChat, CreditApplicationFileStatus, Application, - TellerMutation + TellerMutation, + LogHikvision + };