crud profileSalary
This commit is contained in:
parent
e147412ea4
commit
5cb6126b39
2 changed files with 212 additions and 26 deletions
|
|
@ -38,6 +38,7 @@ export class ProfileSalary extends EntityBase {
|
|||
@Column({
|
||||
length: 40,
|
||||
comment: "ไอดีโปรไฟล์",
|
||||
type: "uuid"
|
||||
})
|
||||
profileId: string;
|
||||
|
||||
|
|
@ -45,38 +46,58 @@ export class ProfileSalary extends EntityBase {
|
|||
@JoinColumn({ name: "profileId" })
|
||||
profile: Profile;
|
||||
|
||||
}
|
||||
|
||||
export class CreateProfileSalary {
|
||||
|
||||
@Column({
|
||||
type: "datetime"
|
||||
})
|
||||
date: Date;
|
||||
|
||||
@Column({
|
||||
type: "double"
|
||||
})
|
||||
amount: Double;
|
||||
|
||||
@Column({
|
||||
type: "double"
|
||||
})
|
||||
positionSalaryAmount: Double;
|
||||
|
||||
@Column({
|
||||
type: "double"
|
||||
})
|
||||
mouthSalaryAmount: Double;
|
||||
|
||||
@Column({
|
||||
type: "uuid"
|
||||
})
|
||||
profileId: string;
|
||||
|
||||
}
|
||||
|
||||
// export class CreateProfileSalary {
|
||||
export class UpdateProfileSalary {
|
||||
|
||||
// @Column()
|
||||
// date: Date;
|
||||
@Column({
|
||||
type: "datetime"
|
||||
})
|
||||
date: Date;
|
||||
|
||||
// @Column()
|
||||
// amount: Double;
|
||||
@Column({
|
||||
type: "double"
|
||||
})
|
||||
amount: Double;
|
||||
|
||||
// @Column()
|
||||
// positionSalaryAmount: Double;
|
||||
@Column({
|
||||
type: "double"
|
||||
})
|
||||
positionSalaryAmount: Double;
|
||||
|
||||
// @Column()
|
||||
// mouthSalaryAmount: Double;
|
||||
@Column({
|
||||
type: "double"
|
||||
})
|
||||
mouthSalaryAmount: Double;
|
||||
|
||||
// }
|
||||
|
||||
// export class UpdateProfileSalary {
|
||||
|
||||
// @Column()
|
||||
// date: Date;
|
||||
|
||||
// @Column()
|
||||
// amount: Double;
|
||||
|
||||
// @Column()
|
||||
// positionSalaryAmount: Double;
|
||||
|
||||
// @Column()
|
||||
// mouthSalaryAmount: Double;
|
||||
|
||||
// }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue