export type TaskStatus = "inbox" | "next" | "waiting" | "scheduled" | "someday" | "done" | "trashed";
export type ProjectStatus = "active" | "someday" | "completed" | "dropped";

export interface Task {
  id: string;
  title: string;
  notes: string;
  status: TaskStatus;
  project_id: string | null;
  context: string | null;
  waiting_for: string | null;
  due_date: string | null;
  defer_date: string | null;
  priority: 1 | 2 | 3 | 4;
  estimate_min: number | null;
  completed_at: string | null;
  sort_order: number;
  created_at: string;
  updated_at: string;
}

export interface Project {
  id: string;
  name: string;
  status: ProjectStatus;
  notes: string;
  sort_order: number;
  created_at: string;
  updated_at: string;
  open_tasks?: number;
}
