import { ApiProperty } from '@nestjs/swagger'; export class EmployeeEntity { @ApiProperty({ example: 1, description: 'Unique ID of an employee(primary-key, auto-incremented)', }) id: number; @ApiProperty({ example: '0e6e2e1f-b157-4c7c-ae3f-999b3e4f914d', description: 'UUID of the user linked to that employee', }) user_id: string; @ApiProperty({ example: 7464, description: 'external ID for the pay system', }) external_payroll_id: number; @ApiProperty({ example: 335567447, description: 'company code', }) company_code: number; @ApiProperty({ example: '3018-09-23T00:00:00.000Z', description: 'Employee first day at work', }) first_work_day: Date; @ApiProperty({ example: '3019-03-25T00:00:00.000Z', description: 'Employee last day at work', required: false, }) last_work_day?: Date; }