compliance update
This commit is contained in:
@ -1,75 +0,0 @@
|
|||||||
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";
|
|
||||||
|
|
||||||
@Entity("compliance_appendix_items", { schema: "compliances" })
|
|
||||||
export class ComplianceAppendixItem {
|
|
||||||
@PrimaryGeneratedColumn("uuid")
|
|
||||||
id: string;
|
|
||||||
|
|
||||||
@ManyToOne(() => ComplianceAppendixCategory, { 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;
|
|
||||||
|
|
||||||
@ManyToOne(() => ComplianceAppendixItem, { onDelete: "RESTRICT" })
|
|
||||||
@JoinColumn()
|
|
||||||
parent: ComplianceAppendixItem;
|
|
||||||
|
|
||||||
@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;
|
|
||||||
}
|
|
||||||
@ -4,7 +4,7 @@ import { Application } from "./application";
|
|||||||
import { ComplianceAppendixItem } from "./compliance_appendix_items";
|
import { ComplianceAppendixItem } from "./compliance_appendix_items";
|
||||||
|
|
||||||
@Entity("compliance_risk_levels", { schema: "compliances" })
|
@Entity("compliance_risk_levels", { schema: "compliances" })
|
||||||
export class complianceRiskLevels {
|
export class ComplianceRiskLevel {
|
||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user