export type Chantier = {
  name: string;
  id: string;
  adresse: string;
  etat: string;
  contact: string;
  chef: User;
  equipe: Reservation[];
  materiel: Reservation[];
  vehicules: Reservation[];
  dateDep: Date;
  tempsEst: number;
  anomalies: string[];
  latitude: number;
  longitude: number;
};

export type User = {
  id: string;
  name: string;
  last_name: string;
  allocation?: Reservation[];
  role: string;
  qualifications: string;
};

export type Ressources = {
  id: string;
  name: string;
  type: string; //"machine","outil","ouvrier"
  Image: string;
  quantity: number;
  available_quantity: number;
  allocation: Reservation[];
};

export type Reservation = {
  id: string;
  chantier: Chantier;
  ressource: Ressources;
  quantity: number;
};