export interface TaskComment {
  id: number;
  task_id: number;
  body: string;
  body_ar: string;
  user?: any;
  created_at: string;
  updated_at: string;
}

export interface TaskTimeEntry {
  id: number;
  task_id: number;
  started_at: string;
  ended_at: string;
  duration_minutes: number;
  description: string;
  user?: any;
  created_at: string;
}

export interface TaskAttachment {
  id: number;
  task_id: number;
  filename: string;
  file_url: string;
  task_comment_id: number | null;
  created_at: string;
}

export interface SupportTask {
  id: number;
  company_id: number;
  title: string;
  title_ar: string;
  description: string | null;
  type: string;
  priority: string;
  module: string | null;
  status: string;
  assigned_to: number | null;
  due_date: string | null;
  estimated_hours: number | null;
  labels?: any[];
  comments?: TaskComment[];
  time_entries?: TaskTimeEntry[];
  attachments?: TaskAttachment[];
  related_tasks?: any[];
  created_at: string;
  updated_at: string;
}

export interface CreateSupportTask {
  title: string;
  title_ar?: string;
  description?: string;
  type: string;
  priority: string;
  module?: string;
  assigned_to?: number;
  due_date?: string;
  estimated_hours?: number;
}
