Merge branch 'main' of https://git.shiblysolution.id/BRITL/entity
This commit is contained in:
@ -32,6 +32,9 @@ export class EarchiveApproval {
|
||||
@Column({ type: 'int', nullable: true , default : 0})
|
||||
isapproved: Number;
|
||||
|
||||
@Column({ name: 'remarks', nullable: true })
|
||||
remarks: string;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
62
src/entity/earchive_checker.ts
Normal file
62
src/entity/earchive_checker.ts
Normal file
@ -0,0 +1,62 @@
|
||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, OneToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||
import { User } from "./users";
|
||||
import { EarchiveDoc } from "./earchive_doc";
|
||||
|
||||
@Entity("earchive_checker", { schema: "earchive" })
|
||||
export class EarchiveChecker {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@Column({ type: 'int', nullable: true , default : 0})
|
||||
sorts: Number;
|
||||
|
||||
@Column({ name: 'docid', type: 'uuid', nullable: true })
|
||||
docid: string;
|
||||
|
||||
@ManyToOne(() => EarchiveDoc, { nullable: true })
|
||||
@JoinColumn({ name: 'docid' })
|
||||
doc: EarchiveDoc;
|
||||
|
||||
@Column({ name: 'nik', nullable: true })
|
||||
nik: string;
|
||||
|
||||
@Column({ name: 'employeename', nullable: true })
|
||||
employeename: string;
|
||||
|
||||
@Column({ name: 'uuidchecker', type: 'uuid', nullable: true })
|
||||
uuidchecker: string;
|
||||
|
||||
@Column({ name: 'checkerdate', nullable: true })
|
||||
checkerdate: Date;
|
||||
|
||||
@Column({ type: 'int', nullable: true , default : 0})
|
||||
ischecked: Number;
|
||||
|
||||
@Column({ name: 'remarks', nullable: true })
|
||||
remarks: 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;
|
||||
}
|
||||
@ -6,6 +6,7 @@ import { EarchiveReceiver } from "./earchive_receiver";
|
||||
import { EarchiveApproval } from "./earchive_approval";
|
||||
import { EarchiveLink } from "./earchive_link";
|
||||
import { EarchiveDisposisi } from "./earchive_disposisi";
|
||||
import { EarchiveChecker } from "./earchive_checker";
|
||||
|
||||
@Entity("earchive_doc", { schema: "earchive" })
|
||||
export class EarchiveDoc {
|
||||
@ -116,6 +117,9 @@ export class EarchiveDoc {
|
||||
@OneToMany(() => EarchiveLink, (r) => r.doc)
|
||||
link: EarchiveLink[];
|
||||
|
||||
@OneToMany(() => EarchiveChecker, (r) => r.doc)
|
||||
checker: EarchiveChecker[];
|
||||
|
||||
@OneToMany(() => EarchiveApproval, (r) => r.doc)
|
||||
approval: EarchiveApproval[];
|
||||
|
||||
|
||||
@ -89,7 +89,49 @@ export class TrxCustomerUser {
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
identity_number: string;
|
||||
identity_number_electoral: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
identity_file_electoral: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
identity_number_passport: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
identity_file_passport: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
identity_number_bi: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
identity_file_bi: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
identity_number_visa: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
identity_file_visa: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
|
||||
@ -56,10 +56,52 @@ export class TrxCustomer {
|
||||
pic_email: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
pic_file: string;
|
||||
pic_file_electoral: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
pic_number_electoral: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
pic_file_bi: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
pic_number_bi: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
pic_file_passport: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
pic_number_passport: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
pic_number_visa: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
pic_file_visa: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
|
||||
@ -2,6 +2,7 @@ export * from "../entity/earchive_doc";
|
||||
export * from "../entity/earchive_doctype";
|
||||
export * from "../entity/earchive_doclogs";
|
||||
export * from "../entity/earchive_receiver";
|
||||
export * from "../entity/earchive_checker";
|
||||
export * from "../entity/earchive_approval";
|
||||
export * from "../entity/earchive_link";
|
||||
export * from "../entity/earchive_disposisi";
|
||||
|
||||
@ -1,9 +1,11 @@
|
||||
export enum StatusDocument {
|
||||
"rejected" = -3,
|
||||
"returned" = -2,
|
||||
"draft" = -1,
|
||||
"submitted" = 0,
|
||||
"approval" = 1,
|
||||
"disposition" = 2,
|
||||
"checker" = 1,
|
||||
"approval" = 2,
|
||||
"disposition" = 3,
|
||||
};
|
||||
|
||||
export enum TypeDocument {
|
||||
|
||||
Reference in New Issue
Block a user