Merge branch 'main' of https://git.shiblysolution.id/BRITL/entity
This commit is contained in:
47
src/entity/earchive_disposisi.ts
Normal file
47
src/entity/earchive_disposisi.ts
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, OneToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
|
import { User } from "./users";
|
||||||
|
import { EarchiveDoc } from "./earchive_doc";
|
||||||
|
|
||||||
|
@Entity("earchive_disposisi", { schema: "earchive" })
|
||||||
|
export class EarchiveDisposisi {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@Column({ name: 'docid', type: 'uuid', nullable: true })
|
||||||
|
docid: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => EarchiveDoc, { nullable: true })
|
||||||
|
@JoinColumn({ name: 'docid' })
|
||||||
|
doc: EarchiveDoc;
|
||||||
|
|
||||||
|
@Column({ name: 'uuiddisposisi', type: 'uuid', nullable: true })
|
||||||
|
uuiddisposisi: string;
|
||||||
|
|
||||||
|
@Column({ name: 'namedisposisi', nullable: true })
|
||||||
|
namedisposisi: 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;
|
||||||
|
}
|
||||||
@ -4,4 +4,5 @@ export * from "../entity/earchive_doclogs";
|
|||||||
export * from "../entity/earchive_receiver";
|
export * from "../entity/earchive_receiver";
|
||||||
export * from "../entity/earchive_approval";
|
export * from "../entity/earchive_approval";
|
||||||
export * from "../entity/earchive_link";
|
export * from "../entity/earchive_link";
|
||||||
|
export * from "../entity/earchive_disposisi";
|
||||||
export * from "../types/earchive";
|
export * from "../types/earchive";
|
||||||
Reference in New Issue
Block a user