import { ApiProperty } from '@nestjs/swagger'; import { SessionStatus } from '@prisma/client'; import { SessionObjectiveResponseDto } from './session-objective-response.dto'; export class SessionResponseDto { @ApiProperty() id!: number; @ApiProperty({ enum: SessionStatus }) status!: SessionStatus; @ApiProperty() createdAt!: Date; @ApiProperty() updatedAt!: Date; @ApiProperty({ type: SessionObjectiveResponseDto, required: false }) objective?: SessionObjectiveResponseDto; }