Merge branch 'main' of https://git.shiblysolution.id/TCEL-ANATL/entity
This commit is contained in:
56
src/entity/finance/finance_funding_sources.ts
Normal file
56
src/entity/finance/finance_funding_sources.ts
Normal file
@ -0,0 +1,56 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, OneToMany, PrimaryColumn, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from "typeorm";
|
||||
import { Status } from "../../types/status";
|
||||
|
||||
@Entity("finance_funding_sources", { schema: "finances" })
|
||||
export class FinanceFundingSource {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
unique: false,
|
||||
length: 64,
|
||||
})
|
||||
code: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
unique: false,
|
||||
length: 64,
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
unique: false,
|
||||
length: 64,
|
||||
})
|
||||
description: 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;
|
||||
}
|
||||
@ -2,7 +2,7 @@ import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateCol
|
||||
|
||||
import { Status } from "../../types/status";
|
||||
|
||||
@Entity("hrms_faculties")
|
||||
@Entity("hrms_faculties", { schema: "hrms" })
|
||||
export class HrmsFaculty {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ -5,7 +5,7 @@ import { HrmsFaculty } from "./hrms_faculty";
|
||||
import { HrmsEmployee } from "./hrms_employee";
|
||||
import { HrmsStudy } from "./hrms_study";
|
||||
|
||||
@Entity("hrms_scholarships")
|
||||
@Entity("hrms_scholarships", { schema: "hrms" })
|
||||
export class HrmsScholarship {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ -2,7 +2,7 @@ import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateCol
|
||||
|
||||
import { Status } from "../../types/status";
|
||||
|
||||
@Entity("studies")
|
||||
@Entity("studies", { schema: "hrms" })
|
||||
export class HrmsStudy {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ -4,7 +4,7 @@ import { Status } from "../../types/status";
|
||||
import { HrmsFaculty } from "./hrms_faculty";
|
||||
import { HrmsEmployee } from "./hrms_employee";
|
||||
|
||||
@Entity("hrms_trainings")
|
||||
@Entity("hrms_trainings", { schema: "hrms" })
|
||||
export class HrmsTraining {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ -5,7 +5,7 @@ import { HrmsEmployee } from "./hrms_employee";
|
||||
import { HrmsDepartment } from "./hrms_department";
|
||||
import { HrmsTraining } from "./hrms_training";
|
||||
|
||||
@Entity("hrms_training_participants")
|
||||
@Entity("hrms_training_participants", { schema: "hrms" })
|
||||
export class HrmsTrainingParticipant {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
export * from "./schema/public";
|
||||
export * from "./schema/hrms";
|
||||
export * from "./schema/finances";
|
||||
|
||||
1
src/schema/finances.ts
Normal file
1
src/schema/finances.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from "../entity/finance/finance_funding_sources";
|
||||
Reference in New Issue
Block a user