import { Assignment as PrismaAssignment } from "@/generated/prisma/client"

import { Asset } from "./asset"
import { Item } from "./item"
import { Recipient } from "./recipient"

export type Assignment = PrismaAssignment

export type AssignmentSummary = Pick<Assignment, "id" | "quantity">

export type AssignmentWithRecipientItemAsset = Assignment & {
  returnDate: Date | null
  recipient: Recipient | null
  item: Item | null
  asset: Asset | null
}

export type AssignmentWithItemAndAsset = AssignmentSummary & {
  item: Item
  asset: Asset
}
