import type { Expense } from './expense'
import type { Item } from './item'

export interface List {
  id: number
  name: string
  description?: string | null
  is_complete: boolean
  group_id?: number | null
  items: Item[]
  version: number
  updated_at: string
  expenses?: Expense[]
}

export interface ListWithExpenses extends List {
  expenses: Expense[]
}
