targo-backend/src/modules/pay-periods/dtos/swagger-entities/pay-period.entity.ts

33 lines
649 B
TypeScript

import { ApiProperty } from "@nestjs/swagger";
export class PayPeriodEntity {
@ApiProperty({
example: 1,
description: 'numéro cyclique de la période entre 1 et 26'
})
period_number: number;
@ApiProperty({
example: '2023-12-17',
type: String,
format: 'date'
})
start_date: Date;
@ApiProperty({
example: '2023-12-30',
type: String,
format: 'date'
})
end_date: Date;
@ApiProperty({
example: 2023
})
year: number;
@ApiProperty({
example: '2023-12-17 → 2023-12-30'
})
label: string;
}