export type Chantier = {
  id: number;
  adresse: string;
  etat: string;
  contact: string;
  chef: User;
  equipe: User[];
  materiel: Ressources[];
  dateDep: Date;
  tempsEst: number;
  vehicules: Ressources[];
  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: number;
  name: string;
  type: string;
  Image: string;
  quantity: number;
  available_quantity: number;
  allocation: Reservation[];
};

export type Reservation = {
  id: string;
  dateChantier: Date;
  dateFin: Date;
};