From 910b603697688b5a492f1c508c61f08ac5eb3c18 Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 22 Feb 2024 11:45:30 +0700 Subject: [PATCH] edit entity --- src/entities/Salarys.ts | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/src/entities/Salarys.ts b/src/entities/Salarys.ts index 6c76deb..dd65fea 100644 --- a/src/entities/Salarys.ts +++ b/src/entities/Salarys.ts @@ -103,10 +103,40 @@ export class CreateSalary { endDate?: Date; @Column() - details?: string; + details?: string | null; @Column() isSpecial: boolean; } + +export class UpdateSalary { -export type UpdateSalary = Partial ; \ No newline at end of file + @Column() + salaryType: string; + + @Column("uuid") + posTypeId: string; + + @Column("uuid") + posLevelId: string; + + @Column() + isActive: boolean; + + @Column() + date?: Date; + + @Column() + startDate?: Date; + + @Column() + endDate?: Date; + + @Column() + details?: string | null; + + @Column() + isSpecial: boolean; +} + +// export type UpdateSalary = Partial ; \ No newline at end of file