Merge branch 'main' of https://git.shiblysolution.id/TCEL-ANATL/entity
This commit is contained in:
@ -1,48 +0,0 @@
|
|||||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index } from "typeorm";
|
|
||||||
|
|
||||||
import { Status } from "../../types/status";
|
|
||||||
|
|
||||||
@Entity("hrms_faculties", { schema: "hrms" })
|
|
||||||
export class HrmsFaculty {
|
|
||||||
@PrimaryGeneratedColumn("uuid")
|
|
||||||
id: string;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: false,
|
|
||||||
length: 128,
|
|
||||||
})
|
|
||||||
code: string;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: false,
|
|
||||||
length: 256,
|
|
||||||
})
|
|
||||||
name: string;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: false,
|
|
||||||
length: 64,
|
|
||||||
})
|
|
||||||
status: Status;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
@CreateDateColumn()
|
|
||||||
created_at: Date;
|
|
||||||
|
|
||||||
@Column({ nullable: true, length: 256 })
|
|
||||||
created_by: string;
|
|
||||||
|
|
||||||
@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,27 +1,29 @@
|
|||||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, ManyToOne, JoinColumn } from "typeorm";
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, ManyToOne, JoinColumn } from "typeorm";
|
||||||
|
|
||||||
import { Status } from "../../types/status";
|
import { Status } from "../../types/status";
|
||||||
import { HrmsFaculty } from "./hrms_faculty";
|
|
||||||
import { HrmsEmployee } from "./hrms_employee";
|
import { HrmsEmployee } from "./hrms_employee";
|
||||||
import { HrmsStudy } from "./hrms_study";
|
|
||||||
|
|
||||||
@Entity("hrms_scholarships", { schema: "hrms" })
|
@Entity("hrms_scholarships", { schema: "hrms" })
|
||||||
export class HrmsScholarship {
|
export class HrmsScholarship {
|
||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@ManyToOne(() => HrmsFaculty, { onDelete: "NO ACTION", nullable: false })
|
|
||||||
@JoinColumn()
|
|
||||||
faculty: HrmsFaculty;
|
|
||||||
|
|
||||||
@ManyToOne(() => HrmsStudy, { onDelete: "NO ACTION", nullable: false })
|
|
||||||
@JoinColumn()
|
|
||||||
study: HrmsStudy;
|
|
||||||
|
|
||||||
@ManyToOne(() => HrmsEmployee, { onDelete: "NO ACTION", nullable: false })
|
@ManyToOne(() => HrmsEmployee, { onDelete: "NO ACTION", nullable: false })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
employee: HrmsEmployee;
|
employee: HrmsEmployee;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
faculty: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
study: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 256,
|
length: 256,
|
||||||
|
|||||||
@ -1,48 +0,0 @@
|
|||||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index } from "typeorm";
|
|
||||||
|
|
||||||
import { Status } from "../../types/status";
|
|
||||||
|
|
||||||
@Entity("studies", { schema: "hrms" })
|
|
||||||
export class HrmsStudy {
|
|
||||||
@PrimaryGeneratedColumn("uuid")
|
|
||||||
id: string;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: false,
|
|
||||||
length: 128,
|
|
||||||
})
|
|
||||||
code: string;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: false,
|
|
||||||
length: 256,
|
|
||||||
})
|
|
||||||
name: string;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: false,
|
|
||||||
length: 64,
|
|
||||||
})
|
|
||||||
status: Status;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
@CreateDateColumn()
|
|
||||||
created_at: Date;
|
|
||||||
|
|
||||||
@Column({ nullable: true, length: 256 })
|
|
||||||
created_by: string;
|
|
||||||
|
|
||||||
@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,8 +1,6 @@
|
|||||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, ManyToOne, JoinColumn } from "typeorm";
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from "typeorm";
|
||||||
|
|
||||||
import { Status } from "../../types/status";
|
import { Status } from "../../types/status";
|
||||||
import { HrmsFaculty } from "./hrms_faculty";
|
|
||||||
import { HrmsEmployee } from "./hrms_employee";
|
|
||||||
|
|
||||||
@Entity("hrms_trainings", { schema: "hrms" })
|
@Entity("hrms_trainings", { schema: "hrms" })
|
||||||
export class HrmsTraining {
|
export class HrmsTraining {
|
||||||
|
|||||||
@ -6,8 +6,6 @@ export * from "../entity/hrms/hrms_leave_type";
|
|||||||
export * from "../entity/hrms/hrms_shift";
|
export * from "../entity/hrms/hrms_shift";
|
||||||
export * from "../entity/hrms/hrms_employee";
|
export * from "../entity/hrms/hrms_employee";
|
||||||
export * from "../entity/hrms/hrms_scholarship";
|
export * from "../entity/hrms/hrms_scholarship";
|
||||||
export * from "../entity/hrms/hrms_faculty";
|
|
||||||
export * from "../entity/hrms/hrms_study";
|
|
||||||
export * from "../entity/hrms/hrms_training";
|
export * from "../entity/hrms/hrms_training";
|
||||||
export * from "../entity/hrms/hrms_training_participant";
|
export * from "../entity/hrms/hrms_training_participant";
|
||||||
export * from "../entity/hrms/hrms_bank";
|
export * from "../entity/hrms/hrms_bank";
|
||||||
|
|||||||
Reference in New Issue
Block a user