// ข้อมูลที่เก็บ
interface listMain {
  personalId: string;
  fullname: string;
  prefix: string;
  firstName: string;
  lastName: string;
  date: Date;
  isActive: boolean;
  organization: string;
  organizationPositionOld: string;
  posNo: string;
  position: string;
  positionLevel: string;
  positionLevelOld: string;
  positionNumberOld: string;
  positionTypeOld: string;
  reason: string;
  salary: number;
  status: string;
  statustext: string;
  createdAt: Date;
  amountOld: number;
  positionDate: Date;
  leaveDate: Date;
  id: string;
}
//ข้อมูลจาก api
interface listMainAPI {
  id: string;
  firstname: string;
  prefix: string;
  firstName: string;
  lastname: string;
  date: Date;
  isActive: boolean;
  organization: string;
  organizationPositionOld: string;
  positionPath: string;
  posNo: string;
  position: string;
  positionLevel: string;
  positionLevelOld: string;
  positionNumberOld: string;
  positionTypeOld: string;
  reason: string;
  salary: number;
  status: string;
  statustext: string;
  createdAt: Date;
  amountOld: number;
  positionDate: Date;
  leaveDate: Date;
}

interface OtherdataInterface {
  citizenId: string;
  prefixId: string;
  firstname: string;
  lastname: string;
}

interface resApiData {
  data: {
    result: {
      id: string;
      profileId: string;
      citizenId: string;
      prefix: string;
      prefixId: string;
      firstName: string;
      lastName: string;
      dateOfBirth: Date;
      gender: string;
      nationality: string;
      race: string;
      religion: string;
      bloodGroup: string;
      relationship: string;
      telephoneNumber: string;
      status: string;
      amount: number;
      recruitDate: Date;
      posNoId: string;
      positionId: string;
      positionPathSideId: string;
      positionTypeId: string;
      positionLineId: string;
      positionLevelId: string;
      organizationPositionId: string;
      createdAt: Date;
      reason: string;
      educationOld: string;
      amountOld: number;
      positionTypeOld: string;
      positionLevelOld: string;
      positionNumberOld: string;
      organizationPositionOld: string;
      positionDate: Date;
      avatar: string;
      commandType: string;
      militaryDate: Date;
      leaveDate: Date;
    };
  };
}

export type { listMain, listMainAPI, OtherdataInterface, resApiData };
