diff --git a/src/entity/earchive_disposisi.ts b/src/entity/earchive_disposisi.ts new file mode 100644 index 0000000..ad048fa --- /dev/null +++ b/src/entity/earchive_disposisi.ts @@ -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; +} diff --git a/src/schema/earchive.ts b/src/schema/earchive.ts index 4ccd563..2c99816 100644 --- a/src/schema/earchive.ts +++ b/src/schema/earchive.ts @@ -4,4 +4,5 @@ export * from "../entity/earchive_doclogs"; export * from "../entity/earchive_receiver"; export * from "../entity/earchive_approval"; export * from "../entity/earchive_link"; +export * from "../entity/earchive_disposisi"; export * from "../types/earchive"; \ No newline at end of file