update
This commit is contained in:
@ -1,29 +1,41 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
|
||||
import { Status } from "../types/status";
|
||||
import { EformLanguage } from "./eform_languages";
|
||||
import { ComplianceAppendixCategory } from "./compliance_appendix_categories";
|
||||
import { ComplianceAppendixItem } from "./compliance_appendix_items";
|
||||
|
||||
@Entity("compliance_appendix_item_references", { schema: "compliances" })
|
||||
export class ComplianceAppendixItemReference {
|
||||
@Entity("compliance_risk_factors", { schema: "compliances" })
|
||||
export class ComplianceRiskFactor {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ManyToOne(() => ComplianceAppendixItem, { onDelete: "RESTRICT" })
|
||||
@JoinColumn()
|
||||
appendix_item: ComplianceAppendixItem;
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
label: string;
|
||||
label_in: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
value: string;
|
||||
label_tt: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
label_en: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 64,
|
||||
})
|
||||
status: Status;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
63
src/entity/compliance_risk_formulas.ts
Normal file
63
src/entity/compliance_risk_formulas.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||
import { Status } from "../types/status";
|
||||
import { Application } from "./application";
|
||||
import { ComplianceRiskParameterInformation } from "./compliance_risk_parameter_informations";
|
||||
import { ComplianceRiskFactor } from "./compliance_risk_factors";
|
||||
import { ComplianceRiskParameter } from "./compliance_risk_parameters";
|
||||
|
||||
@Entity("compliance_risk_formulas", { schema: "compliances" })
|
||||
export class ComplianceRiskFormula {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ManyToOne(() => Application, { onDelete: "NO ACTION" })
|
||||
@JoinColumn()
|
||||
application: Application;
|
||||
|
||||
@ManyToOne(() => ComplianceRiskFactor, { onDelete: "NO ACTION" })
|
||||
@JoinColumn()
|
||||
risk_factor: ComplianceRiskFactor;
|
||||
|
||||
@ManyToOne(() => ComplianceRiskParameter, { onDelete: "NO ACTION" })
|
||||
@JoinColumn()
|
||||
risk_parameter: ComplianceRiskParameter;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 256,
|
||||
})
|
||||
code: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 256,
|
||||
})
|
||||
name: 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;
|
||||
}
|
||||
@ -1,56 +1,46 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
|
||||
import { Status } from "../types/status";
|
||||
import { EformLanguage } from "./eform_languages";
|
||||
import { ComplianceAppendixCategory } from "./compliance_appendix_categories";
|
||||
import { ComplianceRiskParameter } from "./compliance_risk_parameters";
|
||||
|
||||
@Entity("compliance_appendix_items", { schema: "compliances" })
|
||||
export class ComplianceAppendixItem {
|
||||
@Entity("compliance_risk_parameter_informations", { schema: "compliances" })
|
||||
export class ComplianceRiskParameterInformation {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ManyToOne(() => ComplianceAppendixCategory, { onDelete: "RESTRICT" })
|
||||
@ManyToOne(() => ComplianceRiskParameter, { onDelete: "RESTRICT" })
|
||||
@JoinColumn()
|
||||
appendix_category: ComplianceAppendixCategory;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
code: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
label_in: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
label_tt: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
label_en: string;
|
||||
risk_parameter: ComplianceRiskParameter;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 4096,
|
||||
})
|
||||
description: string;
|
||||
name: string;
|
||||
|
||||
@ManyToOne(() => ComplianceAppendixItem, { onDelete: "RESTRICT" })
|
||||
@JoinColumn()
|
||||
parent: ComplianceAppendixItem;
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 4096,
|
||||
})
|
||||
label_in: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 4096,
|
||||
})
|
||||
label_tt: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 4096,
|
||||
})
|
||||
label_en: string;
|
||||
|
||||
@Column({
|
||||
type: "smallint",
|
||||
default: 3,
|
||||
})
|
||||
level: Number;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
@ -2,8 +2,8 @@ import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateCol
|
||||
import { Status } from "../types/status";
|
||||
import { EformLanguage } from "./eform_languages";
|
||||
|
||||
@Entity("compliance_appendix_categories", { schema: "compliances" })
|
||||
export class ComplianceAppendixCategory {
|
||||
@Entity("compliance_risk_parameters", { schema: "compliances" })
|
||||
export class ComplianceRiskParameter {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
55
src/entity/compliance_risk_peps.ts
Normal file
55
src/entity/compliance_risk_peps.ts
Normal file
@ -0,0 +1,55 @@
|
||||
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_risk_peps", { schema: "compliances" })
|
||||
export class ComplianceRiskPep {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
type: ComplianceRiskPepType;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
remarks: 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;
|
||||
}
|
||||
38
src/entity/compliance_risk_result_details.ts
Normal file
38
src/entity/compliance_risk_result_details.ts
Normal file
@ -0,0 +1,38 @@
|
||||
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;
|
||||
}
|
||||
@ -1,41 +1,42 @@
|
||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||
import { Status } from "../types/status";
|
||||
import { Application } from "./application";
|
||||
import { ComplianceAppendixItem } from "./compliance_appendix_items";
|
||||
|
||||
@Entity("compliance_risk_levels", { schema: "compliances" })
|
||||
export class ComplianceRiskLevel {
|
||||
@Entity("compliance_risk_results", { schema: "compliances" })
|
||||
export class ComplianceRiskResults {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ManyToOne(() => Application, { onDelete: "RESTRICT" })
|
||||
@Column({
|
||||
unique: true,
|
||||
length: 256,
|
||||
})
|
||||
code: string;
|
||||
|
||||
@ManyToOne(() => Application, { onDelete: "NO ACTION" })
|
||||
@JoinColumn()
|
||||
application: Application;
|
||||
|
||||
@ManyToOne(() => ComplianceAppendixItem, { onDelete: "RESTRICT" })
|
||||
@JoinColumn()
|
||||
appendix_item: ComplianceAppendixItem;
|
||||
|
||||
@Column({ type: "smallint", default: 0 })
|
||||
level: Number;
|
||||
@Column({
|
||||
length: 4096,
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
param: string;
|
||||
|
||||
@Column({ type: "float8", nullable: true })
|
||||
param_min: Number;
|
||||
|
||||
@Column({ type: "float8", nullable: true })
|
||||
param_max: Number;
|
||||
reference: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
type: "float8",
|
||||
})
|
||||
param_unit: string;
|
||||
total: number;
|
||||
|
||||
@Column({
|
||||
length: 50,
|
||||
})
|
||||
classification: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
@ -9,8 +9,8 @@ export * from "./schema/brizzi";
|
||||
export * from "./schema/tcel";
|
||||
export * from "./schema/brilink";
|
||||
export * from "./schema/eform";
|
||||
export * from "./schema/compliance";
|
||||
export * from "./schema/trx";
|
||||
export * from "./schema/gps";
|
||||
export * from "./schema/telemor";
|
||||
export * from "./schema/earchive";
|
||||
export * from "./schema/compliance";
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
export * from "../entity/compliance_appendix_categories";
|
||||
export * from "../entity/compliance_appendix_items";
|
||||
export * from "../entity/compliance_appendix_item_references";
|
||||
export * from "../entity/compliance_risk_levels";
|
||||
export * from "../entity/compliance_risk_peps";
|
||||
export * from "../entity/compliance_risk_factors";
|
||||
export * from "../entity/compliance_risk_parameters";
|
||||
export * from "../entity/compliance_risk_parameter_informations";
|
||||
export * from "../entity/compliance_risk_formulas";
|
||||
|
||||
28
src/schema/trx copy.ts
Normal file
28
src/schema/trx copy.ts
Normal file
@ -0,0 +1,28 @@
|
||||
export * from "../entity/trx_purposes";
|
||||
export * from "../entity/trx_occupations";
|
||||
export * from "../entity/trx_verifications";
|
||||
export * from "../entity/trx_customers";
|
||||
export * from "../entity/trx_customer_accounts";
|
||||
export * from "../entity/trx_customer_users";
|
||||
export * from "../entity/trx_customer_user_signatures";
|
||||
export * from "../entity/trx_customer_user_refresh_tokens";
|
||||
export * from "../entity/trx_customer_user_activities";
|
||||
export * from "../entity/trx_customer_costs";
|
||||
export * from "../entity/trx_customer_slas";
|
||||
export * from "../entity/trx_countries";
|
||||
export * from "../entity/trx_currencies";
|
||||
export * from "../entity/trx_country_currencies";
|
||||
export * from "../entity/trx_bank_currencies";
|
||||
export * from "../entity/trx_currency_rates";
|
||||
export * from "../entity/trx_banks";
|
||||
export * from "../entity/trx_bank_swifts";
|
||||
export * from "../entity/trx_receivers";
|
||||
export * from "../entity/trx_transactions";
|
||||
export * from "../entity/trx_transaction_slas";
|
||||
export * from "../entity/trx_transaction_amls";
|
||||
export * from "../entity/trx_transaction_signatures";
|
||||
export * from "../entity/trx_email_logs";
|
||||
export * from "../entity/trx_maintenances";
|
||||
export * from "../entity/trx_maintenance_details";
|
||||
export * from "../entity/trx_maintenance_slas";
|
||||
export * from "../types/trx";
|
||||
12
src/types/compliance.ts
Normal file
12
src/types/compliance.ts
Normal file
@ -0,0 +1,12 @@
|
||||
export enum ComplianceRiskResultClassification {
|
||||
"low" = "low",
|
||||
"medium" = "medium",
|
||||
"high" = "high",
|
||||
}
|
||||
|
||||
export enum ComplianceRiskPepType {
|
||||
"parliament" = "parliament",
|
||||
"cabinet" = "cabinet",
|
||||
"pntl" = "pntl",
|
||||
"bctl" = "bctl",
|
||||
}
|
||||
Reference in New Issue
Block a user