import { Expose, Type } from 'class-transformer';
import { UserDto } from '../../user/dto/user.dto';
import { CompanyAuditDto } from '../../company-audit-stages/dto/company-audit.dto'; // ✅ import here

export class CompanyAuditStageDto {
  @Expose()
  id: number;

  @Expose()
  stageName: string;

  @Expose()
  auditDate: Date;

  @Expose()
  technicalExpert: string;

  @Expose()
  anzicCode: string;

  @Expose()
  remarks: string;

  @Expose()
  @Type(() => CompanyAuditDto) 
  audit: CompanyAuditDto;

  
  @Expose()
  @Type(() => UserDto)
  auditBy: UserDto;

  @Expose()
  @Type(() => UserDto)
  createdBy: UserDto;

  @Expose()
  createdAt: Date;

  @Expose()
  updatedAt: Date;
}
