Skip to content

Commit

Permalink
feat: added id field for holidayscarryover
Browse files Browse the repository at this point in the history
  • Loading branch information
dsumer committed Dec 5, 2023
1 parent 8e8d6b7 commit 281616c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/models/holidaysCarryover.mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ export const createHolidaysCarryoverMocks = ({
count = 1,
yearMinMax = [1900, 2024],
}: Options = {}) => {
return Array.from({ length: count }, (): HolidaysCarryover => {
return Array.from({ length: count }, (_, index): HolidaysCarryover => {
const id = index;

return {
id,
usersId: 0,
year: faker.datatype.number({ min: yearMinMax[0], max: yearMinMax[1] }),
note: faker.datatype.boolean() ? faker.lorem.sentences(2) : null,
Expand Down
2 changes: 2 additions & 0 deletions src/models/holidaysCarryover.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export type HolidaysCarryover = {
/** The ID of the holiday carryover */
id: number;
/** The related employee's ID */
usersId: number;
/**
Expand Down

0 comments on commit 281616c

Please sign in to comment.