import { BaseMetadata } from '@/types/api/api-general';

export type BaseFcr = {
  id: number;
  name: string;
};

export type FcrStandard = {
  id: number;
  weight: number;
  fcr_number: number;
  mortality: number;
};

export type Fcr = BaseMetadata & BaseFcr;

export type FcrWithStandards = Fcr & {
  fcr_standards: FcrStandard[];
};

export type CreateFcrPayload = {
  name: string;
  fcr_standards: {
    weight: number;
    fcr_number: number;
    mortality: number;
  }[];
};

export type UpdateFcrPayload = CreateFcrPayload;
