darft entity salaryOrg , salaryProfile

This commit is contained in:
AdisakKanthawilang 2024-02-23 17:17:19 +07:00
parent 2cef1f1b76
commit b2c65714fd
2 changed files with 282 additions and 0 deletions

55
src/entities/SalaryOrg.ts Normal file
View file

@ -0,0 +1,55 @@
import { Entity, Column, ManyToOne, JoinColumn, OneToOne, OneToMany } from "typeorm";
import { EntityBase } from "./base/Base";
@Entity("salaryOrg")
export class SalaryOrg extends EntityBase {
@Column({
comment: "",
length: 40,
})
salaryPreiodId: string;
@Column({
comment:"",
})
status: string;
@Column({
comment:"",
length: 40,
})
rootId : string;
@Column({
comment:"สถานะ",
})
total : number;
@Column({
comment:"15%ของจำนวนคน",
})
fifteenPercent : number;
}
export class CreateSalaryOrg {
@Column("uuid")
salaryPreiodId: string;
@Column()
status: string;
@Column("uuid")
rootId : string;
@Column()
total : number;
@Column()
fifteenPercent : number;
}
export type UpdateSalaryOrg = Partial<CreateSalaryOrg>;