// Category types for tree organization

export interface Category {
  id: string
  name: string
  slug: string
  description: string | null
  account_id: string | null
  display_order: number
  is_active: boolean
  color: string | null
  created_at: string
  updated_at: string
  tree_count: number
}

export interface CategoryListItem {
  id: string
  name: string
  slug: string
  description: string | null
  account_id: string | null
  display_order: number
  is_active: boolean
  color: string | null
  tree_count: number
}

export interface CategoryCreate {
  name: string
  description?: string | null
  account_id?: string | null
}

export interface CategoryUpdate {
  name?: string
  description?: string | null
  display_order?: number
  is_active?: boolean
}

// Embedded category info for tree responses
export interface CategoryInfo {
  id: string
  name: string
  slug: string
}
