import { BaseMetadata } from '@/types/api/api-general';
import { BaseKandang } from '@/types/api/master-data/kandang';

export type BaseEmployee = {
  id: number;
  name: string;
  is_active: boolean;
  kandangs: Pick<BaseKandang, 'id' | 'name' | 'status' | 'capacity'>[];
};

export type Employee = BaseMetadata & BaseEmployee;

export type CreateEmployeePayload = {
  name: string;
  is_active: boolean;
  kandang_ids: number[];
};

export type UpdateEmployeePayload = CreateEmployeePayload;
