update
This commit is contained in:
90
src/entity/compliance_cif_double_details.ts
Normal file
90
src/entity/compliance_cif_double_details.ts
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
|
||||||
|
import { Status } from "../types/status";
|
||||||
|
import { EformLanguage } from "./eform_languages";
|
||||||
|
import { ComplianceCifDoubleStatus, ComplianceRiskPepType } from "../types/compliance";
|
||||||
|
import { ComplianceCifDouble } from "./compliance_cif_doubles";
|
||||||
|
|
||||||
|
@Entity("compliance_cif_double_details", { schema: "compliances" })
|
||||||
|
export class ComplianceCifDoubleDetail {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => ComplianceCifDouble, { onDelete: "NO ACTION" })
|
||||||
|
@JoinColumn()
|
||||||
|
cif_double: ComplianceCifDouble;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
cif_number: String;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
identity_number: String;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
name: String;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
birth_place: String;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
birth_date: String;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
mother_name: String;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
provincy: String;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
city: String;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
type: "jsonb",
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
suspects: 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;
|
||||||
|
}
|
||||||
53
src/entity/compliance_cif_doubles.ts
Normal file
53
src/entity/compliance_cif_doubles.ts
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
|
||||||
|
import { Status } from "../types/status";
|
||||||
|
import { EformLanguage } from "./eform_languages";
|
||||||
|
import { ComplianceCifDoubleStatus, ComplianceRiskPepType } from "../types/compliance";
|
||||||
|
|
||||||
|
@Entity("compliance_cif_doubles", { schema: "compliances" })
|
||||||
|
export class ComplianceCifDouble {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
file: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
total: Number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
suspect: Number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
length: 64,
|
||||||
|
})
|
||||||
|
status: ComplianceCifDoubleStatus;
|
||||||
|
|
||||||
|
@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;
|
||||||
|
}
|
||||||
@ -11,4 +11,6 @@ export * from "../entity/compliance_aml_news";
|
|||||||
export * from "../entity/compliance_regulator_reports";
|
export * from "../entity/compliance_regulator_reports";
|
||||||
export * from "../entity/compliance_regulator_report_details";
|
export * from "../entity/compliance_regulator_report_details";
|
||||||
export * from "../entity/compliance_futuru_cif_sync_logs";
|
export * from "../entity/compliance_futuru_cif_sync_logs";
|
||||||
|
export * from "../entity/compliance_cif_doubles";
|
||||||
|
export * from "../entity/compliance_cif_double_details";
|
||||||
export * from "../types/compliance";
|
export * from "../types/compliance";
|
||||||
|
|||||||
@ -50,3 +50,9 @@ export enum ComplianceFuturuCifSyncLogStatus {
|
|||||||
"process" = "process",
|
"process" = "process",
|
||||||
"done" = "done",
|
"done" = "done",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum ComplianceCifDoubleStatus {
|
||||||
|
"pending" = "pending",
|
||||||
|
"process" = "process",
|
||||||
|
"done" = "done",
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user