import { ExternalProfile } from '../entities/external-profile.entity';

export class ResponseExternalProfileDto {
  id: string;
  userId: string;
  companyId: string;
  firstName: string;
  lastName: string;
  email: string;
  phone?: string | null;
  nationalId?: string | null;
  jobTitle?: string | null;
  isPrimaryContact: boolean;
  createdAt: Date;
  updatedAt: Date;

  constructor(profile: ExternalProfile) {
    this.id = profile.id;
    this.userId = profile.userId;
    this.companyId = profile.companyId;
    this.firstName = profile.firstName;
    this.lastName = profile.lastName;
    this.email = profile.email;
    this.phone = profile.phone;
    this.nationalId = profile.nationalId;
    this.jobTitle = profile.jobTitle;
    this.isPrimaryContact = profile.isPrimaryContact;
    this.createdAt = profile.createdAt;
    this.updatedAt = profile.updatedAt;
  }
}
