darft entity salaryOrg , salaryProfile
This commit is contained in:
parent
2cef1f1b76
commit
b2c65714fd
2 changed files with 282 additions and 0 deletions
55
src/entities/SalaryOrg.ts
Normal file
55
src/entities/SalaryOrg.ts
Normal 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>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue