export interface User {
  id: string;
  name: string;
  username: string;
  email: string;
  phone: string;
  vehicle: {
    plate: string;
    model: string;
    year: string;
  };
}

export interface Delivery {
  id: string;
  outId: number;
  outDate: string;
  customerId: number;
  customerName: string;
  street: string;
  streetNumber: string;
  neighborhood: string;
  complement: string;
  zipCode: string;
  city: string;
  state: string;
  customerPhone: string;
  lat: number | null;
  lng: number | null;
  latFrom: string | null; // Coordenada do centro de distribuição (latitude)
  lngFrom: string | null; // Coordenada do centro de distribuição (longitude)
  deliverySeq: number;
  routing?: number; // Campo para indicar se precisa de roteamento (0 = não, >0 = sim)
  status: 'in_progress' | 'pending' | 'delivered' | 'failed';
  distance?: number;
  coordinates?: {
    latitude: number;
    longitude: number;
  };
  notes?: string;
  contactName?: string;
  phone?: string;
  packages?: number;
  invoice?: string;
  completedAt?: string;
  photos?: string[];
  signature?: string;
}