export type GermplasmDonorRecord = {
  id: string;
  donor_accession_number?: string | null;
  donor_institute_code?: string | null;
  germplasmpui?: string | null;
};

export type GermplasmInstituteRecord = {
  id: string;
  institute_db_id?: string;
  institute_type?: string | null;
  institute_code?: string | null;
  institute_name?: string | null;
  institute_address?: string | null;
};

export type GermplasmOriginRecord = {
  id: string;
  coordinate_uncertainty?: string | null;
  longitude?: string | number | null;
  latitude?: string | number | null;
};

export type GermplasmSynonymRecord = {
  id: string;
  synonym?: string | null;
  type?: string | null;
};

export type GermplasmTaxonRecord = {
  id: string;
  source_name?: string | null;
  taxon_id?: string | null;
};

export const INSTITUTE_TYPE_OPTIONS = [
  { value: "HOST", label: "HOST · 保存机构" },
  { value: "DONOR", label: "DONOR · 捐赠机构" },
  { value: "BREEDING", label: "BREEDING · 育种机构" },
  { value: "COLLECTING", label: "COLLECTING · 采集机构" },
  { value: "REDUNDANT", label: "REDUNDANT · 安全备份" },
] as const;

export type GermplasmProfileTab =
  | "attributes"
  | "donors"
  | "institutes"
  | "origins"
  | "synonyms"
  | "taxons"
  | "pedigree"
  | "seed-lots"
  | "cross-parents";
