// Auto-generated types for NoteApp

// ─── Base ───────────────────────────────────────────


// ─── Base ───────────────────────────────────────────
export interface User {
  id: string;
  phone: string;
  nickname: string;
  avatarUrl: string;
  createdAt: string;
  updatedAt: string;
}
export interface Customers {
  id: string;
  userId?: string;
  name: string;
  email?: string;
  phone?: string;
  company?: string;
  source?: string;
  tags?: Record<string, unknown>;
  createdAt?: string;
  updatedAt?: string;
}

export interface SalesPipeline {
  id: string;
  userId?: string;
  customerId?: string;
  stage: string;
  amount?: number;
  probability?: number;
  expectedClose?: string;
  createdAt?: string;
  updatedAt?: string;
}

export interface FollowUps {
  id: string;
  userId?: string;
  customerId?: string;
  type?: string;
  content?: string;
  nextAction?: string;
  nextActionDate?: string;
  createdAt?: string;
  updatedAt?: string;
}

export interface Dashboard {
  id: string;
  userId?: string;
  name: string;
  description?: string;
  color?: string;
  createdAt?: string;
  updatedAt?: string;
}


// ─── API Responses ──────────────────────────────────
export interface ApiResponse<T> {
  data: T;
  message: string;
}

export interface PaginatedResponse<T> extends ApiResponse<T[]> {
  total: number;
  page: number;
  pageSize: number;
}

export interface ApiError {
  code: string;
  message: string;
  details?: Record<string, string[]>;
}