Merge branch 'main' of https://git.shiblysolution.id/BRITL/entity
This commit is contained in:
61
src/entity/compliance_aml_news.ts
Normal file
61
src/entity/compliance_aml_news.ts
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
|
||||||
|
import { Status } from "../types/status";
|
||||||
|
import { EformLanguage } from "./eform_languages";
|
||||||
|
import { ComplianceRiskPepType } from "../types/compliance";
|
||||||
|
|
||||||
|
@Entity("compliance_aml_news", { schema: "compliances" })
|
||||||
|
export class ComplianceAmlNew {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
name: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
remarks: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
link: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
file: 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;
|
||||||
|
}
|
||||||
@ -4,15 +4,18 @@ import { Application } from "./application";
|
|||||||
import { ComplianceRiskParameterInformation } from "./compliance_risk_parameter_informations";
|
import { ComplianceRiskParameterInformation } from "./compliance_risk_parameter_informations";
|
||||||
import { ComplianceRiskFactor } from "./compliance_risk_factors";
|
import { ComplianceRiskFactor } from "./compliance_risk_factors";
|
||||||
import { ComplianceRiskParameter } from "./compliance_risk_parameters";
|
import { ComplianceRiskParameter } from "./compliance_risk_parameters";
|
||||||
|
import { ComplianceRiskFormulaType } from "../types/compliance";
|
||||||
|
|
||||||
@Entity("compliance_risk_formulas", { schema: "compliances" })
|
@Entity("compliance_risk_formulas", { schema: "compliances" })
|
||||||
export class ComplianceRiskFormula {
|
export class ComplianceRiskFormula {
|
||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@ManyToOne(() => Application, { onDelete: "NO ACTION" })
|
@Column({
|
||||||
@JoinColumn()
|
length: 256,
|
||||||
application: Application;
|
default: ComplianceRiskFormulaType.transaction,
|
||||||
|
})
|
||||||
|
type: ComplianceRiskFormulaType;
|
||||||
|
|
||||||
@ManyToOne(() => ComplianceRiskFactor, { onDelete: "NO ACTION" })
|
@ManyToOne(() => ComplianceRiskFactor, { onDelete: "NO ACTION" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
@ -34,6 +37,12 @@ export class ComplianceRiskFormula {
|
|||||||
})
|
})
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
default: 0,
|
||||||
|
})
|
||||||
|
seq: Number;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 64,
|
length: 64,
|
||||||
|
|||||||
@ -1,38 +0,0 @@
|
|||||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
|
||||||
import { ComplianceRiskFormula } from "./compliance_risk_formulas";
|
|
||||||
import { ComplianceRiskResults } from "./compliance_risk_results";
|
|
||||||
|
|
||||||
@Entity("compliance_risk_result_details", { schema: "compliances" })
|
|
||||||
export class ComplianceRiskResultDetail {
|
|
||||||
@PrimaryGeneratedColumn("uuid")
|
|
||||||
id: string;
|
|
||||||
|
|
||||||
@ManyToOne(() => ComplianceRiskResults, { onDelete: "NO ACTION" })
|
|
||||||
@JoinColumn()
|
|
||||||
risk_result: ComplianceRiskResults;
|
|
||||||
|
|
||||||
@ManyToOne(() => ComplianceRiskFormula, { onDelete: "NO ACTION" })
|
|
||||||
@JoinColumn()
|
|
||||||
risk_formula: ComplianceRiskFormula;
|
|
||||||
|
|
||||||
@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;
|
|
||||||
}
|
|
||||||
64
src/entity/compliance_risk_transaction_details.ts
Normal file
64
src/entity/compliance_risk_transaction_details.ts
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
|
import { ComplianceRiskFormula } from "./compliance_risk_formulas";
|
||||||
|
import { ComplianceRiskFactor } from "./compliance_risk_factors";
|
||||||
|
import { ComplianceRiskParameter } from "./compliance_risk_parameters";
|
||||||
|
import { ComplianceRiskParameterInformation } from "./compliance_risk_parameter_informations";
|
||||||
|
import { ComplianceRiskTransaction } from "./compliance_risk_transactions";
|
||||||
|
|
||||||
|
@Entity("compliance_risk_transaction_details", { schema: "compliances" })
|
||||||
|
export class ComplianceRiskTransactionDetail {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => ComplianceRiskTransaction, { onDelete: "NO ACTION" })
|
||||||
|
@JoinColumn()
|
||||||
|
risk_result: ComplianceRiskTransaction;
|
||||||
|
|
||||||
|
@ManyToOne(() => ComplianceRiskFormula, { onDelete: "NO ACTION" })
|
||||||
|
@JoinColumn()
|
||||||
|
risk_formula: ComplianceRiskFormula;
|
||||||
|
|
||||||
|
@ManyToOne(() => ComplianceRiskFactor, { onDelete: "NO ACTION" })
|
||||||
|
@JoinColumn()
|
||||||
|
risk_factor: ComplianceRiskFactor;
|
||||||
|
|
||||||
|
@ManyToOne(() => ComplianceRiskParameter, { onDelete: "NO ACTION" })
|
||||||
|
@JoinColumn()
|
||||||
|
risk_parameter: ComplianceRiskParameter;
|
||||||
|
|
||||||
|
@ManyToOne(() => ComplianceRiskParameterInformation, { onDelete: "NO ACTION" })
|
||||||
|
@JoinColumn()
|
||||||
|
risk_parameter_information: ComplianceRiskParameterInformation;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
value: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
type: "smallint",
|
||||||
|
default: 3,
|
||||||
|
})
|
||||||
|
level: Number;
|
||||||
|
|
||||||
|
@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;
|
||||||
|
}
|
||||||
@ -1,9 +1,9 @@
|
|||||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
import { Status } from "../types/status";
|
import { ComplianceRiskTransactionClassification, ComplianceRiskTransactionType } from "../types/compliance";
|
||||||
import { Application } from "./application";
|
import { Application } from "./application";
|
||||||
|
|
||||||
@Entity("compliance_risk_results", { schema: "compliances" })
|
@Entity("compliance_risk_transactions", { schema: "compliances" })
|
||||||
export class ComplianceRiskResults {
|
export class ComplianceRiskTransaction {
|
||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@ -17,6 +17,16 @@ export class ComplianceRiskResults {
|
|||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
application: Application;
|
application: Application;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
type: ComplianceRiskTransactionType;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
account_number: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 4096,
|
length: 4096,
|
||||||
})
|
})
|
||||||
@ -29,20 +39,16 @@ export class ComplianceRiskResults {
|
|||||||
reference: string;
|
reference: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
nullable: true,
|
||||||
type: "float8",
|
type: "float8",
|
||||||
})
|
})
|
||||||
total: number;
|
total: number;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
nullable: true,
|
||||||
length: 50,
|
length: 50,
|
||||||
})
|
})
|
||||||
classification: string;
|
classification: ComplianceRiskTransactionClassification;
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: false,
|
|
||||||
length: 64,
|
|
||||||
})
|
|
||||||
status: Status;
|
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
@ -68,6 +68,12 @@ export class TrxReceiver {
|
|||||||
})
|
})
|
||||||
bsb_number: string;
|
bsb_number: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
identity_number: string;
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
|
|||||||
@ -3,3 +3,7 @@ export * from "../entity/compliance_risk_factors";
|
|||||||
export * from "../entity/compliance_risk_parameters";
|
export * from "../entity/compliance_risk_parameters";
|
||||||
export * from "../entity/compliance_risk_parameter_informations";
|
export * from "../entity/compliance_risk_parameter_informations";
|
||||||
export * from "../entity/compliance_risk_formulas";
|
export * from "../entity/compliance_risk_formulas";
|
||||||
|
export * from "../entity/compliance_risk_transactions";
|
||||||
|
export * from "../entity/compliance_risk_transaction_details";
|
||||||
|
export * from "../entity/compliance_aml_news";
|
||||||
|
export * from "../types/compliance";
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
export enum ComplianceRiskResultClassification {
|
export enum ComplianceRiskTransactionClassification {
|
||||||
"low" = "low",
|
"low" = "low",
|
||||||
"medium" = "medium",
|
"medium" = "medium",
|
||||||
"high" = "high",
|
"high" = "high",
|
||||||
@ -10,3 +10,13 @@ export enum ComplianceRiskPepType {
|
|||||||
"pntl" = "pntl",
|
"pntl" = "pntl",
|
||||||
"bctl" = "bctl",
|
"bctl" = "bctl",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum ComplianceRiskFormulaType {
|
||||||
|
"transaction" = "transaction",
|
||||||
|
"customer" = "customer",
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum ComplianceRiskTransactionType {
|
||||||
|
"bri" = "bri",
|
||||||
|
"wic" = "wic",
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user