Skip to content

Commit

Permalink
feat: added users default holidaycount and targethours
Browse files Browse the repository at this point in the history
  • Loading branch information
dsumer committed Oct 12, 2023
1 parent 8b5e133 commit 2439f40
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/user.mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@ export const createUserMocks = ({
nonbusinessgroupsId: null,
workTimeEditLockDays,
boss: boss ?? null,
defaultHolidaysCount: faker.datatype.boolean(),
defaultTargetHours: faker.datatype.boolean(),
};
});
8 changes: 8 additions & 0 deletions src/models/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ export type User = {
* The user's team leader's / boss' id
*/
boss: number | null;
/**
* Specifies if the user uses the default holidays count
*/
defaultHolidaysCount: boolean;
/**
* Specifies if the user uses the default target hours
*/
defaultTargetHours: boolean;
};

export enum UserRole {
Expand Down

0 comments on commit 2439f40

Please sign in to comment.