new earchive Doc Type
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
|
|
||||||
@Entity("earchive_mails", { schema: "earchive" })
|
@Entity("earchive_doc", { schema: "earchive" })
|
||||||
export class EarchiveMail {
|
export class EarchiveDoc {
|
||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
39
src/entity/earchive_doctype.ts
Normal file
39
src/entity/earchive_doctype.ts
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
|
import { User } from "./users";
|
||||||
|
|
||||||
|
@Entity("earchive_doctype", { schema: "earchive" })
|
||||||
|
export class EarchiveDocType {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256, })
|
||||||
|
doctype: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 5, })
|
||||||
|
doctypeinitial: string;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@CreateDateColumn()
|
||||||
|
created_at: Date;
|
||||||
|
|
||||||
|
@Column({ name: 'createdbyid', type: 'uuid', nullable: true })
|
||||||
|
createdbyid: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => User, { nullable: true })
|
||||||
|
@JoinColumn({ name: 'createdbyid' })
|
||||||
|
createdby: User
|
||||||
|
|
||||||
|
@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;
|
||||||
|
}
|
||||||
@ -1 +1,2 @@
|
|||||||
export * from "../entity/earchive_mails";
|
export * from "../entity/earchive_doc";
|
||||||
|
export * from "../entity/earchive_doctype";
|
||||||
|
|||||||
8
src/types/earchive.ts
Normal file
8
src/types/earchive.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
export enum StatusDocument {
|
||||||
|
"rejected" = -3,
|
||||||
|
"draft" = -1,
|
||||||
|
"submitted" = 0,
|
||||||
|
"approval" = 1,
|
||||||
|
"disposition" = 2,
|
||||||
|
};
|
||||||
|
|
||||||
Reference in New Issue
Block a user