22 lines
433 B
TypeScript
22 lines
433 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
|
|
export class TimesheetEntity {
|
|
@ApiProperty({
|
|
example: 1,
|
|
description: 'timesheet`s unique ID (auto-generated)',
|
|
})
|
|
id: number;
|
|
|
|
@ApiProperty({
|
|
example: 426433,
|
|
description: 'employee`s ID number of linked timsheet',
|
|
})
|
|
employee_id: number;
|
|
|
|
@ApiProperty({
|
|
example: true,
|
|
description: 'Timesheet`s approval status',
|
|
})
|
|
is_approved: boolean;
|
|
}
|