import { IsUUID, IsNotEmpty, IsOptional, IsBoolean, IsEnum } from 'class-validator';
import { FFClientRelationship } from '../entities/ff-client.entity';

export class CreateFFClientDto {
  @IsUUID()
  @IsNotEmpty()
  forwarderCompanyId!: string;

  @IsUUID()
  @IsNotEmpty()
  clientCompanyId!: string;

  @IsOptional()
  @IsEnum(FFClientRelationship)
  relationshipType?: FFClientRelationship;

  @IsOptional()
  @IsBoolean()
  canBookOnBehalf?: boolean;

  @IsOptional()
  @IsBoolean()
  canViewDocuments?: boolean;
}
