40 lines
716 B
TypeScript
40 lines
716 B
TypeScript
export type Chantier = {
|
|
id: string;
|
|
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: string;
|
|
name: string;
|
|
type: string; //"machine","outil","ouvrier"
|
|
Image: string;
|
|
quantity: number;
|
|
available_quantity: number;
|
|
allocation: Reservation[];
|
|
};
|
|
|
|
export type Reservation = {
|
|
id: string;
|
|
dateChantier: Date;
|
|
dateFin: Date;
|
|
}; |