import { Category, Item as PrismaItem } from "@/generated/prisma/client"

export type Item = PrismaItem

export type ItemSummary = Pick<Item, "id" | "name" | "stock"> & {
  category: Pick<Category, "id" | "name">
}

export type ItemWithoutStock = Pick<Item, "id" | "name">

export type ItemWithAssetCount = ItemSummary & {
  _count: {
    assets: number
  }
}

export type ItemWithAssetAndMovementCount = ItemWithAssetCount & {
  _count: {
    movements: number
  }
}
