uptade
This commit is contained in:
49
src/entity/compliance_integrity_fact_employees.ts
Normal file
49
src/entity/compliance_integrity_fact_employees.ts
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
|
import { Employee } from "./hrms_employee";
|
||||||
|
import { User } from "./users";
|
||||||
|
import { ComplianceIntegrityFact } from "./compliance_integrity_facts";
|
||||||
|
|
||||||
|
@Entity("compliance_integrity_fact_employees", { schema: "compliances" })
|
||||||
|
export class ComplianceIntegrityFactEmployee {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => ComplianceIntegrityFact, { onDelete: "NO ACTION", nullable: true })
|
||||||
|
@JoinColumn()
|
||||||
|
integrity_fact: ComplianceIntegrityFact;
|
||||||
|
|
||||||
|
@ManyToOne(() => Employee, { onDelete: "NO ACTION", nullable: true })
|
||||||
|
@JoinColumn()
|
||||||
|
employee: Employee;
|
||||||
|
|
||||||
|
@ManyToOne(() => User, { onDelete: "NO ACTION", nullable: true })
|
||||||
|
@JoinColumn()
|
||||||
|
user: User;
|
||||||
|
|
||||||
|
@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;
|
||||||
|
}
|
||||||
46
src/entity/compliance_integrity_facts.ts
Normal file
46
src/entity/compliance_integrity_facts.ts
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
|
|
||||||
|
@Entity("compliance_integrity_facts", { schema: "compliances" })
|
||||||
|
export class ComplianceIntegrityFact {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
length: 4,
|
||||||
|
})
|
||||||
|
year: 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;
|
||||||
|
}
|
||||||
@ -13,4 +13,6 @@ 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_doubles";
|
||||||
export * from "../entity/compliance_cif_double_details";
|
export * from "../entity/compliance_cif_double_details";
|
||||||
|
export * from "../entity/compliance_integrity_facts";
|
||||||
|
export * from "../entity/compliance_integrity_fact_employees";
|
||||||
export * from "../types/compliance";
|
export * from "../types/compliance";
|
||||||
|
|||||||
Reference in New Issue
Block a user