update
This commit is contained in:
64
src/entity/compliance_risk_customer_details.ts
Normal file
64
src/entity/compliance_risk_customer_details.ts
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
|
import { ComplianceRiskCustomer } from "./compliance_risk_customers";
|
||||||
|
import { ComplianceRiskFactor } from "./compliance_risk_factors";
|
||||||
|
import { ComplianceRiskFormula } from "./compliance_risk_formulas";
|
||||||
|
import { ComplianceRiskParameterInformation } from "./compliance_risk_parameter_informations";
|
||||||
|
import { ComplianceRiskParameter } from "./compliance_risk_parameters";
|
||||||
|
|
||||||
|
@Entity("compliance_risk_customer_details", { schema: "compliances" })
|
||||||
|
export class ComplianceRiskCustomerDetail {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => ComplianceRiskCustomer, { onDelete: "NO ACTION" })
|
||||||
|
@JoinColumn()
|
||||||
|
risk_result: ComplianceRiskCustomer;
|
||||||
|
|
||||||
|
@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;
|
||||||
|
}
|
||||||
75
src/entity/compliance_risk_customers.ts
Normal file
75
src/entity/compliance_risk_customers.ts
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
|
import { ComplianceRiskTransactionClassification, ComplianceRiskTransactionType } from "../types/compliance";
|
||||||
|
import { Application } from "./application";
|
||||||
|
|
||||||
|
@Entity("compliance_risk_customers", { schema: "compliances" })
|
||||||
|
export class ComplianceRiskCustomer {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
unique: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
code: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => Application, { onDelete: "NO ACTION" })
|
||||||
|
@JoinColumn()
|
||||||
|
application: Application;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
cif_account: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
account_number: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
name: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
reference: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
type: "float8",
|
||||||
|
})
|
||||||
|
total: number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 50,
|
||||||
|
})
|
||||||
|
classification: ComplianceRiskTransactionClassification;
|
||||||
|
|
||||||
|
@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;
|
||||||
|
}
|
||||||
@ -5,5 +5,7 @@ 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_transactions";
|
||||||
export * from "../entity/compliance_risk_transaction_details";
|
export * from "../entity/compliance_risk_transaction_details";
|
||||||
|
export * from "../entity/compliance_risk_customers";
|
||||||
|
export * from "../entity/compliance_risk_customer_details";
|
||||||
export * from "../entity/compliance_aml_news";
|
export * from "../entity/compliance_aml_news";
|
||||||
export * from "../types/compliance";
|
export * from "../types/compliance";
|
||||||
|
|||||||
Reference in New Issue
Block a user