import { Category as PrismaCategory } from "@/generated/prisma/client"

export type Category = PrismaCategory

export type CategorySummary = Pick<Category, "id" | "name">

export type CategoryWithItemsCount = CategorySummary & {
  _count: {
    items: number
  }
}

export interface CreateCategoryInput {
  name: string
  description?: string | null
}

export interface UpdateCategoryInput {
  name?: string
  description?: string | null
  isActive?: boolean
}
