fixing earchive doc
This commit is contained in:
@ -2,6 +2,7 @@ import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToO
|
|||||||
import { User } from "./users";
|
import { User } from "./users";
|
||||||
import { StatusDocument, TypeDocument, TypePriority } from "../types/earchive";
|
import { StatusDocument, TypeDocument, TypePriority } from "../types/earchive";
|
||||||
import { EarchiveDocLogs } from "./earchive_doclogs";
|
import { EarchiveDocLogs } from "./earchive_doclogs";
|
||||||
|
import { EarchiveReceiver } from "./earchive_receiver";
|
||||||
|
|
||||||
@Entity("earchive_doc", { schema: "earchive" })
|
@Entity("earchive_doc", { schema: "earchive" })
|
||||||
export class EarchiveDoc {
|
export class EarchiveDoc {
|
||||||
@ -30,33 +31,33 @@ export class EarchiveDoc {
|
|||||||
docdates: Date;
|
docdates: Date;
|
||||||
|
|
||||||
@Column({ name: 'approvalbyid', type: 'uuid', nullable: true })
|
@Column({ name: 'approvalbyid', type: 'uuid', nullable: true })
|
||||||
approvalbyid: string;
|
approvalbyid: string;
|
||||||
|
|
||||||
// @OneToOne(() => User, { nullable: true })
|
// @OneToOne(() => User, { nullable: true })
|
||||||
// @JoinColumn({ name: 'approvalbyid' })
|
// @JoinColumn({ name: 'approvalbyid' })
|
||||||
// approvalby: User
|
// approvalby: User
|
||||||
|
|
||||||
@Column({ name: 'approvaldate', nullable: true })
|
@Column({ name: 'approvaldate', nullable: true })
|
||||||
approvaldate: Date;
|
approvaldate: Date;
|
||||||
|
|
||||||
@Column({ name: 'dispositionbyid', type: 'uuid', nullable: true })
|
@Column({ name: 'dispositionbyid', type: 'uuid', nullable: true })
|
||||||
dispositionbyid: string;
|
dispositionbyid: string;
|
||||||
|
|
||||||
// @OneToOne(() => User, { nullable: true })
|
// @OneToOne(() => User, { nullable: true })
|
||||||
// @JoinColumn({ name: 'dispositionbyid' })
|
// @JoinColumn({ name: 'dispositionbyid' })
|
||||||
// dispositionby: User
|
// dispositionby: User
|
||||||
|
|
||||||
@Column({ name: 'dispositiondate', nullable: true })
|
@Column({ name: 'dispositiondate', nullable: true })
|
||||||
dispositiondate: Date;
|
dispositiondate: Date;
|
||||||
|
|
||||||
@Column({ name: 'attachdoc', nullable: true })
|
@Column({ name: 'attachdoc', nullable: true })
|
||||||
attachdoc: string;
|
attachdoc: string;
|
||||||
|
|
||||||
@Column({ name: 'attachdocurl', nullable: true })
|
@Column({ name: 'attachdocurl', nullable: true })
|
||||||
attachdocurl: string;
|
attachdocurl: string;
|
||||||
|
|
||||||
@Column({ name: 'attachlink', nullable: true })
|
@Column({ name: 'attachlink', nullable: true })
|
||||||
attachlink: string;
|
attachlink: string;
|
||||||
|
|
||||||
@Column({ type: 'text', nullable: true })
|
@Column({ type: 'text', nullable: true })
|
||||||
content: string;
|
content: string;
|
||||||
@ -74,10 +75,13 @@ export class EarchiveDoc {
|
|||||||
remarks: string;
|
remarks: string;
|
||||||
|
|
||||||
@OneToMany(() => EarchiveDocLogs, (ipo) => ipo.docs, {
|
@OneToMany(() => EarchiveDocLogs, (ipo) => ipo.docs, {
|
||||||
cascade: false,
|
cascade: false,
|
||||||
nullable: true,
|
nullable: true,
|
||||||
})
|
})
|
||||||
logs: EarchiveDocLogs;
|
logs: EarchiveDocLogs;
|
||||||
|
|
||||||
|
@OneToMany(() => EarchiveReceiver, (r) => r.doc)
|
||||||
|
receivers: EarchiveReceiver[];
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
|
|||||||
Reference in New Issue
Block a user