update
This commit is contained in:
51
src/entity/compliance_regulator_report_details.ts
Normal file
51
src/entity/compliance_regulator_report_details.ts
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
|
import { ComplianceRegulatorReport } from "./compliance_regulator_reports";
|
||||||
|
|
||||||
|
@Entity("compliance_risk_items", { schema: "compliances" })
|
||||||
|
export class ComplianceRegulatorReportItem {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => ComplianceRegulatorReport, { onDelete: "NO ACTION" })
|
||||||
|
@JoinColumn()
|
||||||
|
regulator_report: ComplianceRegulatorReport;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
name: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
description: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
file: 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;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
deleted_by: string;
|
||||||
|
}
|
||||||
60
src/entity/compliance_regulator_reports.ts
Normal file
60
src/entity/compliance_regulator_reports.ts
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
|
import { ComplianceRegulatorReportType } from "../types/compliance";
|
||||||
|
import { Status } from "../types/status";
|
||||||
|
|
||||||
|
@Entity("compliance_regulator_reports", { schema: "compliances" })
|
||||||
|
export class ComplianceRegulatorReport {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
type: ComplianceRegulatorReportType;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
name: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
description: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
type: "date",
|
||||||
|
})
|
||||||
|
position_date: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
file: 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;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
deleted_by: string;
|
||||||
|
}
|
||||||
@ -8,4 +8,6 @@ export * from "../entity/compliance_risk_transaction_details";
|
|||||||
export * from "../entity/compliance_risk_customers";
|
export * from "../entity/compliance_risk_customers";
|
||||||
export * from "../entity/compliance_risk_customer_details";
|
export * from "../entity/compliance_risk_customer_details";
|
||||||
export * from "../entity/compliance_aml_news";
|
export * from "../entity/compliance_aml_news";
|
||||||
|
export * from "../entity/compliance_regulator_reports";
|
||||||
|
export * from "../entity/compliance_regulator_report_details";
|
||||||
export * from "../types/compliance";
|
export * from "../types/compliance";
|
||||||
|
|||||||
@ -26,3 +26,8 @@ export enum ComplianceRiskCustomerType {
|
|||||||
"customer_personal" = "customer_personal",
|
"customer_personal" = "customer_personal",
|
||||||
"customer_business" = "customer_business",
|
"customer_business" = "customer_business",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum ComplianceRegulatorReportType {
|
||||||
|
"monthly" = "monthly",
|
||||||
|
"quarterly" = "quarterly",
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user