import { EmplDeptJob } from "@/model/EmplDeptJob";
import { Role } from "@/model/Role";

export class User {
  id: string;
  avatar: string;
  emplId: string;
  emplNo: string;
  emplName: string;
  sex: string;
  firstName: string;
  lastName: string;
  birthDate: string;
  busnPhone: string;
  cellPhone: string;
  email: string;
  serial: string;
  effStatus: string;
  dataSource: string;
  roles: Role[];
  emplDeptJobs: EmplDeptJob[];
  constructor(
    options: {
      id?: string;
      avatar?: string;
      emplId?: string;
      emplNo?: string;
      emplName?: string;
      sex?: string;
      firstName?: string;
      lastName?: string;
      birthDate?: string;
      busnPhone?: string;
      cellPhone?: string;
      email?: string;
      serial?: string;
      effStatus?: string;
      dataSource?: string;
      roles?: Role[];
      emplDeptJobs?: EmplDeptJob[];
    } = {}
  ) {
    this.id = options.id || "";
    this.avatar = options.avatar || "";
    this.emplId = options.emplId || "";
    this.emplNo = options.emplNo || "";
    this.emplName = options.emplName || "";
    this.sex = options.sex || "";
    this.firstName = options.firstName || "";
    this.lastName = options.lastName || "";
    this.birthDate = options.birthDate || "";
    this.busnPhone = options.busnPhone || "";
    this.cellPhone = options.cellPhone || "";
    this.email = options.email || "";
    this.serial = options.serial || "";
    this.effStatus = options.effStatus || "";
    this.dataSource = options.dataSource || "";
    this.roles = options.roles || [];
    this.emplDeptJobs = options.emplDeptJobs || [];
  }
}
