// company-audit.dto.ts
import { Expose, Type } from 'class-transformer';
import { CompanyDto } from '../../company-audit-stages/dto/company.dto';
import { AuditTypeDto } from '../../company-audit-stages/dto/audit-type.dto';
export class CompanyAuditDto {
  @Expose()
  id: number;

  @Expose()
  @Type(() => CompanyDto)
  company: CompanyDto;
  
  @Expose()
  @Type(() => AuditTypeDto)
  auditType: AuditTypeDto; // <-- camelCase, matching entity property

  @Expose()
  auditCode: string;

  @Expose()
  validityPeriod: string;

  @Expose()
  auditMode: string;

  @Expose()
  status: string;

  @Expose()
  currentStage: string;

  @Expose()
  remarks: string;

  @Expose()
  createdAt: Date;

  @Expose()
  updatedAt: Date;
}
